aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@protonmail.com>2023-02-10 14:38:57 -0500
committerLibravatar netblue30 <netblue30@protonmail.com>2023-02-10 14:38:57 -0500
commit29da82d08aab5120262f42032fed6dc7807e5b0d (patch)
tree016881e859cc2f7e1c0e446436afe6ce3e605f1d /test
parentprivate-etc: more on gcrypt (diff)
downloadfirejail-29da82d08aab5120262f42032fed6dc7807e5b0d.tar.gz
firejail-29da82d08aab5120262f42032fed6dc7807e5b0d.tar.zst
firejail-29da82d08aab5120262f42032fed6dc7807e5b0d.zip
private-etc: kdiff3, gzip, gunzip, tar etc
Diffstat (limited to 'test')
-rwxr-xr-xtest/sysutils/gzip.exp16
-rwxr-xr-xtest/sysutils/sysutils.sh8
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
7spawn $env(SHELL) 7spawn $env(SHELL)
8match_max 100000 8match_max 100000
9 9
10send -- "/bin/gzip -c /usr/bin/firejail > firejail_t1\r" 10send -- "rm index.html*\r"
11sleep 1 11after 500
12 12
13send -- "firejail /bin/gzip -c /usr/bin/firejail > firejail_t2\r" 13send -- "firejail gzip -c ../../mkdeb.sh | firejail gunzip -c\r"
14sleep 1
15
16send -- "diff -s firejail_t1 firejail_t2\r"
17expect { 14expect {
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 18after 500
22send -- "rm firejail_t*\r"
23sleep 1
24
25 19
26puts "\nall done\n" 20puts "\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
7export MALLOC_PERTURB_=$(($RANDOM % 255 + 1)) 7export MALLOC_PERTURB_=$(($RANDOM % 255 + 1))
8export LC_ALL=C 8export LC_ALL=C
9 9
10if command -v gzip
11then
12 echo "TESTING: gzip"
13 ./gzip.exp
14else
15 echo "TESTING SKIP: md5sum not found"
16fi
17
10if command -v md5sum 18if command -v md5sum
11then 19then
12 echo "TESTING: md5sum" 20 echo "TESTING: md5sum"