aboutsummaryrefslogtreecommitdiffstats
path: root/test/fs_home_sanitize.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/fs_home_sanitize.exp')
-rwxr-xr-xtest/fs_home_sanitize.exp33
1 files changed, 33 insertions, 0 deletions
diff --git a/test/fs_home_sanitize.exp b/test/fs_home_sanitize.exp
new file mode 100755
index 000000000..300babd1c
--- /dev/null
+++ b/test/fs_home_sanitize.exp
@@ -0,0 +1,33 @@
1#!/usr/bin/expect -f
2
3set timeout 10
4spawn $env(SHELL)
5match_max 100000
6
7send -- "firejail\r"
8expect {
9 timeout {puts "TESTING ERROR 0\n";exit}
10 "Child process initialized"
11}
12sleep 1
13
14send -- "ls /home;pwd\r"
15expect {
16 timeout {puts "TESTING ERROR 1\n";exit}
17 "bingo"
18}
19expect {
20 timeout {puts "TESTING ERROR 2\n";exit}
21 "home"
22}
23sleep 1
24
25send -- "ls /home/bingo;pwd\r"
26expect {
27 timeout {puts "TESTING ERROR 3\n";exit}
28 "cannot open directory"
29}
30sleep 1
31
32puts "\n"
33