make check-{matlab,octave} now return a non-zero exit code if there is a failed test
parent
8ba9918652
commit
763b0a2392
|
@ -869,11 +869,9 @@ $(TEXTOUT): $(TARGETS)
|
||||||
|
|
||||||
check-matlab: $(M_XFAIL_TRS_FILES) $(M_TRS_FILES)
|
check-matlab: $(M_XFAIL_TRS_FILES) $(M_TRS_FILES)
|
||||||
./read_trs_files.sh "$(M_TRS_FILES)" "$(M_XFAIL_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)
|
check-octave: $(O_XFAIL_TRS_FILES) $(O_TRS_FILES)
|
||||||
./read_trs_files.sh "$(O_TRS_FILES)" "$(O_XFAIL_TRS_FILES)"
|
./read_trs_files.sh "$(O_TRS_FILES)" "$(O_XFAIL_TRS_FILES)"
|
||||||
@echo 'Octave Tests Done'
|
|
||||||
|
|
||||||
%.m.trs %.m.log: %.mod
|
%.m.trs %.m.log: %.mod
|
||||||
@echo "`tput bold``tput setaf 8`MATLAB: $(PWD)/$*... `tput sgr0`"
|
@echo "`tput bold``tput setaf 8`MATLAB: $(PWD)/$*... `tput sgr0`"
|
||||||
|
|
|
@ -89,3 +89,6 @@ fi
|
||||||
echo "$timing" | tr ':' '\n' | sed -e 's/^[ \t]*//;/^$/d;s/^|[ ]/| * /'
|
echo "$timing" | tr ':' '\n' | sed -e 's/^[ \t]*//;/^$/d;s/^|[ ]/| * /'
|
||||||
echo
|
echo
|
||||||
} > $outfile
|
} > $outfile
|
||||||
|
|
||||||
|
# Exit with error code if some tests failed
|
||||||
|
((failed + xpassed == 0))
|
||||||
|
|
Loading…
Reference in New Issue