Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mpsd-software-manager
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
MPSD Computational Science
mpsd-software-manager
Commits
aff87aa9
Commit
aff87aa9
authored
1 year ago
by
Ashwin Kumar Karnad
Browse files
Options
Downloads
Patches
Plain Diff
update test to auto detect system compiler
parent
6dee8bc1
No related branches found
No related tags found
2 merge requests
!19
Move linux-debian11 into main
,
!1
Resolve "First draft for user interface for top level install command"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests.py
+3
-2
3 additions, 2 deletions
tests.py
with
3 additions
and
2 deletions
tests.py
+
3
−
2
View file @
aff87aa9
...
@@ -147,10 +147,11 @@ def test_install_environment(tmp_path):
...
@@ -147,10 +147,11 @@ def test_install_environment(tmp_path):
with
open
(
module_file
,
'
w
'
)
as
f
:
with
open
(
module_file
,
'
w
'
)
as
f
:
f
.
write
(
lines
)
f
.
write
(
lines
)
# Replace gcc@10.2.1 with gcc#13.1.1 for testing on laptop
# Replace gcc@10.2.1 with gcc#13.1.1 or available system gcc for testing on laptop
gcc_ver
=
subprocess
.
run
([
'
gcc -dumpfullversion
'
],
shell
=
True
,
capture_output
=
True
).
stdout
.
decode
(
'
utf-8
'
).
strip
()
setup_file
=
release_base_dir
/
"
spack-environments/spack_setup.sh
"
setup_file
=
release_base_dir
/
"
spack-environments/spack_setup.sh
"
with
open
(
setup_file
,
'
r
'
)
as
f
:
with
open
(
setup_file
,
'
r
'
)
as
f
:
lines
=
f
.
read
().
replace
(
'
system_compiler=
"
gcc@10.2.1
"'
,
'
system_compiler=
"
gcc@
13.1.1
"'
)
lines
=
f
.
read
().
replace
(
'
system_compiler=
"
gcc@10.2.1
"'
,
f
'
system_compiler=
"
gcc@
{
gcc_ver
}
"'
)
with
open
(
setup_file
,
'
w
'
)
as
f
:
with
open
(
setup_file
,
'
w
'
)
as
f
:
f
.
write
(
lines
)
f
.
write
(
lines
)
# install global_generic toolchain
# install global_generic toolchain
...
...
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