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