From mboxrd@z Thu Jan 1 00:00:00 1970 From: Achim Gratz Subject: Re: Temp files from testing are permanent... Date: Sat, 18 Feb 2012 19:48:25 +0100 Message-ID: <877gzkc70m.fsf@Rainer.invalid> References: <8762f9w9l3.fsf@Rainer.invalid> <87sjidovpo.fsf@avasys.jp> <877gzof2e1.fsf@Rainer.invalid> <8762f7d2dp.fsf@avasys.jp> <87sjiay7aq.fsf@Rainer.invalid> <87aa4gqbk4.fsf@gmx.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:35387) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RypKv-0005jb-OS for emacs-orgmode@gnu.org; Sat, 18 Feb 2012 13:48:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RypKu-0008KS-PH for emacs-orgmode@gnu.org; Sat, 18 Feb 2012 13:48:45 -0500 Received: from plane.gmane.org ([80.91.229.3]:54153) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RypKu-0008KL-K5 for emacs-orgmode@gnu.org; Sat, 18 Feb 2012 13:48:44 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1RypKs-00065r-3h for emacs-orgmode@gnu.org; Sat, 18 Feb 2012 19:48:42 +0100 Received: from pd9eb4558.dip.t-dialin.net ([217.235.69.88]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 18 Feb 2012 19:48:42 +0100 Received: from Stromeko by pd9eb4558.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 18 Feb 2012 19:48:42 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Eric Schulte writes: > It will be up to the authors of individual tests to remove tangled and > exported files. Ideally we can patch each test to clean up after > itself. Perhaps we should provide a test macro which accepts a list of > file names and optionally removes them if the test exists successfully. > e.g., > > (org-test-with-cleanup '("exported.html" "tangled.sh" etc...) > ...test body...) Currently those files would have inpredictable names AFAICS, which would defeat that purpose. I'm not sure where to do this, but it occurs to me that it would be easier if those files only had a unique prefix that didn't change for each invocation of the test suite (a timestamp would be OK, so it is easier to see which files you're looking at). If the files always had the same name, you would have to make sure that there was no collision, either with existing files or results from earlier tests, so that would be no good. If it is easier to always have the same names for the files, one could just make the test directory name unique. I think it is useful for debugging to be able to keep a few generation of tests around. > Even if the above is implemented this sounds like a good safeguard. Safeguards are in place in my Makefile fork. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Waldorf MIDI Implementation & additional documentation: http://Synth.Stromeko.net/Downloads.html#WaldorfDocs