X-Git-Url: http://gitweb.michael.orlitzky.com/?p=octave.git;a=blobdiff_plain;f=run-tests.m;h=0bf037f4e207c3c3645fa44881fc9546c1504baf;hp=a5373fc15d3214eefae5c7ea6187fe5e31dcf632;hb=577c70130e788e7e03520277fecb44a9b68fa463;hpb=ef3085ef3c40eab925219bad1c6dbb2c6e106727 diff --git a/run-tests.m b/run-tests.m index a5373fc..0bf037f 100755 --- a/run-tests.m +++ b/run-tests.m @@ -1,10 +1,21 @@ #!/usr/bin/octave --silent +# +# You'll need to use the .octaverc in this directory to get the proper +# paths. +# addpath('./unit_test'); +global unittest_results; + unit_init(1, {}); test_files = glob('tests/*.m'); ## Source every file that matches the glob above. cellfun(@source, test_files); + +fprintf('\n'); +fprintf('Total tests attempted: %d\n', unittest_results.total); +fprintf('Total tests passed: %d\n', unittest_results.pass); +fprintf('Total tests failed: %d\n', unittest_results.fail);