Output totals at the end of the test suite.
[octave.git] / run-tests.m
1 #!/usr/bin/octave --silent
2 #
3 # You'll need to use the .octaverc in this directory to get the proper
4 # paths.
5 #
6
7 addpath('./unit_test');
8
9 global unittest_results;
10
11 unit_init(1, {});
12
13 test_files = glob('tests/*.m');
14
15 ## Source every file that matches the glob above.
16 cellfun(@source, test_files);
17
18 fprintf('\n');
19 fprintf('Total tests attempted: %d\n', unittest_results.total);
20 fprintf('Total tests passed: %d\n', unittest_results.pass);
21 fprintf('Total tests failed: %d\n', unittest_results.fail);