Skip to content
Snippets Groups Projects
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
Branches
No related tags found
No related merge requests found
Makefile 0 → 100644
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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment