Skip to content
Snippets Groups Projects
Commit 946d78b2 authored by Federico Felici's avatar Federico Felici Committed by Olivier Sauter
Browse files

Cleanup yml and test filters

parent 6e6a45ec
No related branches found
No related tags found
1 merge request!4Feature/testsuite
...@@ -8,7 +8,7 @@ include: ...@@ -8,7 +8,7 @@ include:
.deploy: # do later .deploy: # do later
extends: .deploy-to-lac-template extends: .deploy-to-lac-template
test-matlab850-basic: test-matlab850:
extends: .test-template extends: .test-template
before_script: before_script:
- cd matlab - cd matlab
...@@ -16,7 +16,7 @@ test-matlab850-basic: ...@@ -16,7 +16,7 @@ test-matlab850-basic:
MATLABCMD: matlab850 MATLABCMD: matlab850
TESTCASE: basic TESTCASE: basic
test-matlab920-basic: test-matlab920:
extends: .test-template extends: .test-template
before_script: before_script:
- cd matlab - cd matlab
...@@ -24,24 +24,6 @@ test-matlab920-basic: ...@@ -24,24 +24,6 @@ test-matlab920-basic:
MATLABCMD: matlab920 MATLABCMD: matlab920
TESTCASE: basic TESTCASE: basic
test-matlab920-all:
extends: test-matlab850-basic
variables:
TESTCASE: all
only:
- schedules
- web
- master
test-matlab850-all:
extends: test-matlab920-basic
variables:
TESTCASE: all
only:
- schedules
- web
- master
.test-matlab850-deployed: .test-matlab850-deployed:
extends: .test-template-deployed extends: .test-template-deployed
variables: variables:
......
...@@ -13,8 +13,8 @@ addpath(genpath(fullfile(fileparts(mfilename('fullpath')),'tests'))); ...@@ -13,8 +13,8 @@ addpath(genpath(fullfile(fileparts(mfilename('fullpath')),'tests')));
addpath(genpath(fullfile(fileparts(mfilename('fullpath')),'TCV_IMAS'))); addpath(genpath(fullfile(fileparts(mfilename('fullpath')),'TCV_IMAS')));
suite_all = [matlab.unittest.TestSuite.fromClass(?test_requestnames_TCV),... suite_all = [matlab.unittest.TestSuite.fromClass(?test_requestnames_TCV),...
matlab.unittest.TestSuite.fromClass(?test_requestnames_AUG)]; %,... matlab.unittest.TestSuite.fromClass(?test_requestnames_AUG),...
%matlab.unittest.TestSuite.fromClass(?test_tcv_get_ids)]; matlab.unittest.TestSuite.fromClass(?test_tcv_get_ids)];
switch test_case switch test_case
case 'all' case 'all'
...@@ -27,14 +27,11 @@ switch test_case ...@@ -27,14 +27,11 @@ switch test_case
import matlab.unittest.constraints.ContainsSubstring; import matlab.unittest.constraints.ContainsSubstring;
s1 = HasName(ContainsSubstring('TCV')) & ... s1 = HasName(ContainsSubstring('TCV')) & ...
(HasParameter('Value','ip') | HasParameter('Value','q_rho')); (HasParameter('Value','ip') | HasParameter('Value','q_rho'));
suite = suite_all.selectIf(s1);
case 'IMAS'
s2 = HasTag('IMAS'); s2 = HasTag('IMAS');
suite = suite_all.selectIf(s2);
suite = suite_all.selectIf(s1 | s2);
case 'TCV'
suite = suite_all.selectIf(HasParameter('machine',IsEqualTo('TCV')));
case 'AUG'
suite = suite_all.selectIf(HasParameter('machine',IsEqualTo('AUG')));
otherwise otherwise
error('not yet implemented') error('not yet implemented')
end end
......
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