aboutsummaryrefslogtreecommitdiffstats
path: root/test/features/1.5.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2015-11-22 13:15:13 -0500
committerLibravatar netblue30 <netblue30@yahoo.com>2015-11-22 13:15:13 -0500
commita8d758ba9e7314de9208e4b7d4a5307d1b4fefd0 (patch)
tree4002cad80b79157ef2c300ca8f12625a5b0b8b17 /test/features/1.5.exp
parentfixes (diff)
downloadfirejail-a8d758ba9e7314de9208e4b7d4a5307d1b4fefd0.tar.gz
firejail-a8d758ba9e7314de9208e4b7d4a5307d1b4fefd0.tar.zst
firejail-a8d758ba9e7314de9208e4b7d4a5307d1b4fefd0.zip
feature test
Diffstat (limited to 'test/features/1.5.exp')
-rwxr-xr-xtest/features/1.5.exp69
1 files changed, 69 insertions, 0 deletions
diff --git a/test/features/1.5.exp b/test/features/1.5.exp
new file mode 100755
index 000000000..d722c5811
--- /dev/null
+++ b/test/features/1.5.exp
@@ -0,0 +1,69 @@
1#!/usr/bin/expect -f
2#
3# PID namespace
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 -- "ps aux | wc -l \r"
21expect {
22 timeout {puts "TESTING ERROR 1\n";exit}
23 "5"
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 -- "ps aux | wc -l \r"
41expect {
42 timeout {puts "TESTING ERROR 3\n";exit}
43 "5"
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 -- "ps aux | wc -l \r"
60expect {
61 timeout {puts "TESTING ERROR 4\n";exit}
62 "5"
63}
64after 100
65send -- "exit\r"
66sleep 1
67
68
69puts "\nall done\n"