aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@protonmail.com>2023-02-08 17:50:44 -0500
committerLibravatar netblue30 <netblue30@protonmail.com>2023-02-08 17:50:44 -0500
commit7176e6324d444b681b822f2a29c15d61c7f92677 (patch)
tree3a86a02ba87253be99886ff0f593ae300e2f9959 /test
parentadding machine-id to x11 group (diff)
downloadfirejail-7176e6324d444b681b822f2a29c15d61c7f92677.tar.gz
firejail-7176e6324d444b681b822f2a29c15d61c7f92677.tar.zst
firejail-7176e6324d444b681b822f2a29c15d61c7f92677.zip
private-etc: libreoffice, audacity, forzen-bubble, transmission, md5sum/sha512sum, more sysutils testing, fix electron-hardened.inc.profile
Diffstat (limited to 'test')
-rwxr-xr-xtest/sysutils/md5sum.exp21
-rwxr-xr-xtest/sysutils/sha512sum.exp21
-rwxr-xr-xtest/sysutils/sysutils.sh16
3 files changed, 58 insertions, 0 deletions
diff --git a/test/sysutils/md5sum.exp b/test/sysutils/md5sum.exp
new file mode 100755
index 000000000..ab2482808
--- /dev/null
+++ b/test/sysutils/md5sum.exp
@@ -0,0 +1,21 @@
1#!/usr/bin/expect -f
2# This file is part of Firejail project
3# Copyright (C) 2014-2022 Firejail Authors
4# License GPL v2
5
6set timeout 10
7spawn $env(SHELL)
8match_max 100000
9
10send -- "firejail md5sum ../../COPYING\r"
11expect {
12 timeout {puts "TESTING ERROR 0\n";exit}
13 "b234ee"
14}
15expect {
16 timeout {puts "TESTING ERROR 1\n";exit}
17 "COPYING"
18}
19
20after 500
21puts "\nall done\n"
diff --git a/test/sysutils/sha512sum.exp b/test/sysutils/sha512sum.exp
new file mode 100755
index 000000000..2a88fef83
--- /dev/null
+++ b/test/sysutils/sha512sum.exp
@@ -0,0 +1,21 @@
1#!/usr/bin/expect -f
2# This file is part of Firejail project
3# Copyright (C) 2014-2022 Firejail Authors
4# License GPL v2
5
6set timeout 10
7spawn $env(SHELL)
8match_max 100000
9
10send -- "firejail sha512sum ../../COPYING\r"
11expect {
12 timeout {puts "TESTING ERROR 0\n";exit}
13 "aee80b1f"
14}
15expect {
16 timeout {puts "TESTING ERROR 1\n";exit}
17 "COPYING"
18}
19
20after 500
21puts "\nall done\n"
diff --git a/test/sysutils/sysutils.sh b/test/sysutils/sysutils.sh
index a1aaa80a7..3c035c69c 100755
--- a/test/sysutils/sysutils.sh
+++ b/test/sysutils/sysutils.sh
@@ -7,6 +7,22 @@ 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 md5sum
11then
12 echo "TESTING: md5sum"
13 ./md5sum.exp
14else
15 echo "TESTING SKIP: md5sum not found"
16fi
17
18if command -v sha512sum
19then
20 echo "TESTING: sha512sum"
21 ./sha512sum.exp
22else
23 echo "TESTING SKIP: sha512sum not found"
24fi
25
10if command -v cpio 26if command -v cpio
11then 27then
12 echo "TESTING: cpio" 28 echo "TESTING: cpio"