test-suite: update charliecloud test to leverage alpine image from
dockerhub (avoiding charliecloud's experimental native image builder).
@@ -34,25 +34,38 @@ echo "-------------------------------------------------------"
}
@test "[charliecloud] build image" {
+ skip "skip experimental charliecloud image builder"
run timeout 20s $CHARLIECLOUD_DIR/share/doc/charliecloud/test/chtest/Build $CHARLIECLOUD_DIR/share/doc/charliecloud/test/chtest chtest.tar.gz $image_dir
assert_success
}
+@test "[charliecloud] build alpine image from Docker (using singularity)" {
+
+ if [ -d alpine ];then
+ rm -rf ./alpine
+ fi
+
+ module load singularity
+ run timeout 30s singularity build --sandbox alpine docker://alpine:3
+ assert_success
+}
+
+
@test "[charliecloud] exec image locally" {
- run ls -l $image_dir/img
+ run ls -l alpine/etc/os-release
assert_success
- run timeout 20s ch-run $image_dir/img -- cat /etc/os-release
+ run timeout 20s ch-run alpine -- cat /etc/os-release
assert_success
}
@test "[charliecloud] exec image via $rm" {
- run ls -l $image_dir/img
+ run ls -l alpine/etc/os-release
assert_success
- run_serial_binary timeout 20s ch-run -w $image_dir/img -- cat /etc/os-release
+ run_serial_binary timeout 20s ch-run alpine -- cat /etc/os-release
assert_success
- rm -rf $image_dir/img
+ rm -rf ./alpine
}
