diff options
Diffstat (limited to 'test/network/net_badip.exp')
-rwxr-xr-x | test/network/net_badip.exp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/network/net_badip.exp b/test/network/net_badip.exp new file mode 100755 index 000000000..d13a6144e --- /dev/null +++ b/test/network/net_badip.exp | |||
@@ -0,0 +1,19 @@ | |||
1 | #!/usr/bin/expect -f | ||
2 | # This file is part of Firejail project | ||
3 | # Copyright (C) 2014-2016 Firejail Authors | ||
4 | # License GPL v2 | ||
5 | |||
6 | set timeout 10 | ||
7 | spawn $env(SHELL) | ||
8 | match_max 100000 | ||
9 | |||
10 | # check eth0 | ||
11 | send -- "firejail --net=br0 --net=br1 --ip=10.100.10.47\r" | ||
12 | expect { | ||
13 | timeout {puts "TESTING ERROR 0.0\n";exit} | ||
14 | "the IP address is not" | ||
15 | } | ||
16 | after 100 | ||
17 | |||
18 | puts "\n" | ||
19 | |||