mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
tar spread smoke-test
This commit is contained in:
parent
e296d5b04c
commit
7a7f88ddf3
1 changed files with 10 additions and 0 deletions
10
tests/profiles/tar/task.yaml
Normal file
10
tests/profiles/tar/task.yaml
Normal 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\)'
|
Loading…
Add table
Reference in a new issue