Added Makefile for unit tests.

In the base directory:

~$ make check-octave

will trigger the testsuite with Octave, and

~$ make check-octave

triggers the same testsuite with Matlab.
parent 2006f985
OCTAVE=octave-cli
MATLAB=`which matlab`
all: check-octave check-matlab
check-octave:
@cd tests ;\
$(OCTAVE) --no-init-file --silent --no-history runalltests.m
check-matlab:
@$(MATLAB) -nosplash -nodisplay -r "cd tests; runalltests; quit"
......@@ -27,6 +27,10 @@ catch
initialize_dates_toolbox;
end
if isoctave
more off
end
tmp = dates_src_root;
tmp = tmp(1:end-1); % Remove trailing slash.
run_unitary_tests_in_directory(tmp);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment