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