aboutsummaryrefslogtreecommitdiffstats
path: root/test/features/3.4.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2015-11-24 11:47:38 -0500
committerLibravatar netblue30 <netblue30@yahoo.com>2015-11-24 11:47:38 -0500
commit0df2fd2efce584ff9430cb2e523136b75df92c20 (patch)
tree5e7e8fadd1be89f31c299a77d7cbf0f63ebc755d /test/features/3.4.exp
parentfeature testing (diff)
downloadfirejail-0df2fd2efce584ff9430cb2e523136b75df92c20.tar.gz
firejail-0df2fd2efce584ff9430cb2e523136b75df92c20.tar.zst
firejail-0df2fd2efce584ff9430cb2e523136b75df92c20.zip
feature testing
Diffstat (limited to 'test/features/3.4.exp')
-rwxr-xr-xtest/features/3.4.exp69
1 files changed, 69 insertions, 0 deletions
diff --git a/test/features/3.4.exp b/test/features/3.4.exp
new file mode 100755
index 000000000..bc6e10733
--- /dev/null
+++ b/test/features/3.4.exp
@@ -0,0 +1,69 @@
1#!/usr/bin/expect -f
2#
3# whitelist
4#
5
6set timeout 10
7spawn $env(SHELL)
8match_max 100000
9
10#
11# N
12#
13send -- "firejail --noprofile --whitelist=/home/netblue/.config\r"
14expect {
15 timeout {puts "TESTING ERROR 0\n";exit}
16 "Child process initialized"
17}
18sleep 1
19
20send -- "ls -al ~/. | wc -l\r"
21expect {
22 timeout {puts "TESTING ERROR 1\n";exit}
23 "6"
24}
25after 100
26send -- "exit\r"
27sleep 1
28
29
30#
31# O
32#
33send -- "firejail --noprofile --overlay --whitelist=/home/netblue/.config\r"
34expect {
35 timeout {puts "TESTING ERROR 2\n";exit}
36 "Child process initialized"
37}
38sleep 1
39
40send -- "ls -al ~/. | wc -l\r"
41expect {
42 timeout {puts "TESTING ERROR 1\n";exit}
43 "6"
44}
45after 100
46send -- "exit\r"
47sleep 1
48
49#
50# C
51#
52send -- "firejail --noprofile --chroot=/tmp/chroot --whitelist=/home/netblue/.config\r"
53expect {
54 timeout {puts "TESTING ERROR 4\n";exit}
55 "Child process initialized"
56}
57sleep 1
58
59send -- "ls -al ~/. | wc -l\r"
60expect {
61 timeout {puts "TESTING ERROR 1\n";exit}
62 "6"
63}
64after 100
65send -- "exit\r"
66sleep 1
67
68
69puts "\nall done\n"