diff options
-rwxr-xr-x | test/firecfg/firecfg.exp | 18 | ||||
-rwxr-xr-x | test/firecfg/firecfg.sh | 15 |
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 | |||
6 | set timeout 10 | ||
7 | spawn $env(SHELL) | ||
8 | match_max 100000 | ||
9 | |||
10 | send -- "file /usr/local/bin/ping\r" | ||
11 | expect { | ||
12 | timeout {puts "TESTING ERROR 0\n";exit} | ||
13 | "ping: symbolic link to /usr/bin/firejail" | ||
14 | } | ||
15 | |||
16 | after 100 | ||
17 | |||
18 | puts "\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 | |||
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 | sudo cat /sys/kernel/security/apparmor/profiles | ||
11 | sudo firecfg | 10 | sudo firecfg |
12 | file /usr/local/bin/ping | 11 | echo "TESTING: firecfg (test/firecfg/firecfg.exp)" |
13 | ls -l /usr/local/bin | 12 | ./firecfg.exp |
14 | sudo 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 | ||