Auswertung Experiment
Database tüddelei DBHanlder läuft gut für DIESE Datanbank struktur... App begonnen aber weit entfernt von gutem Stand
This commit is contained in:
38
Libs/mat2tikz/test/runMatlab2TikzTests.m
Normal file
38
Libs/mat2tikz/test/runMatlab2TikzTests.m
Normal file
@@ -0,0 +1,38 @@
|
||||
function statusAll = runMatlab2TikzTests(varargin)
|
||||
%% This file runs the complete MATLAB2TIKZ test suite.
|
||||
% It is mainly used for testing on a continuous integration server, but it can
|
||||
% also be used on a development machine.
|
||||
|
||||
CI_MODE = strcmpi(getenv('CONTINUOUS_INTEGRATION'),'true') || strcmp(getenv('CI'),'true');
|
||||
isJenkins = ~isempty(getenv('JENKINS_URL'));
|
||||
|
||||
%% Set path
|
||||
addpath(fullfile(pwd,'..','src'));
|
||||
addpath(fullfile(pwd,'suites'));
|
||||
|
||||
%% Select functions to run
|
||||
suite = @ACID;
|
||||
allTests = 1:numel(suite(0));
|
||||
|
||||
%% Prepare environment
|
||||
if strcmpi(getEnvironment(), 'Octave')
|
||||
% Ensure that paging is disabled
|
||||
% https://www.gnu.org/software/octave/doc/interpreter/Paging-Screen-Output.html
|
||||
more off
|
||||
end
|
||||
|
||||
%% Run tests
|
||||
status = testHeadless('testFunctionIndices', allTests,...
|
||||
'testsuite', suite, varargin{:});
|
||||
|
||||
if isJenkins
|
||||
makeTapReport(status, 'stream', 'results.test.tap');
|
||||
makeTravisReport(status, 'stream', 'results.test.md');
|
||||
end
|
||||
|
||||
nErrors = makeTravisReport(status);
|
||||
|
||||
%% Calculate exit code
|
||||
if CI_MODE
|
||||
exit(nErrors);
|
||||
end
|
||||
Reference in New Issue
Block a user