Commit 85e6de8b authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

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
MATLAB=`which matlab`
all: check-octave check-matlab
@cd tests ;\
$(OCTAVE) --no-init-file --silent --no-history runalltests.m
@$(MATLAB) -nosplash -nodisplay -r "cd tests; runalltests; quit"
...@@ -27,6 +27,10 @@ catch ...@@ -27,6 +27,10 @@ catch
initialize_dates_toolbox; initialize_dates_toolbox;
end end
if isoctave
more off
tmp = dates_src_root; tmp = dates_src_root;
tmp = tmp(1:end-1); % Remove trailing slash. tmp = tmp(1:end-1); % Remove trailing slash.
run_unitary_tests_in_directory(tmp); run_unitary_tests_in_directory(tmp);
Supports Markdown
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