1 #!/usr/bin/octave --silent
3 # You'll need to use the .octaverc in this directory to get the proper
4 # paths. You can pass it an integer on the command-line to specify how
5 # many times we should run the test suite in succession. The default
9 addpath('./unit_test');
11 global unittest_results;
15 test_files = glob('tests/*.m');
19 if (length(arg_list) > 0)
20 loop_count = arg_list{1};
23 ## Source every file that matches the glob above.
24 for idx = [ 1 : loop_count ]
25 cellfun(@source, test_files);
30 fprintf('Total tests attempted: %d\n', unittest_results.total);
31 fprintf('Total tests passed: %d\n', unittest_results.pass);
32 fprintf('Total tests failed: %d\n', unittest_results.fail);