make check-{matlab,octave} now return a non-zero exit code if there is a failed test

time-shift
Sébastien Villemot 2018-09-13 16:05:16 +02:00
parent 8ba9918652
commit 763b0a2392
2 changed files with 3 additions and 2 deletions

View File

@ -869,11 +869,9 @@ $(TEXTOUT): $(TARGETS)
check-matlab: $(M_XFAIL_TRS_FILES) $(M_TRS_FILES)
./read_trs_files.sh "$(M_TRS_FILES)" "$(M_XFAIL_TRS_FILES)"
@echo 'Matlab Tests Done'
check-octave: $(O_XFAIL_TRS_FILES) $(O_TRS_FILES)
./read_trs_files.sh "$(O_TRS_FILES)" "$(O_XFAIL_TRS_FILES)"
@echo 'Octave Tests Done'
%.m.trs %.m.log: %.mod
@echo "`tput bold``tput setaf 8`MATLAB: $(PWD)/$*... `tput sgr0`"

View File

@ -89,3 +89,6 @@ fi
echo "$timing" | tr ':' '\n' | sed -e 's/^[ \t]*//;/^$/d;s/^|[ ]/| * /'
echo
} > $outfile
# Exit with error code if some tests failed
((failed + xpassed == 0))