Skip to content

Commit dd4cc2a

Browse files
committed
add test for using '--overlay-tool unionfs' option for eessi_container.sh
1 parent 955d0e6 commit dd4cc2a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/test_eessi_container_script.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
- shell
2222
- container
2323
- resume
24+
- unionfs
2425
# FIXME disabled because '--access rw' is not working in CI environment
2526
#- readwrite
2627
#- save
@@ -135,6 +136,15 @@ jobs:
135136
136137
tar tfv test-save.tar | grep "overlay-upper/${fn}"
137138
139+
# test use of --overlay-tool unionfs
140+
elif [[ ${{matrix.SCRIPT_TEST}} == 'unionfs' ]]; then
141+
container="docker://ghcr.io/eessi/build-node:debian12"
142+
echo 'ls -ld /cvmfs*/software.eessi.io/*' > test_script.sh
143+
chmod u+x test_script.sh
144+
./eessi_container.sh --verbose --container ${container} --access rw --overlay-tool unionfs --mode run /test/test_script.sh 2>&1 | tee ${outfile}
145+
grep "/cvmfs/software.eessi.io/versions" $outfile
146+
grep "/cvmfs_ro/software.eessi.io/versions" $outfile
147+
138148
else
139149
echo "Unknown test case: ${{matrix.SCRIPT_TEST}}" >&2
140150
exit 1

0 commit comments

Comments
 (0)