summaryrefslogtreecommitdiffstats
path: root/test/fs/option_blacklist_glob.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/fs/option_blacklist_glob.exp')
-rwxr-xr-xtest/fs/option_blacklist_glob.exp32
1 files changed, 32 insertions, 0 deletions
diff --git a/test/fs/option_blacklist_glob.exp b/test/fs/option_blacklist_glob.exp
new file mode 100755
index 000000000..01939736d
--- /dev/null
+++ b/test/fs/option_blacklist_glob.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 --blacklist=testdir1/*\r"
11expect {
12 timeout {puts "TESTING ERROR 0\n";exit}
13 "Child process initialized"
14}
15sleep 1
16send -- "cd testdir1\r"
17sleep 1
18
19send -- "cat .file\r"
20expect {
21 timeout {puts "TESTING ERROR 1\n";exit}
22 "Permission denied"
23}
24
25send -- "ls .directory\r"
26expect {
27 timeout {puts "TESTING ERROR 2\n";exit}
28 "Permission denied"
29}
30
31puts "\n"
32