Skip to content
Snippets Groups Projects
Commit 59daae3b authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Define exit code in Makefile.

parent 925935c9
Branches
Tags
No related merge requests found
Pipeline #39 failed
...@@ -5,10 +5,10 @@ all: check-octave check-matlab ...@@ -5,10 +5,10 @@ all: check-octave check-matlab
check-octave: check-octave:
@cd tests ;\ @cd tests ;\
$(OCTAVE) --no-init-file --silent --no-history --eval "addpath([pwd() '/../m-unit-tests/src']); runalltests" $(OCTAVE) --no-init-file --silent --no-history --eval "addpath([pwd() '/../m-unit-tests/src']); runalltests" && [ ! -f ./failed ] && [ -f ./pass ]
check-matlab: check-matlab:
@$(MATLAB) -nosplash -nodisplay -r "addpath m-unit-tests/src; cd tests; runalltests; quit" @$(MATLAB) -nosplash -nodisplay -r "addpath m-unit-tests/src; cd tests; runalltests; quit" && [ ! -f ./tests/failed ] && [ -f ./tests/pass ]
check-clean: check-clean:
rm -f tests/*_test_*.m tests/*.csv tests/*.xls tests/*.xlsx tests/*.mat tests/failed tests/datafile_for_test rm -f tests/*_test_*.m tests/*.csv tests/*.xls tests/*.xlsx tests/*.mat tests/failed tests/datafile_for_test
#!/bin/bash
if [[ -f ./tests/failed ]]; then
exit 1
elif [[ -f ./tests/pass ]]; then
exit 0
else
exit 1
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment