aboutsummaryrefslogtreecommitdiffstats
path: root/test/features/2.5.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/features/2.5.exp')
-rwxr-xr-xtest/features/2.5.exp104
1 files changed, 104 insertions, 0 deletions
diff --git a/test/features/2.5.exp b/test/features/2.5.exp
new file mode 100755
index 000000000..4ba1f5a28
--- /dev/null
+++ b/test/features/2.5.exp
@@ -0,0 +1,104 @@
1#!/usr/bin/expect -f
2#
3# interface
4#
5
6set timeout 10
7spawn $env(SHELL)
8match_max 100000
9
10#
11# N
12#
13send -- "firejail --noprofile --interface=eth0.5\r"
14expect {
15 timeout {puts "TESTING ERROR 0\n";exit}
16 "Child process initialized"
17}
18sleep 1
19
20send -- "/sbin/ifconfig\r"
21expect {
22 timeout {puts "TESTING ERROR 1.4\n";exit}
23 "eth0.5"
24}
25expect {
26 timeout {puts "TESTING ERROR 1.5n";exit}
27 "Link"
28}
29expect {
30 timeout {puts "TESTING ERROR 1.6\n";exit}
31 "10.10.205.10"
32}
33expect {
34 timeout {puts "TESTING ERROR 1.7\n";exit}
35 "UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1"
36}
37after 100
38send -- "exit\r"
39sleep 1
40
41#
42# O
43#
44send -- "firejail --noprofile --overlay --interface=eth0.6\r"
45expect {
46 timeout {puts "TESTING ERROR 2\n";exit}
47 "Child process initialized"
48}
49sleep 1
50
51send -- "/sbin/ifconfig\r"
52expect {
53 timeout {puts "TESTING ERROR 3.4\n";exit}
54 "eth0.6"
55}
56expect {
57 timeout {puts "TESTING ERROR 3.5n";exit}
58 "Link"
59}
60expect {
61 timeout {puts "TESTING ERROR 3.6\n";exit}
62 "10.10.206.10"
63}
64expect {
65 timeout {puts "TESTING ERROR 3.7\n";exit}
66 "UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1"
67}
68after 100
69send -- "exit\r"
70sleep 1
71
72#
73# C
74#
75send -- "firejail --noprofile --chroot=/tmp/chroot --interface=eth0.7\r"
76expect {
77 timeout {puts "TESTING ERROR 4\n";exit}
78 "Child process initialized"
79}
80sleep 1
81
82send -- "/sbin/ifconfig\r"
83expect {
84 timeout {puts "TESTING ERROR 5.4\n";exit}
85 "eth0.7"
86}
87expect {
88 timeout {puts "TESTING ERROR 5.5n";exit}
89 "Link"
90}
91expect {
92 timeout {puts "TESTING ERROR 5.6\n";exit}
93 "10.10.207.10"
94}
95expect {
96 timeout {puts "TESTING ERROR 5.7\n";exit}
97 "UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1"
98}
99after 100
100send -- "exit\r"
101sleep 1
102
103
104puts "\nall done\n"