diff options
author | netblue30 <netblue30@protonmail.com> | 2023-03-02 10:34:03 -0500 |
---|---|---|
committer | netblue30 <netblue30@protonmail.com> | 2023-03-02 10:34:03 -0500 |
commit | 336ecb5d651f22e5a3722ead843181a86dcc066d (patch) | |
tree | e733078e8b3ae1c6d0d7e236911c0f12ae556baa /test/network/net_ip.exp | |
parent | gajim: allow loading plugins (#5705) (diff) | |
download | firejail-336ecb5d651f22e5a3722ead843181a86dcc066d.tar.gz firejail-336ecb5d651f22e5a3722ead843181a86dcc066d.tar.zst firejail-336ecb5d651f22e5a3722ead843181a86dcc066d.zip |
network testing; merges
Diffstat (limited to 'test/network/net_ip.exp')
-rwxr-xr-x | test/network/net_ip.exp | 36 |
1 files changed, 34 insertions, 2 deletions
diff --git a/test/network/net_ip.exp b/test/network/net_ip.exp index 304b71814..251b55362 100755 --- a/test/network/net_ip.exp +++ b/test/network/net_ip.exp | |||
@@ -94,8 +94,40 @@ expect { | |||
94 | } | 94 | } |
95 | after 500 | 95 | after 500 |
96 | 96 | ||
97 | send -- "firejail --noprofile --net=br0 --ip=none ip addr show\r" | ||
98 | expect { | ||
99 | timeout {puts "TESTING ERROR 17\n";exit} | ||
100 | "eth0" {puts "TESTING ERROR 18\n";exit} | ||
101 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" | ||
102 | } | ||
103 | expect { | ||
104 | timeout {puts "TESTING ERROR 19\n";exit} | ||
105 | "eth0" | ||
106 | } | ||
107 | expect { | ||
108 | timeout {puts "TESTING ERROR 20\n";exit} | ||
109 | "inet " {puts "TESTING ERROR 21\n";exit} | ||
110 | "inet6" | ||
111 | } | ||
112 | after 500 | ||
97 | 113 | ||
114 | send -- "firejail --net=br0 --mtu=1000 --noprofile ip link show\r" | ||
115 | expect { | ||
116 | timeout {puts "TESTING ERROR 22\n";exit} | ||
117 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" | ||
118 | } | ||
119 | expect { | ||
120 | timeout {puts "TESTING ERROR 23\n";exit} | ||
121 | "eth0" | ||
122 | } | ||
123 | expect { | ||
124 | timeout {puts "TESTING ERROR 24\n";exit} | ||
125 | "mtu 1000" | ||
126 | } | ||
127 | expect { | ||
128 | timeout {puts "TESTING ERROR 25\n";exit} | ||
129 | "state UP" | ||
130 | } | ||
98 | 131 | ||
99 | 132 | after 500 | |
100 | after 100 | ||
101 | puts "\nall done\n" | 133 | puts "\nall done\n" |