aboutsummaryrefslogtreecommitdiffstats
path: root/test/sysutils/tar.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/sysutils/tar.exp')
-rwxr-xr-xtest/sysutils/tar.exp35
1 files changed, 35 insertions, 0 deletions
diff --git a/test/sysutils/tar.exp b/test/sysutils/tar.exp
new file mode 100755
index 000000000..af569f5ac
--- /dev/null
+++ b/test/sysutils/tar.exp
@@ -0,0 +1,35 @@
1#!/usr/bin/expect -f
2# This file is part of Firejail project
3# Copyright (C) 2014-2016 Firejail Authors
4# License GPL v2
5
6set timeout 10
7spawn $env(SHELL)
8match_max 100000
9
10send -- "firejail /bin/tar -cjvf firejail_t2 /usr/share/doc/firejail\r"
11expect {
12 timeout {puts "TESTING ERROR 1\n";exit}
13 "/usr/share/doc/firejail/README"
14}
15after 100
16
17send -- "firejail /bin/tar --compare --file=firejail_t2 -C / | wc\r"
18expect {
19 timeout {puts "TESTING ERROR 2\n";exit}
20 " 0 0 0"
21}
22sleep 1
23send -- "/bin/tar --compare --file=firejail_t2 -C / | wc\r"
24expect {
25 timeout {puts "TESTING ERROR 3\n";exit}
26 " 0 0 0"
27}
28sleep 1
29
30
31send -- "rm firejail_t*\r"
32sleep 1
33
34
35puts "\nall done\n"