aboutsummaryrefslogtreecommitdiffstats
path: root/test/fs-print.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/fs-print.exp')
-rwxr-xr-xtest/fs-print.exp29
1 files changed, 29 insertions, 0 deletions
diff --git a/test/fs-print.exp b/test/fs-print.exp
new file mode 100755
index 000000000..48056a3bf
--- /dev/null
+++ b/test/fs-print.exp
@@ -0,0 +1,29 @@
1#!/usr/bin/expect -f
2
3set timeout 10
4spawn $env(SHELL)
5match_max 100000
6
7send -- "firejail --name=test\r"
8expect {
9 timeout {puts "TESTING ERROR 0\n";exit}
10 "Child process initialized"
11}
12sleep 2
13
14spawn $env(SHELL)
15send -- "firejail --fs.print=test\r"
16expect {
17 timeout {puts "TESTING ERROR 1\n";exit}
18 "blacklist /boot"
19}
20expect {
21 timeout {puts "TESTING ERROR 2\n";exit}
22 "blacklist /dev/kmsg"
23}
24expect {
25 timeout {puts "TESTING ERROR 3\n";exit}
26 "blacklist /proc/kmsg"
27}
28sleep 1
29puts "\nall done\n"