diff --git a/test/testAll.m b/test/testAll.m new file mode 100644 index 0000000000000000000000000000000000000000..a941211789b95129bdebd6743aa119275c20c1ed --- /dev/null +++ b/test/testAll.m @@ -0,0 +1,31 @@ +% include the root folder and all subfolders. +addpath(genpath([pwd filesep 'test'])); + +try + + % save the userpath + originalUserPath = path; + + result = runtests('./test/', 'Recursively', true, 'BaseFolder', '*verified*'); + + sumFailed = 0; + sumIncomplete = 0; + + % print out a summary table + table(result) + + % restore the original path + restoredefaultpath; + addpath(originalUserPath); + + if sumFailed > 0 || sumIncomplete > 0 + exit_code = 1; + end + + % ensure that we ALWAYS call exit + if ~isempty(strfind(getenv('HOME'), 'jenkins')) + exit(exit_code); + end +catch + exit(1); +end \ No newline at end of file diff --git a/test/test_myName.m b/test/verified/test_myName.m similarity index 100% rename from test/test_myName.m rename to test/verified/test_myName.m