aboutsummaryrefslogtreecommitdiffstats
path: root/test/sysutils/xzdec.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-06-28 07:58:20 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2016-06-28 07:58:20 -0400
commit4ece607b8f833cf0974bcf2a5e41f0504cbbff59 (patch)
tree430665bb64c6e2b893e17ceec2580c98df069534 /test/sysutils/xzdec.exp
parentcpio, gzip, strings, xzdec (diff)
downloadfirejail-4ece607b8f833cf0974bcf2a5e41f0504cbbff59.tar.gz
firejail-4ece607b8f833cf0974bcf2a5e41f0504cbbff59.tar.zst
firejail-4ece607b8f833cf0974bcf2a5e41f0504cbbff59.zip
sysutils
Diffstat (limited to 'test/sysutils/xzdec.exp')
-rwxr-xr-xtest/sysutils/xzdec.exp29
1 files changed, 29 insertions, 0 deletions
diff --git a/test/sysutils/xzdec.exp b/test/sysutils/xzdec.exp
new file mode 100755
index 000000000..0ea6f5fb0
--- /dev/null
+++ b/test/sysutils/xzdec.exp
@@ -0,0 +1,29 @@
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 -- "/usr/bin/xz -c /usr/bin/firejail > firejail_t3\r"
11sleep 1
12
13send -- "/usr/bin/xzdec -c firejail_t3 > firejail_t1\r"
14sleep 1
15
16send -- "firejail /usr/bin/xzdec -c firejail_t3 > firejail_t2\r"
17sleep 1
18
19send -- "diff -s firejail_t1 firejail_t2\r"
20expect {
21 timeout {puts "TESTING ERROR 1\n";exit}
22 "firejail_t1 and firejail_t2 are identical"
23}
24
25send -- "rm firejail_t*\r"
26sleep 1
27
28
29puts "\nall done\n"