X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tests%2Frun-tests.sh;h=df6d40ed8cf172e058da56108be941a390e25904;hb=9a2e730f74641e7de6ad4099111db92c5ad863bf;hp=40549f27d00b07c68888f70b2229b12ed233ea23;hpb=f2aa2d01b8d69f1c7bff18f86279d4f1018fe127;p=sbcl.git diff --git a/tests/run-tests.sh b/tests/run-tests.sh index 40549f2..df6d40e 100644 --- a/tests/run-tests.sh +++ b/tests/run-tests.sh @@ -14,7 +14,14 @@ # more information. # how we invoke SBCL in the tests -export SBCL="${1:-../src/runtime/sbcl --core ../output/sbcl.core --noinform --sysinit /dev/null --userinit /dev/null --noprint --noprogrammer}" +# +# Until sbcl-0.6.12.8, the shell variable SBCL was bound to a relative +# pathname, but now we take care to bind it to an absolute pathname (still +# generated relative to `pwd` in the tests/ directory) so that tests +# can chdir before invoking SBCL and still work. +SBCL="${1:-`pwd`/../src/runtime/sbcl --core `pwd`/../output/sbcl.core --noinform --sysinit /dev/null --userinit /dev/null --noprint --disable-debugger}" +export SBCL +echo /running tests on SBCL=\'$SBCL\' # "Ten four" is the closest numerical slang I can find to "OK", so # it's the Unix status value that we expect from a successful test. @@ -28,7 +35,7 @@ tenfour () { if [ $? = 104 ]; then echo ok else - echo test failed: $? + echo test failed, expected 104 return code, got $? exit 1 fi } @@ -93,7 +100,11 @@ for f in *.pure-cload.lisp; do echo //running $f test $SBCL <