src/Makefile.am: Improve test running rule.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 30 Aug 2015 09:58:38 +0000 (10:58 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 6 Sep 2015 23:18:31 +0000 (00:18 +0100)
Catch errors and print them briefly rather than having a full stack
backtrace.

src/Makefile.am

index 20878a5..5b8aa21 100644 (file)
@@ -127,8 +127,12 @@ EXTRA_DIST         += lexer-test.lisp
 check-local:
        $(V_TEST)true_srcdir=$$(cd $(srcdir); pwd); \
        ASDF_OUTPUT_TRANSLATIONS=$$true_srcdir:$(abs_builddir): \
-       $(CL_LAUNCH) -l $(LISPSYS) +I -S $$true_srcdir/: \
-               -i '(asdf:test-system "sod")'
+       $(CL_LAUNCH) -l $(LISPSYS) -s sod-test +I -S $$true_srcdir/: \
+               -i '(handler-case ;\
+                     (asdf:test-system "sod") ;\
+                     (error (cond) ;\
+                       (format *error-output* "ERR: ~A~%" cond) ;\
+                       (cl-launch:quit 1)))'
 
 ###--------------------------------------------------------------------------
 ### Installation.