Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Spack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
eic_tools
Spack
Commits
b51a0e5d
Commit
b51a0e5d
authored
8 years ago
by
kiel friedt
Browse files
Options
Downloads
Patches
Plain Diff
fixed bug and corrected issue with empty exclusion tag
parent
83ab64a6
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/spack/spack/cmd/test_suite.py
+16
-14
16 additions, 14 deletions
lib/spack/spack/cmd/test_suite.py
with
16 additions
and
14 deletions
lib/spack/spack/cmd/test_suite.py
+
16
−
14
View file @
b51a0e5d
...
...
@@ -137,13 +137,14 @@ def test_suite(parser, args):
enabledTests
=
data
[
'
enable
'
]
packages
=
data
[
'
packages
'
]
# list of packages to test. Current libelf, libdwarf, bzip2
compilers
=
data
[
'
compilers
'
]
exclusions
=
data
[
'
exclusions
'
]
except
:
tty
.
msg
(
"
Testing yaml files must contain atleast enable, packages and compilers to produce results.
"
)
s
s
y
.
exit
(
1
)
tty
.
msg
(
"
Testing yaml files must contain atleast enable, packages
, exclusions
and compilers to produce results.
Exclusions can be empty, IE []
"
)
sy
s
.
exit
(
1
)
try
:
dashboards
=
data
[
'
dashboard
'
]
except
:
tty
.
msg
(
"
d
ashboard tag not found. Results will be create in
"
+
str
(
cdash_root
))
tty
.
msg
(
"
D
ashboard tag not found. Results will be create in
"
+
str
(
cdash_root
))
pass
except
MarkedYAMLError
as
e
:
raise
ConfigFileError
(
...
...
@@ -152,15 +153,18 @@ def test_suite(parser, args):
except
IOError
as
e
:
raise
ConfigFileError
(
"
Error reading configuration file %s: %s
"
%
(
filename
,
str
(
e
)))
#creating a list of packages
for
package
in
packages
:
for
pkg
in
package
:
if
pkg
in
enabledTests
:
versions
=
package
[
pkg
][
0
][
'
versions
'
]
for
version
in
versions
:
# producing packages at available versions. Sample file contains only checksum'd
packageVersion
.
append
(
str
(
pkg
)
+
"
@
"
+
str
(
version
))
if
len
(
packages
)
!=
0
and
len
(
compilers
)
!=
0
:
#creating a list of packages
for
package
in
packages
:
for
pkg
in
package
:
if
pkg
in
enabledTests
:
versions
=
package
[
pkg
][
0
][
'
versions
'
]
for
version
in
versions
:
# producing packages at available versions. Sample file contains only checksum'd
packageVersion
.
append
(
str
(
pkg
)
+
"
@
"
+
str
(
version
))
else
:
tty
.
msg
(
"
Testing without packages/compilers is no fun. Please add packages/compilers to you yaml file.
"
)
sys
.
exit
(
1
)
#creating a list of compilers
for
compiler
in
compilers
:
for
comp
in
compiler
:
...
...
@@ -177,7 +181,6 @@ def test_suite(parser, args):
tests
.
append
(
str
(
pkg
)
+
"
%
"
+
str
(
comp
))
#loading test excusions
removeTests
=
[]
exclusions
=
data
[
'
exclusions
'
]
if
len
(
exclusions
)
!=
0
:
#remove test that match the exclusion
#setting up tests for contretizing
...
...
@@ -189,7 +192,6 @@ def test_suite(parser, args):
removeTests
.
append
(
test
)
for
test
in
removeTests
:
tests
.
remove
(
test
)
concreteTests
=
[]
#setting up tests for contretizing
for
test
in
tests
:
...
...
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