r8930: add database-create for pg socket, documentation improvements
[clsql.git] / examples / run-tests.sh
diff --git a/examples/run-tests.sh b/examples/run-tests.sh
new file mode 100755 (executable)
index 0000000..83a2fc4
--- /dev/null
@@ -0,0 +1,43 @@
+#!/bin/bash
+#
+# Run CLSQL tests on all installed CL implementations
+# Need to setup ~/.clsql-tests.config as show in
+# tests/test-init.lisp
+
+CMD='(asdf:operate (quote asdf:test-op) :clsql-classic)
+  (asdf:operate (quote asdf:test-op) :clsql)
+  #+allegro (excl:exit :quiet t)
+  #+clisp (#+lisp=cl ext:quit #-lisp=cl lisp:quit)
+  #+cmu (ext:quit)
+  #+lispworks (lw:quit)
+  #+openmcl (ccl:quit)
+  #+sbcl (sb-ext:quit))
+  #+scl (ext:quit)'
+
+
+
+ALLEGRO=alisp
+if [ "`which $ALLEGRO`" ]; then
+  echo "$CMD" | $ALLEGRO
+fi
+
+CMUCL=lisp
+if [ "`which $CMUCL`" ]; then
+  echo "$CMD" | $CMUCL
+fi
+
+LISPWORKS=lw-console
+#LISPWORKS=lispworks-4300
+if [ "`which $LISPWORKS`" ]; then
+  echo "$CMD" | $LISPWORKS
+fi
+
+OPENCML=openmcl
+if [ "`which $OPENMCL`" ]; then
+  echo "$CMD" | $OPENMCL
+fi
+
+SBCL=sbcl
+if [ "`which $SBCL`" ]; then
+  echo "$CMD" | $SBCL
+fi