Loading +TETTests/run.m +1 −0 Original line number Diff line number Diff line function test_results = run %RUN Runs TET test suite % Runs all the tests in TET, returning the result. TETLoadjTET path = mfilename('fullpath'); path = [path(1:size(path, 2)-13) 'Tests']; Loading TETLoadjTET.m 0 → 100644 +22 −0 Original line number Diff line number Diff line function TETLoadjTET() %TETLOADJTET Loads jTET for use by the TET % This loads the jTET library into MATLAB, so TET can use it. % First find the path. path = mfilename('fullpath'); path = [path(1:size(path, 2)-11) 'jTET/jtet-1.0-SNAPSHOT-jar-with-dependencies.jar']; % Verify the jar isn't already in the classpath. classpath = javaclasspath; exists = 0; for i=1:size(classpath,1) if strcmp(classpath{i}, path) == 1 exists = 1; end end if exists == 0 % Not added yet, thus add it. javaaddpath(path); end end TTdiag.m +1 −17 Original line number Diff line number Diff line Loading @@ -2,23 +2,7 @@ % Organization: McMaster Centre for Software Certification function TTdiag(varargin) % Java needs to be loaded here. Thus load it. % First find the path. path = mfilename('fullpath'); path = [path(1:size(path, 2)-6) 'jTET/jtet-1.0-SNAPSHOT-jar-with-dependencies.jar']; % Verify the jar isn't already in the classpath. classpath = javaclasspath; exists = 0; for i=1:size(classpath,1) if strcmp(classpath{i}, path) == 1 exists = 1; end end if exists == 0 % Not added yet, thus add it. javaaddpath(path); end TETLoadjTET(); orig_gcbh = gcbh; Loading Loading
+TETTests/run.m +1 −0 Original line number Diff line number Diff line function test_results = run %RUN Runs TET test suite % Runs all the tests in TET, returning the result. TETLoadjTET path = mfilename('fullpath'); path = [path(1:size(path, 2)-13) 'Tests']; Loading
TETLoadjTET.m 0 → 100644 +22 −0 Original line number Diff line number Diff line function TETLoadjTET() %TETLOADJTET Loads jTET for use by the TET % This loads the jTET library into MATLAB, so TET can use it. % First find the path. path = mfilename('fullpath'); path = [path(1:size(path, 2)-11) 'jTET/jtet-1.0-SNAPSHOT-jar-with-dependencies.jar']; % Verify the jar isn't already in the classpath. classpath = javaclasspath; exists = 0; for i=1:size(classpath,1) if strcmp(classpath{i}, path) == 1 exists = 1; end end if exists == 0 % Not added yet, thus add it. javaaddpath(path); end end
TTdiag.m +1 −17 Original line number Diff line number Diff line Loading @@ -2,23 +2,7 @@ % Organization: McMaster Centre for Software Certification function TTdiag(varargin) % Java needs to be loaded here. Thus load it. % First find the path. path = mfilename('fullpath'); path = [path(1:size(path, 2)-6) 'jTET/jtet-1.0-SNAPSHOT-jar-with-dependencies.jar']; % Verify the jar isn't already in the classpath. classpath = javaclasspath; exists = 0; for i=1:size(classpath,1) if strcmp(classpath{i}, path) == 1 exists = 1; end end if exists == 0 % Not added yet, thus add it. javaaddpath(path); end TETLoadjTET(); orig_gcbh = gcbh; Loading