-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
# Integration test: compression | ||
# This test aims to verify that the unpacker can handle compressed images | ||
|
||
set -o errexit -o nounset -o pipefail | ||
|
||
trap 'echo "Error on line $LINENO: $BASH_COMMAND"; exit 1' ERR | ||
|
||
docker pull alpine | ||
|
||
__tmpdir=$(mktemp -d) | ||
docker save alpine | APP_LOG_LEVEL=INFO pdm run docker-unpack unpack - "$__tmpdir" | ||
|
||
# Test whether the environment variables are correctly set | ||
apptainer exec --env MYTEST=someteststring "$__tmpdir" env | grep MYTEST | ||
|
||
rm -rf "$__tmpdir" | ||
echo "PASS" |