aboutsummaryrefslogtreecommitdiffstats
path: root/test/fs/noblacklist-blacklist-readonly.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/fs/noblacklist-blacklist-readonly.exp')
-rwxr-xr-xtest/fs/noblacklist-blacklist-readonly.exp35
1 files changed, 35 insertions, 0 deletions
diff --git a/test/fs/noblacklist-blacklist-readonly.exp b/test/fs/noblacklist-blacklist-readonly.exp
new file mode 100755
index 000000000..c31bd6948
--- /dev/null
+++ b/test/fs/noblacklist-blacklist-readonly.exp
@@ -0,0 +1,35 @@
1#!/usr/bin/expect -f
2# This file is part of Firejail project
3# Copyright (C) 2014-2019 Firejail Authors
4# License GPL v2
5
6set timeout 10
7spawn $env(SHELL)
8match_max 100000
9
10
11send -- "firejail --noprofile --noblacklist=~ --blacklist=~ --read-only=~\r"
12expect {
13 timeout {puts "TESTING ERROR 0\n";exit}
14 "Child process initialized"
15}
16sleep 1
17
18send -- "ls ~\r"
19expect {
20 timeout {puts "TESTING ERROR 1\n";exit}
21 "Downloads"
22}
23after 100
24
25send -- "echo World > ~/Hello\r"
26expect {
27 timeout {puts "TESTING ERROR 2\n";exit}
28 "Read-only file system"
29}
30after 100
31
32send -- "exit\r"
33sleep 1
34
35puts "\nall done\n"