aboutsummaryrefslogtreecommitdiffstats
path: root/test/fs/option_blacklist.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-05-05 10:22:18 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2016-05-05 10:22:18 -0400
commit37a5a3545ef6d8d03dad8bbd888f53e13274c9e5 (patch)
tree5d56a4b0a0933963d97eb0a88dd00fec9ea58bf2 /test/fs/option_blacklist.exp
parentrename generic.profile as default.profile (diff)
downloadfirejail-37a5a3545ef6d8d03dad8bbd888f53e13274c9e5.tar.gz
firejail-37a5a3545ef6d8d03dad8bbd888f53e13274c9e5.tar.zst
firejail-37a5a3545ef6d8d03dad8bbd888f53e13274c9e5.zip
testing
Diffstat (limited to 'test/fs/option_blacklist.exp')
-rwxr-xr-xtest/fs/option_blacklist.exp38
1 files changed, 38 insertions, 0 deletions
diff --git a/test/fs/option_blacklist.exp b/test/fs/option_blacklist.exp
new file mode 100755
index 000000000..38fd19237
--- /dev/null
+++ b/test/fs/option_blacklist.exp
@@ -0,0 +1,38 @@
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=/var\r"
11expect {
12 timeout {puts "TESTING ERROR 0\n";exit}
13 "Child process initialized"
14}
15sleep 1
16
17send -- "ls -l /var;echo done\r"
18expect {
19 timeout {puts "TESTING ERROR 1\n";exit}
20 "Permission denied"
21}
22expect {
23 timeout {puts "TESTING ERROR 2\n";exit}
24 "done"
25}
26send -- "cd /var;echo done\r"
27expect {
28 timeout {puts "TESTING ERROR 3\n";exit}
29 "Permission denied"
30}
31expect {
32 timeout {puts "TESTING ERROR 4\n";exit}
33 "done"
34}
35sleep 1
36
37puts "\n"
38