3 # Run the regression tests in this directory.
6 sbcl=${1:-sbcl --noprint --noprogrammer}
8 # *.pure.lisp files are ordinary Lisp code with no side effects,
9 # and we can run them all in a single Lisp process.
10 (for f in *.pure.lisp; do echo \"$f\"; done) | $sbcl < pure.lisp
12 # *.impure.lisp files are Lisp code with side effects (e.g. doing DEFSTRUCT
13 # or DEFTYPE or DEFVAR). Each one needs to be run as a separate
15 for f in *.impure.lisp; do
16 echo $f | $sbcl < pure.lisp
19 # *.test.sh files are scripts to test stuff, typically stuff which can't
20 # so easily be tested within Lisp itself. A file foo.test.sh
21 # may be associated with other files foo*, e.g. foo.lisp, foo-1.lisp,
23 for f in *.test.sh; do
24 sh $f || exit failed test $f
27 # *.assertoids files contain ASSERTOID statements to test things
28 # interpreted and at various compilation levels.
29 for f in *.assertoids; do
30 echo "(load \"$f\")" | $sbcl --eval '(load "assertoid.lisp")'