diff options
Diffstat (limited to 'test/sysutils')
-rwxr-xr-x | test/sysutils/gzip.exp | 16 | ||||
-rwxr-xr-x | test/sysutils/sysutils.sh | 8 |
2 files changed, 13 insertions, 11 deletions
diff --git a/test/sysutils/gzip.exp b/test/sysutils/gzip.exp index 75b51694c..b0c41e429 100755 --- a/test/sysutils/gzip.exp +++ b/test/sysutils/gzip.exp | |||
@@ -7,20 +7,14 @@ set timeout 10 | |||
7 | spawn $env(SHELL) | 7 | spawn $env(SHELL) |
8 | match_max 100000 | 8 | match_max 100000 |
9 | 9 | ||
10 | send -- "/bin/gzip -c /usr/bin/firejail > firejail_t1\r" | 10 | send -- "rm index.html*\r" |
11 | sleep 1 | 11 | after 500 |
12 | 12 | ||
13 | send -- "firejail /bin/gzip -c /usr/bin/firejail > firejail_t2\r" | 13 | send -- "firejail gzip -c ../../mkdeb.sh | firejail gunzip -c\r" |
14 | sleep 1 | ||
15 | |||
16 | send -- "diff -s firejail_t1 firejail_t2\r" | ||
17 | expect { | 14 | expect { |
18 | timeout {puts "TESTING ERROR 1\n";exit} | 15 | timeout {puts "TESTING ERROR 1\n";exit} |
19 | "firejail_t1 and firejail_t2 are identical" | 16 | "This file is part of Firejail project" |
20 | } | 17 | } |
21 | 18 | after 500 | |
22 | send -- "rm firejail_t*\r" | ||
23 | sleep 1 | ||
24 | |||
25 | 19 | ||
26 | puts "\nall done\n" | 20 | puts "\nall done\n" |
diff --git a/test/sysutils/sysutils.sh b/test/sysutils/sysutils.sh index 3c035c69c..c74a7d9e8 100755 --- a/test/sysutils/sysutils.sh +++ b/test/sysutils/sysutils.sh | |||
@@ -7,6 +7,14 @@ export MALLOC_CHECK_=3 | |||
7 | export MALLOC_PERTURB_=$(($RANDOM % 255 + 1)) | 7 | export MALLOC_PERTURB_=$(($RANDOM % 255 + 1)) |
8 | export LC_ALL=C | 8 | export LC_ALL=C |
9 | 9 | ||
10 | if command -v gzip | ||
11 | then | ||
12 | echo "TESTING: gzip" | ||
13 | ./gzip.exp | ||
14 | else | ||
15 | echo "TESTING SKIP: md5sum not found" | ||
16 | fi | ||
17 | |||
10 | if command -v md5sum | 18 | if command -v md5sum |
11 | then | 19 | then |
12 | echo "TESTING: md5sum" | 20 | echo "TESTING: md5sum" |