Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gdat
Manage
Activity
Members
Labels
Plan
Issues
38
Issue boards
Milestones
Wiki
Code
Merge requests
11
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SPC
gdat
Commits
946d78b2
Commit
946d78b2
authored
5 years ago
by
Federico Felici
Committed by
Olivier Sauter
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Cleanup yml and test filters
parent
6e6a45ec
No related branches found
No related tags found
1 merge request
!4
Feature/testsuite
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+2
-20
2 additions, 20 deletions
.gitlab-ci.yml
matlab/run_gdat_tests.m
+6
-9
6 additions, 9 deletions
matlab/run_gdat_tests.m
with
8 additions
and
29 deletions
.gitlab-ci.yml
+
2
−
20
View file @
946d78b2
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
matlab/run_gdat_tests.m
+
6
−
9
View file @
946d78b2
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment