aboutsummaryrefslogtreecommitdiffstats
path: root/test/sysutils/tar.exp
diff options
context:
space:
mode:
authorLibravatar Reiner Herrmann <reiner@reiner-h.de>2016-08-07 18:05:45 +0200
committerLibravatar Reiner Herrmann <reiner@reiner-h.de>2016-08-07 18:23:10 +0200
commit173a90129e73e81fa80bb12f6ec19e3943c74ca5 (patch)
tree09a45d557371201158a90ec7a1215d4a415aa44e /test/sysutils/tar.exp
parentMerge pull request #687 from reinerh/master (diff)
downloadfirejail-173a90129e73e81fa80bb12f6ec19e3943c74ca5.tar.gz
firejail-173a90129e73e81fa80bb12f6ec19e3943c74ca5.tar.zst
firejail-173a90129e73e81fa80bb12f6ec19e3943c74ca5.zip
tar requires shell for executing compressors like bzip2
Diffstat (limited to 'test/sysutils/tar.exp')
-rwxr-xr-xtest/sysutils/tar.exp17
1 files changed, 14 insertions, 3 deletions
diff --git a/test/sysutils/tar.exp b/test/sysutils/tar.exp
index af569f5ac..f41d67d6f 100755
--- a/test/sysutils/tar.exp
+++ b/test/sysutils/tar.exp
@@ -9,20 +9,31 @@ match_max 100000
9 9
10send -- "firejail /bin/tar -cjvf firejail_t2 /usr/share/doc/firejail\r" 10send -- "firejail /bin/tar -cjvf firejail_t2 /usr/share/doc/firejail\r"
11expect { 11expect {
12 timeout {puts "TESTING ERROR 1\n";exit} 12 timeout {puts "TESTING ERROR 1.1\n";exit}
13 "Error" {puts "TESTING ERROR 1.2\n";exit}
13 "/usr/share/doc/firejail/README" 14 "/usr/share/doc/firejail/README"
14} 15}
15after 100 16after 100
16 17
18send -- "stat -c '|%s|' firejail_t2; uname -s\r"
19expect {
20 timeout {puts "TESTING ERROR 2.1\n";exit}
21 "|0|" {puts "TESTING ERROR 2.2\n";exit}
22 "Linux"
23}
24sleep 1
25
17send -- "firejail /bin/tar --compare --file=firejail_t2 -C / | wc\r" 26send -- "firejail /bin/tar --compare --file=firejail_t2 -C / | wc\r"
18expect { 27expect {
19 timeout {puts "TESTING ERROR 2\n";exit} 28 timeout {puts "TESTING ERROR 3.1\n";exit}
29 "This does not look like a tar archive" {puts "TESTING ERROR 3.2\n"; exit}
20 " 0 0 0" 30 " 0 0 0"
21} 31}
22sleep 1 32sleep 1
23send -- "/bin/tar --compare --file=firejail_t2 -C / | wc\r" 33send -- "/bin/tar --compare --file=firejail_t2 -C / | wc\r"
24expect { 34expect {
25 timeout {puts "TESTING ERROR 3\n";exit} 35 timeout {puts "TESTING ERROR 4.1\n";exit}
36 "This does not look like a tar archive" {puts "TESTING ERROR 4.2\n"; exit}
26 " 0 0 0" 37 " 0 0 0"
27} 38}
28sleep 1 39sleep 1