From: Mark Wooding Date: Sun, 30 Aug 2015 09:58:38 +0000 (+0100) Subject: src/Makefile.am: Improve test running rule. X-Git-Tag: 0.2.0~8 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/sod/commitdiff_plain/1d7528b63ae429e01f097b831aba50c060c4ea7e src/Makefile.am: Improve test running rule. Catch errors and print them briefly rather than having a full stack backtrace. --- diff --git a/src/Makefile.am b/src/Makefile.am index 20878a5..5b8aa21 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -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.