diff options
author | 2023-03-02 10:34:03 -0500 | |
---|---|---|
committer | 2023-03-02 10:34:03 -0500 | |
commit | 336ecb5d651f22e5a3722ead843181a86dcc066d (patch) | |
tree | e733078e8b3ae1c6d0d7e236911c0f12ae556baa /test/network/net_arp.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_arp.exp')
-rwxr-xr-x | test/network/net_arp.exp | 74 |
1 files changed, 0 insertions, 74 deletions
diff --git a/test/network/net_arp.exp b/test/network/net_arp.exp deleted file mode 100755 index f3e1f6e25..000000000 --- a/test/network/net_arp.exp +++ /dev/null | |||
@@ -1,74 +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 | set timeout 10 | ||
7 | spawn $env(SHELL) | ||
8 | match_max 100000 | ||
9 | |||
10 | send -- "firejail --net=br0 sleep 20 &\r" | ||
11 | expect { | ||
12 | timeout {puts "TESTING ERROR 0\n";exit} | ||
13 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" | ||
14 | } | ||
15 | send -- "firejail --net=br0 sleep 20 &\r" | ||
16 | expect { | ||
17 | timeout {puts "TESTING ERROR 1\n";exit} | ||
18 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" | ||
19 | } | ||
20 | send -- "firejail --net=br0 sleep 20 &\r" | ||
21 | expect { | ||
22 | timeout {puts "TESTING ERROR 2\n";exit} | ||
23 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" | ||
24 | } | ||
25 | send -- "firejail --net=br0 sleep 20 &\r" | ||
26 | expect { | ||
27 | timeout {puts "TESTING ERROR 3\n";exit} | ||
28 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" | ||
29 | } | ||
30 | send -- "firejail --net=br0 sleep 20 &\r" | ||
31 | expect { | ||
32 | timeout {puts "TESTING ERROR 4\n";exit} | ||
33 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" | ||
34 | } | ||
35 | |||
36 | # will fail | ||
37 | send -- "firejail --net=br0 sleep 20 &\r" | ||
38 | expect { | ||
39 | timeout {puts "TESTING ERROR 5n";exit} | ||
40 | "cannot assign an IP address" | ||
41 | } | ||
42 | |||
43 | send -- "firejail --net=br0 sleep 20 &\r" | ||
44 | expect { | ||
45 | timeout {puts "TESTING ERROR 6\n";exit} | ||
46 | "cannot assign an IP address" | ||
47 | } | ||
48 | |||
49 | # check firejail --list | ||
50 | send -- "firejail --list\r" | ||
51 | expect { | ||
52 | timeout {puts "TESTING ERROR 7.1\n";exit} | ||
53 | "sleep 20" | ||
54 | } | ||
55 | expect { | ||
56 | timeout {puts "TESTING ERROR 7.2\n";exit} | ||
57 | "sleep 20" | ||
58 | } | ||
59 | expect { | ||
60 | timeout {puts "TESTING ERROR 7.3\n";exit} | ||
61 | "sleep 20" | ||
62 | } | ||
63 | expect { | ||
64 | timeout {puts "TESTING ERROR 7.4\n";exit} | ||
65 | "sleep 20" | ||
66 | } | ||
67 | expect { | ||
68 | timeout {puts "TESTING ERROR 7.5\n";exit} | ||
69 | "sleep 20" | ||
70 | } | ||
71 | |||
72 | # wait for sandboxes to be shutdown | ||
73 | sleep 30 | ||
74 | puts "\n" | ||