From d3b6581db7fcd0fb0897ada9910140f0e43f4ed1 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Tue, 29 Nov 2016 10:04:43 -0500 Subject: testing and cleanup --- test/environment/dns.exp | 27 +++++++++++++++++++++++++-- test/environment/dns.profile | 3 +++ 2 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 test/environment/dns.profile (limited to 'test/environment') diff --git a/test/environment/dns.exp b/test/environment/dns.exp index 40403aade..d00e9fb94 100755 --- a/test/environment/dns.exp +++ b/test/environment/dns.exp @@ -26,10 +26,33 @@ expect { } after 100 send -- "exit\r" -after 100 +sleep 1 + +send -- "firejail --profile=dns.profile\r" +expect { + timeout {puts "TESTING ERROR 12.1\n";exit} + "Child process initialized" +} +sleep 1 + +send -- "cat /etc/resolv.conf\r" +expect { + timeout {puts "TESTING ERROR 12.2\n";exit} + "nameserver 8.8.4.4" +} +expect { + timeout {puts "TESTING ERROR 12.3\n";exit} + "nameserver 8.8.8.8" +} +expect { + timeout {puts "TESTING ERROR 12.4\n";exit} + "nameserver 4.2.2.1" +} +after 100 +send -- "exit\r" +sleep 1 -# no chroot send -- "firejail --trace --dns=208.67.222.222 wget -q debian.org\r" expect { timeout {puts "TESTING ERROR 1.1\n";exit} diff --git a/test/environment/dns.profile b/test/environment/dns.profile new file mode 100644 index 000000000..d1b842c86 --- /dev/null +++ b/test/environment/dns.profile @@ -0,0 +1,3 @@ +dns 8.8.4.4 +dns 8.8.8.8 +dns 4.2.2.1 -- cgit v1.2.3-54-g00ecf