r8936: merged classic-tests into tests
[clsql.git] / examples / run-tests.sh
1 #!/bin/bash
2 #
3 # Run CLSQL tests on all installed CL implementations
4 # Need to setup ~/.clsql-tests.config as show in
5 # tests/test-init.lisp
6
7 CMD='(asdf:operate (quote asdf:test-op) :clsql-classic)
8   (asdf:operate (quote asdf:test-op) :clsql)
9   #+allegro (excl:exit :quiet t)
10   #+clisp (#+lisp=cl ext:quit #-lisp=cl lisp:quit)
11   #+cmu (ext:quit)
12   #+lispworks (lw:quit)
13   #+openmcl (ccl:quit)
14   #+sbcl (sb-ext:quit))
15   #+scl (ext:quit)'
16
17
18
19 ALLEGRO=alisp
20 if [ "`which $ALLEGRO`" ]; then
21   echo "$CMD" | $ALLEGRO
22 fi
23
24 CMUCL=lisp
25 if [ "`which $CMUCL`" ]; then
26   echo "$CMD" | $CMUCL
27 fi
28
29 LISPWORKS=lw-console
30 #LISPWORKS=lispworks-4300
31 if [ "`which $LISPWORKS`" ]; then
32   echo "$CMD" | $LISPWORKS
33 fi
34
35 OPENCML=openmcl
36 if [ "`which $OPENMCL`" ]; then
37   echo "$CMD" | $OPENMCL
38 fi
39
40 SBCL=sbcl
41 if [ "`which $SBCL`" ]; then
42   echo "$CMD" | $SBCL
43 fi