Skip to content

Commit

Permalink
Added script that calls NonHW tests.
Browse files Browse the repository at this point in the history
CI: skip=HDL Tests; skip=Demo Tests; skip=Hardware Streaming Tests

Signed-off-by: Pagadarai <[email protected]>
  • Loading branch information
SrikanthPagadarai committed Mar 21, 2024
1 parent e429bf2 commit ec66a3c
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions test/runNonHWTest.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
function suite = runNonHWTest()

import matlab.unittest.TestRunner;
import matlab.unittest.TestSuite;
import matlab.unittest.plugins.TestReportPlugin;
import matlab.unittest.plugins.XMLPlugin
import matlab.unittest.plugins.DiagnosticsValidationPlugin

suite = testsuite({'NonHWTest'});
xmlFile = 'BSPDemoTests.xml';


try
runner = matlab.unittest.TestRunner.withTextOutput('OutputDetail',1);
runner.addPlugin(DiagnosticsValidationPlugin)

xmlFile = 'BSPDemoTests.xml';
plugin = XMLPlugin.producingJUnitFormat(xmlFile);
runner.addPlugin(plugin);

results = runner.run(suite);

t = table(results);
disp(t);
disp(repmat('#',1,80));
for test = results
if test.Failed
disp(test.Name);
end
end
catch e
disp(getReport(e,'extended'));
bdclose('all');
exit(1);
end

save(['BSPInstallerTest_',datestr(now,'dd_mm_yyyy-HH:MM:SS'),'.mat'],'t');
bdclose('all');
exit(any([results.Failed]));

0 comments on commit ec66a3c

Please sign in to comment.