Mercurial > hg > octave-nkf
changeset 20636:fe488ffe5f4b
* __run_test_suite__.m: Return number of passed, failed, and skipped tests.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 05 Aug 2015 15:21:21 -0400 |
parents | 099bdf98f724 |
children | d5b877b86ed4 |
files | scripts/testfun/__run_test_suite__.m |
diffstat | 1 files changed, 10 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/testfun/__run_test_suite__.m +++ b/scripts/testfun/__run_test_suite__.m @@ -21,7 +21,8 @@ ## Undocumented internal function. ## @end deftypefn -function __run_test_suite__ (fcndirs, fixedtestdirs) +function [pass, fail, xfail, skip] = __run_test_suite__ (fcndirs, fixedtestdirs) + testsdir = octave_config_info ("octtestsdir"); libinterptestdir = fullfile (testsdir, "libinterp"); liboctavetestdir = fullfile (testsdir, "liboctave"); @@ -117,6 +118,14 @@ warning (orig_wstate); page_screen_output (pso); end_unwind_protect + + if (nargout > 0) + pass = np; + fail = nfail; + xfail = dxf; + skip = xsk; + endif + endfunction function print_test_file_name (nm)