Skip to content
Snippets Groups Projects
Commit 6b54b3e0 authored by Federico Felici's avatar Federico Felici
Browse files

Add harness running method

parent 35443633
No related branches found
No related tags found
No related merge requests found
......@@ -417,6 +417,19 @@ classdef SCDclass_algo
sim(obj.modelname);
end
function test_harness(obj)
harnessname = sprintf('%s_harness.slx',obj.getname);
if ~exist(harnessname,'file')
warning('no harness %s found, skipping test',harnessname);
return
else
fprintf('running test harness %s\n',harnessname);
sim(harnessname);
% add tests to check output result somehow (TBD)
end
end
function open(obj)
open(obj.modelname)
end
......
......@@ -27,6 +27,9 @@ classdef SCDalgo_test < matlab.unittest.TestCase
testCase.algoobj.compile;
end
function test_test_harness(testCase)
testCase.algoobj.test_harness;
end
end
end
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment