aboutsummaryrefslogtreecommitdiffstats
path: root/test/features/1.2.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2015-12-23 12:38:13 -0500
committerLibravatar netblue30 <netblue30@yahoo.com>2015-12-23 12:38:13 -0500
commit686bc51e38b0718651e82818871b0bf1451c8b21 (patch)
tree521f5fc2123c4782493fc86b46cc41533acb85db /test/features/1.2.exp
parent0.9.36 testing (diff)
downloadfirejail-686bc51e38b0718651e82818871b0bf1451c8b21.tar.gz
firejail-686bc51e38b0718651e82818871b0bf1451c8b21.tar.zst
firejail-686bc51e38b0718651e82818871b0bf1451c8b21.zip
0.9.36 testing
Diffstat (limited to 'test/features/1.2.exp')
-rwxr-xr-xtest/features/1.2.exp79
1 files changed, 41 insertions, 38 deletions
diff --git a/test/features/1.2.exp b/test/features/1.2.exp
index 399e9948b..d487537e4 100755
--- a/test/features/1.2.exp
+++ b/test/features/1.2.exp
@@ -6,6 +6,7 @@
6set timeout 10 6set timeout 10
7spawn $env(SHELL) 7spawn $env(SHELL)
8match_max 100000 8match_max 100000
9set overlay [lindex $argv 0]
9 10
10# 11#
11# N 12# N
@@ -54,45 +55,47 @@ sleep 1
54# 55#
55# O 56# O
56# 57#
57send -- "firejail --noprofile --overlay\r" 58if { $overlay == "overlay" } {
58expect { 59 send -- "firejail --noprofile --overlay\r"
59 timeout {puts "TESTING ERROR 2\n";exit} 60 expect {
60 "Child process initialized" 61 timeout {puts "TESTING ERROR 2\n";exit}
61} 62 "Child process initialized"
62sleep 1 63 }
63 64 sleep 1
64send -- "cat /proc/mounts | grep proc\r" 65
65expect { 66 send -- "cat /proc/mounts | grep proc\r"
66 timeout {puts "TESTING ERROR 3.1\n";exit} 67 expect {
67 "proc /proc proc" 68 timeout {puts "TESTING ERROR 3.1\n";exit}
69 "proc /proc proc"
70 }
71 expect {
72 timeout {puts "TESTING ERROR 3.2\n";exit}
73 "proc /proc proc"
74 }
75 expect {
76 timeout {puts "TESTING ERROR 3.3\n";exit}
77 "proc /proc/sys proc"
78 }
79 expect {
80 timeout {puts "TESTING ERROR 3.4\n";exit}
81 "proc /proc/sysrq-trigger proc"
82 }
83 expect {
84 timeout {puts "TESTING ERROR 3.5\n";exit}
85 "proc /proc/sys/kernel/hotplug"
86 }
87 expect {
88 timeout {puts "TESTING ERROR 3.6\n";exit}
89 "proc /proc/irq proc"
90 }
91 expect {
92 timeout {puts "TESTING ERROR 3.7\n";exit}
93 "proc /proc/bus proc"
94 }
95 after 100
96 send -- "exit\r"
97 sleep 1
68} 98}
69expect {
70 timeout {puts "TESTING ERROR 3.2\n";exit}
71 "proc /proc proc"
72}
73expect {
74 timeout {puts "TESTING ERROR 3.3\n";exit}
75 "proc /proc/sys proc"
76}
77expect {
78 timeout {puts "TESTING ERROR 3.4\n";exit}
79 "proc /proc/sysrq-trigger proc"
80}
81expect {
82 timeout {puts "TESTING ERROR 3.5\n";exit}
83 "proc /proc/sys/kernel/hotplug"
84}
85expect {
86 timeout {puts "TESTING ERROR 3.6\n";exit}
87 "proc /proc/irq proc"
88}
89expect {
90 timeout {puts "TESTING ERROR 3.7\n";exit}
91 "proc /proc/bus proc"
92}
93after 100
94send -- "exit\r"
95sleep 1
96 99
97# 100#
98# C 101# C