diff options
Diffstat (limited to 'test/environment')
-rwxr-xr-x | test/environment/dns.exp | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/test/environment/dns.exp b/test/environment/dns.exp index 6ffb124cf..a6a7171eb 100755 --- a/test/environment/dns.exp +++ b/test/environment/dns.exp | |||
@@ -22,9 +22,33 @@ expect { | |||
22 | timeout {puts "TESTING ERROR 1.2\n";exit} | 22 | timeout {puts "TESTING ERROR 1.2\n";exit} |
23 | "53" | 23 | "53" |
24 | } | 24 | } |
25 | |||
26 | after 100 | 25 | after 100 |
27 | 26 | ||
28 | send -- "rm index.html\r" | 27 | send -- "rm index.html\r" |
29 | after 100 | 28 | after 100 |
29 | send -- "exit\r" | ||
30 | sleep 1 | ||
31 | |||
32 | send -- "firejail --dns=8.8.4.4 --dns=8.8.8.8 --dns=4.2.2.1\r" | ||
33 | expect { | ||
34 | timeout {puts "TESTING ERROR 2.1\n";exit} | ||
35 | "Child process initialized" | ||
36 | } | ||
37 | sleep 1 | ||
38 | |||
39 | send -- "cat /etc/resolv.conf\r" | ||
40 | expect { | ||
41 | timeout {puts "TESTING ERROR 2.2\n";exit} | ||
42 | "nameserver 8.8.4.4" | ||
43 | } | ||
44 | expect { | ||
45 | timeout {puts "TESTING ERROR 2.3\n";exit} | ||
46 | "nameserver 8.8.8.8" | ||
47 | } | ||
48 | expect { | ||
49 | timeout {puts "TESTING ERROR 2.4\n";exit} | ||
50 | "nameserver 4.2.2.1" | ||
51 | } | ||
52 | after 100 | ||
53 | |||
30 | puts "\nall done\n" | 54 | puts "\nall done\n" |