X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fclocc-ansi.test.sh;h=1e4cba98f1524ca7eafa3738683a4b4725df354e;hb=a189a69454ef7635149319ae213b337f17c50d20;hp=eb61318716155bd0810a3793f6823f60e86be674;hpb=9514c25e89aad10784c6d04fea4595d8c8ae68cc;p=sbcl.git diff --git a/tests/clocc-ansi.test.sh b/tests/clocc-ansi.test.sh index eb61318..1e4cba9 100644 --- a/tests/clocc-ansi.test.sh +++ b/tests/clocc-ansi.test.sh @@ -20,22 +20,23 @@ # While most of SBCL is derived from the CMU CL system, the test # files (like this one) were written from scratch after the fork # from CMU CL. -# +# # This software is in the public domain and is provided with # absolutely no warranty. See the COPYING and CREDITS files for # more information. -# Remember where we came from so we can find local support files later. -originalpwd=`pwd` +. ./subr.sh # Find clocc ansi-test (or just punt, returning success). +set +u if [ "$SBCL_CLOCC_ANSI_TEST" = "" ] ; then echo //punting clocc ansi-test because SBCL_CLOCC_ANSI_TEST is undefined - exit 104 -else + exit $EXIT_TEST_WIN +else echo //going on to run clocc ansi-test in $SBCL_CLOCC_ANSI_TEST cd $SBCL_CLOCC_ANSI_TEST fi +set -u # The condition system is for the weak. tmpprefix="${TMPDIR:-/tmp}/sbcl-clocc-ansi-test-$$" @@ -43,10 +44,10 @@ rawfilename="$tmpprefix-raw.tmp" bugsfilename="$tmpprefix-bugs.tmp" # Go SBCL go. -$SBCL <$rawfilename +run_sbcl <$rawfilename (in-package :cl-user) ;;; Tell ansi-test about our known bugs. -(load "$originalpwd/clocc-ansi-test-known-bugs.lisp") +(load "$SBCL_PWD/clocc-ansi-test-known-bugs.lisp") ;;; Actually run ansi-test. (load "tests.lisp") ;;; Return a special status code to show that we reached the end