aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@protonmail.com>2023-03-03 17:16:45 -0500
committerLibravatar netblue30 <netblue30@protonmail.com>2023-03-03 17:16:45 -0500
commit774fadedeebf92fecc90b10efcef682c547f573b (patch)
tree87af81b64191a03d31716e8a4ec39a6a726c64f5 /test
parentmore testing (diff)
downloadfirejail-774fadedeebf92fecc90b10efcef682c547f573b.tar.gz
firejail-774fadedeebf92fecc90b10efcef682c547f573b.tar.zst
firejail-774fadedeebf92fecc90b10efcef682c547f573b.zip
testing firecfg
Diffstat (limited to 'test')
-rwxr-xr-xtest/firecfg/firecfg.exp18
-rwxr-xr-xtest/firecfg/firecfg.sh15
2 files changed, 20 insertions, 13 deletions
diff --git a/test/firecfg/firecfg.exp b/test/firecfg/firecfg.exp
new file mode 100755
index 000000000..0249fb7fa
--- /dev/null
+++ b/test/firecfg/firecfg.exp
@@ -0,0 +1,18 @@
1#!/usr/bin/expect -f
2# This file is part of Firejail project
3# Copyright (C) 2014-2023 Firejail Authors
4# License GPL v2
5
6set timeout 10
7spawn $env(SHELL)
8match_max 100000
9
10send -- "file /usr/local/bin/ping\r"
11expect {
12 timeout {puts "TESTING ERROR 0\n";exit}
13 "ping: symbolic link to /usr/bin/firejail"
14}
15
16after 100
17
18puts "\nall done\n"
diff --git a/test/firecfg/firecfg.sh b/test/firecfg/firecfg.sh
index 5a87f3764..6b03cc841 100755
--- a/test/firecfg/firecfg.sh
+++ b/test/firecfg/firecfg.sh
@@ -7,17 +7,6 @@ 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
10sudo cat /sys/kernel/security/apparmor/profiles
11sudo firecfg 10sudo firecfg
12file /usr/local/bin/ping 11echo "TESTING: firecfg (test/firecfg/firecfg.exp)"
13ls -l /usr/local/bin 12./firecfg.exp
14sudo cat /sys/kernel/security/apparmor/profiles
15
16#if [[ -f /sys/kernel/security/apparmor/profiles ]]; then
17#
18#else
19# echo "TESTING SKIP: no apparmor support in Linux kernel (test/filters/apparmor.exp)"
20#fi
21#
22#echo "TESTING: firecfg (test/firecfg/firecfg.exp)"
23#./firecfg.exp.exp