From ff676f550544f47d014a7b98d4fbeb80807cdcf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= Date: Fri, 13 Jul 2018 14:12:58 +0200 Subject: [PATCH] Gracefully fail when Octave crashes in a *.m test --- tests/Makefile.am | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/Makefile.am b/tests/Makefile.am index 22d8accd3..194cdda69 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -902,7 +902,8 @@ check-octave: $(O_XFAIL_TRS_FILES) $(O_TRS_FILES) %.o.trs %.o.log : %.m @echo "`tput bold``tput setaf 8`OCTAVE: $(PWD)/$*... `tput sgr0`" @DYNARE_VERSION="$(PACKAGE_VERSION)" TOP_TEST_DIR="$(PWD)" \ - $(OCTAVE) --no-init-file --silent --no-history $< > $*.o.log 2>&1 + $(OCTAVE) --no-init-file --silent --no-history $< > $*.o.log 2>&1 || \ + printf ":test-result: FAIL\n:number-tests: 1\n:number-failed-tests: 1\n:list-of-failed-tests: $*.m\n:elapsed-time: 0.0\n" > $*.o.trs @echo "`tput bold``tput setaf 8`OCTAVE: $(PWD)/$* Done!`tput sgr0`" %.m.tls : %.m