aboutsummaryrefslogtreecommitdiffstats
path: root/test/utils/fs-print.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-04-23 08:53:07 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2016-04-23 08:53:07 -0400
commit2905b9f9ab5c5ed6f9210d1d843a8bcf41451854 (patch)
treed3bb968dbcb9f22856de345d0df5ecf2a44d594f /test/utils/fs-print.exp
parentquiterss profile (diff)
downloadfirejail-2905b9f9ab5c5ed6f9210d1d843a8bcf41451854.tar.gz
firejail-2905b9f9ab5c5ed6f9210d1d843a8bcf41451854.tar.zst
firejail-2905b9f9ab5c5ed6f9210d1d843a8bcf41451854.zip
make test-utils
Diffstat (limited to 'test/utils/fs-print.exp')
-rwxr-xr-xtest/utils/fs-print.exp32
1 files changed, 32 insertions, 0 deletions
diff --git a/test/utils/fs-print.exp b/test/utils/fs-print.exp
new file mode 100755
index 000000000..fa0eab95b
--- /dev/null
+++ b/test/utils/fs-print.exp
@@ -0,0 +1,32 @@
1#!/usr/bin/expect -f
2# This file is part of Firejail project
3# Copyright (C) 2014-2016 Firejail Authors
4# License GPL v2
5
6set timeout 10
7spawn $env(SHELL)
8match_max 100000
9
10send -- "firejail --name=test\r"
11expect {
12 timeout {puts "TESTING ERROR 0\n";exit}
13 "Child process initialized"
14}
15sleep 2
16
17spawn $env(SHELL)
18send -- "firejail --fs.print=test\r"
19expect {
20 timeout {puts "TESTING ERROR 1\n";exit}
21 "blacklist /boot"
22}
23expect {
24 timeout {puts "TESTING ERROR 2\n";exit}
25 "blacklist /dev/kmsg"
26}
27expect {
28 timeout {puts "TESTING ERROR 3\n";exit}
29 "blacklist /proc/kmsg"
30}
31sleep 1
32puts "\nall done\n"