diff options
author | netblue30 <netblue30@yahoo.com> | 2016-06-28 07:58:20 -0400 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2016-06-28 07:58:20 -0400 |
commit | 4ece607b8f833cf0974bcf2a5e41f0504cbbff59 (patch) | |
tree | 430665bb64c6e2b893e17ceec2580c98df069534 /test/sysutils/gzip.exp | |
parent | cpio, gzip, strings, xzdec (diff) | |
download | firejail-4ece607b8f833cf0974bcf2a5e41f0504cbbff59.tar.gz firejail-4ece607b8f833cf0974bcf2a5e41f0504cbbff59.tar.zst firejail-4ece607b8f833cf0974bcf2a5e41f0504cbbff59.zip |
sysutils
Diffstat (limited to 'test/sysutils/gzip.exp')
-rwxr-xr-x | test/sysutils/gzip.exp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/test/sysutils/gzip.exp b/test/sysutils/gzip.exp new file mode 100755 index 000000000..ab0e727de --- /dev/null +++ b/test/sysutils/gzip.exp | |||
@@ -0,0 +1,26 @@ | |||
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 | |||
6 | set timeout 10 | ||
7 | spawn $env(SHELL) | ||
8 | match_max 100000 | ||
9 | |||
10 | send -- "/bin/gzip -c /usr/bin/firejail > firejail_t1\r" | ||
11 | sleep 1 | ||
12 | |||
13 | send -- "firejail /bin/gzip -c /usr/bin/firejail > firejail_t2\r" | ||
14 | sleep 1 | ||
15 | |||
16 | send -- "diff -s firejail_t1 firejail_t2\r" | ||
17 | expect { | ||
18 | timeout {puts "TESTING ERROR 1\n";exit} | ||
19 | "firejail_t1 and firejail_t2 are identical" | ||
20 | } | ||
21 | |||
22 | send -- "rm firejail_t*\r" | ||
23 | sleep 1 | ||
24 | |||
25 | |||
26 | puts "\nall done\n" | ||