Skip to content

Commit a62606d

Browse files
committed
Add a test to ensure that we can bind moount repos if they are available
1 parent 4f5b315 commit a62606d

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

.github/workflows/tests_scripts.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
- name: install Apptainer
4242
run: |
4343
./install_apptainer_ubuntu.sh
44-
44+
4545
- name: test load_easybuild_module.sh script
4646
run: |
4747
# bind current directory into container as /software-layer-scripts
@@ -139,3 +139,16 @@ jobs:
139139
for pattern in "^Site Pkg location.*/software-layer-scripts/.lmod/SitePackage.lua" "LMOD_SITEPACKAGE_LOCATION.*/software-layer-scripts/.lmod/SitePackage.lua"; do
140140
grep "${pattern}" ${out} || (echo "Pattern '${pattern}' not found in output!" && exit 1)
141141
done
142+
143+
- name: Mount EESSI CernVM-FS repository
144+
uses: eessi/github-action-eessi@v3
145+
with:
146+
eessi_stack_version: ${{matrix.EESSI_VERSION}}
147+
use_eessi_module: true
148+
149+
- name: Verify that mounted repositories are passed through directly
150+
run: |
151+
# run wrapper script + capture & check output
152+
out="${PWD}/eb-${EB_VERSION}.out"
153+
./eessi_container.sh --access rw --mode run --verbose /software-layer-scripts/run_in_compat_layer_env.sh ls 2>&1 | tee ${out}
154+
grep "SINGULARITY_BIND" ${out} | grep "software.eessi.io" || (echo "software.eessi.io did not seem to be bind mounted!" && exit 1)

0 commit comments

Comments
 (0)