diff --git a/Makefile b/Makefile index 3967002249224d491fd24a14444355bd4cfc9e42..dc901657fc6c717ed4ca6032da546ef55620204b 100644 --- a/Makefile +++ b/Makefile @@ -5,10 +5,10 @@ all: check-octave check-matlab check-octave: @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: - @$(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: rm -f tests/*_test_*.m tests/*.csv tests/*.xls tests/*.xlsx tests/*.mat tests/failed tests/datafile_for_test diff --git a/success.sh b/success.sh deleted file mode 100755 index 650a7d0179cacb4535cb81e691284843f989db93..0000000000000000000000000000000000000000 --- a/success.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash -if [[ -f ./tests/failed ]]; then - exit 1 -elif [[ -f ./tests/pass ]]; then - exit 0 -else - exit 1 -fi