Initial revision
[sbcl.git] / tests / run-tests.sh
1 #!/bin/sh
2
3 # Run the regression tests in this directory.
4
5 # how we invoke SBCL
6 sbcl=${1:-sbcl --noprint --noprogrammer}
7
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
11
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
14 # invocation of Lisp.
15 for f in *.impure.lisp; do
16     echo $f | $sbcl < pure.lisp
17 done
18
19 # *.test.sh files are scripts to test stuff. A file foo.test.sh
20 # may be associated with other files foo*, e.g. foo.lisp, foo-1.lisp,
21 # or foo.pl.
22 for f in *.test.sh; do
23     sh $f
24 done