tar spread smoke-test

This commit is contained in:
Octavio Galland 2025-01-23 14:03:23 -03:00
parent e296d5b04c
commit 7a7f88ddf3

View file

@ -0,0 +1,10 @@
summary: smoke test for the tar profile
execute: |
# tar works (this is a very basic test).
# create a text file, archive it and delete the original file
echo "test" > file.txt && tar -czf archive.tar file.txt && rm file.txt
# extract archive, assert contets are correct
tar -xzf archive.tar && [ $(cat file.txt) == "test" ]
# The profile is attached based on the program path.
"$SPREAD_PATH"/tests/bin/actual-profile-of tar | MATCH 'tar \(enforce\)'