diff options
author | netblue30 <netblue30@yahoo.com> | 2016-06-13 12:04:35 -0400 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2016-06-13 12:04:35 -0400 |
commit | 3cc86927c990f85326d4b6f6b8b9d8ee9d8613e5 (patch) | |
tree | 10aa4fa9e2827a08df2441b1442f40aeba4a6855 /test/environment/dns.exp | |
parent | configure.ac fixes (diff) | |
download | firejail-3cc86927c990f85326d4b6f6b8b9d8ee9d8613e5.tar.gz firejail-3cc86927c990f85326d4b6f6b8b9d8ee9d8613e5.tar.zst firejail-3cc86927c990f85326d4b6f6b8b9d8ee9d8613e5.zip |
testing
Diffstat (limited to 'test/environment/dns.exp')
-rwxr-xr-x | test/environment/dns.exp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/test/environment/dns.exp b/test/environment/dns.exp new file mode 100755 index 000000000..6ffb124cf --- /dev/null +++ b/test/environment/dns.exp | |||
@@ -0,0 +1,30 @@ | |||
1 | #!/usr/bin/expect -f | ||
2 | |||
3 | set timeout 30 | ||
4 | spawn $env(SHELL) | ||
5 | match_max 100000 | ||
6 | |||
7 | # no chroot | ||
8 | send -- "firejail --trace --dns=208.67.222.222 wget -q debian.org\r" | ||
9 | expect { | ||
10 | timeout {puts "TESTING ERROR 1.1\n";exit} | ||
11 | "Child process initialized" | ||
12 | } | ||
13 | expect { | ||
14 | timeout {puts "TESTING ERROR 1.2\n";exit} | ||
15 | "connect" | ||
16 | } | ||
17 | expect { | ||
18 | timeout {puts "TESTING ERROR 1.2\n";exit} | ||
19 | "208.67.222.222" | ||
20 | } | ||
21 | expect { | ||
22 | timeout {puts "TESTING ERROR 1.2\n";exit} | ||
23 | "53" | ||
24 | } | ||
25 | |||
26 | after 100 | ||
27 | |||
28 | send -- "rm index.html\r" | ||
29 | after 100 | ||
30 | puts "\nall done\n" | ||