diff options
author | netblue30 <netblue30@yahoo.com> | 2015-11-23 08:47:25 -0500 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2015-11-23 08:47:25 -0500 |
commit | 5035659fe3533972d79055d8ab828b0ea24d51ba (patch) | |
tree | ee9c8e4a808b967394539b4bb1c867cb24d10442 /test/features/2.5.exp | |
parent | feature testing (diff) | |
download | firejail-5035659fe3533972d79055d8ab828b0ea24d51ba.tar.gz firejail-5035659fe3533972d79055d8ab828b0ea24d51ba.tar.zst firejail-5035659fe3533972d79055d8ab828b0ea24d51ba.zip |
feature testing
Diffstat (limited to 'test/features/2.5.exp')
-rwxr-xr-x | test/features/2.5.exp | 104 |
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 | |||
6 | set timeout 10 | ||
7 | spawn $env(SHELL) | ||
8 | match_max 100000 | ||
9 | |||
10 | # | ||
11 | # N | ||
12 | # | ||
13 | send -- "firejail --noprofile --interface=eth0.5\r" | ||
14 | expect { | ||
15 | timeout {puts "TESTING ERROR 0\n";exit} | ||
16 | "Child process initialized" | ||
17 | } | ||
18 | sleep 1 | ||
19 | |||
20 | send -- "/sbin/ifconfig\r" | ||
21 | expect { | ||
22 | timeout {puts "TESTING ERROR 1.4\n";exit} | ||
23 | "eth0.5" | ||
24 | } | ||
25 | expect { | ||
26 | timeout {puts "TESTING ERROR 1.5n";exit} | ||
27 | "Link" | ||
28 | } | ||
29 | expect { | ||
30 | timeout {puts "TESTING ERROR 1.6\n";exit} | ||
31 | "10.10.205.10" | ||
32 | } | ||
33 | expect { | ||
34 | timeout {puts "TESTING ERROR 1.7\n";exit} | ||
35 | "UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1" | ||
36 | } | ||
37 | after 100 | ||
38 | send -- "exit\r" | ||
39 | sleep 1 | ||
40 | |||
41 | # | ||
42 | # O | ||
43 | # | ||
44 | send -- "firejail --noprofile --overlay --interface=eth0.6\r" | ||
45 | expect { | ||
46 | timeout {puts "TESTING ERROR 2\n";exit} | ||
47 | "Child process initialized" | ||
48 | } | ||
49 | sleep 1 | ||
50 | |||
51 | send -- "/sbin/ifconfig\r" | ||
52 | expect { | ||
53 | timeout {puts "TESTING ERROR 3.4\n";exit} | ||
54 | "eth0.6" | ||
55 | } | ||
56 | expect { | ||
57 | timeout {puts "TESTING ERROR 3.5n";exit} | ||
58 | "Link" | ||
59 | } | ||
60 | expect { | ||
61 | timeout {puts "TESTING ERROR 3.6\n";exit} | ||
62 | "10.10.206.10" | ||
63 | } | ||
64 | expect { | ||
65 | timeout {puts "TESTING ERROR 3.7\n";exit} | ||
66 | "UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1" | ||
67 | } | ||
68 | after 100 | ||
69 | send -- "exit\r" | ||
70 | sleep 1 | ||
71 | |||
72 | # | ||
73 | # C | ||
74 | # | ||
75 | send -- "firejail --noprofile --chroot=/tmp/chroot --interface=eth0.7\r" | ||
76 | expect { | ||
77 | timeout {puts "TESTING ERROR 4\n";exit} | ||
78 | "Child process initialized" | ||
79 | } | ||
80 | sleep 1 | ||
81 | |||
82 | send -- "/sbin/ifconfig\r" | ||
83 | expect { | ||
84 | timeout {puts "TESTING ERROR 5.4\n";exit} | ||
85 | "eth0.7" | ||
86 | } | ||
87 | expect { | ||
88 | timeout {puts "TESTING ERROR 5.5n";exit} | ||
89 | "Link" | ||
90 | } | ||
91 | expect { | ||
92 | timeout {puts "TESTING ERROR 5.6\n";exit} | ||
93 | "10.10.207.10" | ||
94 | } | ||
95 | expect { | ||
96 | timeout {puts "TESTING ERROR 5.7\n";exit} | ||
97 | "UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1" | ||
98 | } | ||
99 | after 100 | ||
100 | send -- "exit\r" | ||
101 | sleep 1 | ||
102 | |||
103 | |||
104 | puts "\nall done\n" | ||