aboutsummaryrefslogtreecommitdiffstats
path: root/test/network/dns-print.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@protonmail.com>2023-03-02 10:34:03 -0500
committerLibravatar netblue30 <netblue30@protonmail.com>2023-03-02 10:34:03 -0500
commit336ecb5d651f22e5a3722ead843181a86dcc066d (patch)
treee733078e8b3ae1c6d0d7e236911c0f12ae556baa /test/network/dns-print.exp
parentgajim: allow loading plugins (#5705) (diff)
downloadfirejail-336ecb5d651f22e5a3722ead843181a86dcc066d.tar.gz
firejail-336ecb5d651f22e5a3722ead843181a86dcc066d.tar.zst
firejail-336ecb5d651f22e5a3722ead843181a86dcc066d.zip
network testing; merges
Diffstat (limited to 'test/network/dns-print.exp')
-rwxr-xr-xtest/network/dns-print.exp12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/network/dns-print.exp b/test/network/dns-print.exp
index 769d5431c..7d3da8ace 100755
--- a/test/network/dns-print.exp
+++ b/test/network/dns-print.exp
@@ -7,17 +7,17 @@ set timeout 10
7spawn $env(SHELL) 7spawn $env(SHELL)
8match_max 100000 8match_max 100000
9 9
10send -- "firejail --name=test-dns --net=eth0 --dns=1.2.3.4 --dns=2.3.4.5 --dns=3.4.5.6\r" 10send -- "firejail --name=test --net=br0 --dns=1.2.3.4 --dns=2.3.4.5 --dns=3.4.5.6\r"
11expect { 11expect {
12 timeout {puts "TESTING ERROR 1\n";exit} 12 timeout {puts "TESTING ERROR 0\n";exit}
13 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" 13 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
14} 14}
15sleep 1 15sleep 1
16 16
17spawn $env(SHELL) 17spawn $env(SHELL)
18send -- "firejail --dns.print=test-dns\r" 18send -- "firejail --dns.print=test\r"
19expect { 19expect {
20 timeout {puts "TESTING ERROR 2\n";exit} 20 timeout {puts "TESTING ERROR 1\n";exit}
21 "nameserver 1.2.3.4" 21 "nameserver 1.2.3.4"
22} 22}
23expect { 23expect {
@@ -25,10 +25,10 @@ expect {
25 "nameserver 2.3.4.5" 25 "nameserver 2.3.4.5"
26} 26}
27expect { 27expect {
28 timeout {puts "TESTING ERROR 2\n";exit} 28 timeout {puts "TESTING ERROR 3\n";exit}
29 "nameserver 3.4.5.6" 29 "nameserver 3.4.5.6"
30} 30}
31 31
32after 100 32after 500
33 33
34puts "\nall done\n" 34puts "\nall done\n"