X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Frun-tests.sh;h=ed1b498962383529a120cf67e3c8939ae8188e76;hb=HEAD;hp=487537e4cd7817e078883a37c66fb40f7586b520;hpb=b7a8f5313a83dea33ce60551a4fb987b415c2cc6;p=sbcl.git diff --git a/tests/run-tests.sh b/tests/run-tests.sh old mode 100644 new mode 100755 index 487537e..ed1b498 --- a/tests/run-tests.sh +++ b/tests/run-tests.sh @@ -1,150 +1,55 @@ #!/bin/sh -# Run the regression tests in this directory. - # This software is part of the SBCL system. See the README file for # more information. # # 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. -# how we invoke SBCL in the tests -# -# 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. -sbclstem=`pwd`/../src/runtime/sbcl -SBCL="${1:-$sbclstem --core `pwd`/../output/sbcl.core --noinform --sysinit /dev/null --userinit /dev/null --noprint --disable-debugger}" -export SBCL -echo /running tests on SBCL=\'$SBCL\' -# more or less like SBCL, but without enough grot removed that appending -# a --core command line argument works -# -# (KLUDGE: and also without any magic to suppress --userinit and -# --sysinit, so if you use it in a test, you need to add those -# yourself if you want things to be clean. If many tests start using -# this, we can redo it as a shell function or something so that the -# magic can be done once and only once.) -SBCL_ALLOWING_CORE=${1:-$sbclstem} -export SBCL_ALLOWING_CORE -echo /with SBCL_ALLOWING_CORE=\'$SBCL_ALLOWING_CORE\' +if [ "$1" = "--help" ]; then + cat <