Makefile 531 Bytes
Newer Older
1 2 3 4 5
OCTAVE=octave-cli
MATLAB=`which matlab`

all: check-octave check-matlab

6 7 8
check-octave:
	@cd tests ;\
	$(OCTAVE) --no-init-file --silent --no-history --eval "addpath([pwd() '/../m-unit-tests/src']); runalltests" && [ ! -f ./failed ] && [ -f ./pass ]
9

10 11
check-matlab:
	@$(MATLAB)  -nosplash -nodisplay -r "addpath m-unit-tests/src; cd tests; runalltests; quit" && [ ! -f ./tests/failed ] && [ -f ./tests/pass ]
12 13

check-clean:
14
	rm -f tests/*_test_*.m tests/*.csv tests/*.xls tests/*.xlsx tests/*.mat tests/failed tests/datafile_for_test