I forward this again, given that the mailing list maintainers do not care to approve my previous post. The original attachments can be found here<div><br></div><div><a href="https://docs.google.com/open?id=0B2brKGbNKZYDNTU0YjM4ZTYtMDk4OS00OWNlLTkzN2YtMGM0YmE0OGZmY2Vi">https://docs.google.com/open?id=0B2brKGbNKZYDNTU0YjM4ZTYtMDk4OS00OWNlLTkzN2YtMGM0YmE0OGZmY2Vi</a><br>
<br><div class="gmail_quote">On Thu, Dec 8, 2011 at 9:07 PM, Juan Jose Garcia-Ripoll <span dir="ltr"><<a href="mailto:juanjose.garciaripoll@googlemail.com">juanjose.garciaripoll@googlemail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi, I have been bothered several times by the inability of the ANSI test suite to run on a directory different from the one it resides in. This is a problem for various reasons:<div>
<br></div><div>* The source tree might be read-only. The test suite then is not allowed to create compiled files or temporary files.</div>
<div><br></div><div>* Some tests fail and leave temporary directories scattered around. This happens quite often. It is hard to clean the mess without keeping a list that differentiates the sources from the temporaries.</div>
<div><br></div><div>* If I want to keep state clean, I have to make a copy of the whole directory every time I want to run the tests. This happens quite often when I have to test multiple copies of ECL with a variety of settings.</div>
<div><br></div><div>Knowing this I have worked on the test suite, changing the tests so that they can be loaded from a different directory (what I call the "scratch" directory). I attach the changes which consist on this:</div>
<div><br></div><div>* The test suite defines some variables (see doit.lsp) which store the location of the sources and the location of the scratch directory in which the test suite is going to work.</div><div>* CLTEST: points to the scratch directory.</div>
<div>* CLTESTSRC: points to the sources.</div><div>* Various tests require some read-only file to be present. Formerly it used to be their own test file. I changed this to "ansi-aux.lsp" and ensured that such a file is present in the scratch directory.</div>
<div>* Some tests actually require entire files to be copied (see compile-file.lsp and load.lsp)</div><div><br clear="all"><div>In addition, I attach an utility script which I use when I want to run just one set of tests. It has been customized to work also out of place.</div>
<div><br></div><div>Could you guys please have a look, run it with your favorite implementation (I tried SBCL and ECL) and hopefully incorporate the changes?</div><div><br></div><div>Juanjo</div><span class="HOEnZb"><font color="#888888"><div>
<br></div>-- <br>Instituto de Física Fundamental, CSIC<br>
c/ Serrano, 113b, Madrid 28006 (Spain) <br><a href="http://juanjose.garciaripoll.googlepages.com" target="_blank">http://juanjose.garciaripoll.googlepages.com</a><br>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Instituto de Física Fundamental, CSIC<br>c/ Serrano, 113b, Madrid 28006 (Spain) <br><a href="http://juanjose.garciaripoll.googlepages.com" target="_blank">http://juanjose.garciaripoll.googlepages.com</a><br>
</div>