diff options
author | netblue30 <netblue30@yahoo.com> | 2016-11-09 19:17:06 -0500 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2016-11-09 19:17:06 -0500 |
commit | 35004af7d8f6ff19908fb89e25e532113afa26f4 (patch) | |
tree | 991c7c279e0629e3de36a1d9453ab2513a38be1d /test/network/firemon-arp.exp | |
parent | bugfix: crashing vlc when pressing Ctrl-O (diff) | |
download | firejail-35004af7d8f6ff19908fb89e25e532113afa26f4.tar.gz firejail-35004af7d8f6ff19908fb89e25e532113afa26f4.tar.zst firejail-35004af7d8f6ff19908fb89e25e532113afa26f4.zip |
testing
Diffstat (limited to 'test/network/firemon-arp.exp')
-rwxr-xr-x | test/network/firemon-arp.exp | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/test/network/firemon-arp.exp b/test/network/firemon-arp.exp new file mode 100755 index 000000000..0a543c3b4 --- /dev/null +++ b/test/network/firemon-arp.exp | |||
@@ -0,0 +1,50 @@ | |||
1 | #!/usr/bin/expect -f | ||
2 | |||
3 | set timeout 10 | ||
4 | spawn $env(SHELL) | ||
5 | match_max 100000 | ||
6 | |||
7 | send -- "ping -c 3 192.168.1.1\r" | ||
8 | expect { | ||
9 | timeout {puts "TESTING ERROR 0\n";exit} | ||
10 | "3 packets transmitted" | ||
11 | } | ||
12 | sleep 1 | ||
13 | |||
14 | send -- "firejail --name=test1\r" | ||
15 | expect { | ||
16 | timeout {puts "TESTING ERROR 1\n";exit} | ||
17 | "Child process initialized" | ||
18 | } | ||
19 | sleep 1 | ||
20 | |||
21 | spawn $env(SHELL) | ||
22 | send -- "firejail --name=test2\r" | ||
23 | expect { | ||
24 | timeout {puts "TESTING ERROR 2\n";exit} | ||
25 | "Child process initialized" | ||
26 | } | ||
27 | sleep 1 | ||
28 | |||
29 | spawn $env(SHELL) | ||
30 | send -- "firemon --arp\r" | ||
31 | expect { | ||
32 | timeout {puts "TESTING ERROR 3\n";exit} | ||
33 | "name=test1" | ||
34 | } | ||
35 | expect { | ||
36 | timeout {puts "TESTING ERROR 4\n";exit} | ||
37 | "192.168.1.1 dev eth0 lladdr" {puts "Debian testing\n";} | ||
38 | "192.168.1.1 dev enp0s3 lladdr" {puts "Centos 7 testing\n";} | ||
39 | } | ||
40 | expect { | ||
41 | timeout {puts "TESTING ERROR 5\n";exit} | ||
42 | "REACHABLE" | ||
43 | } | ||
44 | expect { | ||
45 | timeout {puts "TESTING ERROR 6\n";exit} | ||
46 | "name=test2" | ||
47 | } | ||
48 | after 100 | ||
49 | |||
50 | puts "\nall done\n"" | ||