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/network/ip6.exp | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) (limited to 'test/network/ip6.exp') diff --git a/test/network/ip6.exp b/test/network/ip6.exp index f0fcebcf8..1db16c28a 100755 --- a/test/network/ip6.exp +++ b/test/network/ip6.exp @@ -43,6 +43,46 @@ expect { } send -- "exit\r" +sleep 2 + + +send -- "firejail --debug --profile=ip6.profile\r" +expect { + timeout {puts "TESTING ERROR 10\n";exit} + "Installing network filter" +} +expect { + timeout {puts "TESTING ERROR 11\n";exit} + "DROP" +} +expect { + timeout {puts "TESTING ERROR 12\n";exit} + "unable to initialize table 'filter'" {puts "\nTESTING SKIP 2: no IPv6 support\n"; exit} + "2001:db8:1f0a:3ec::2" +} +expect { + timeout {puts "TESTING ERROR 13\n";exit} + "Child process initialized" +} +sleep 2 + +send -- "/sbin/ifconfig\r" +expect { + timeout {puts "TESTING ERROR 14\n";exit} + "inet6" +} +expect { + timeout {puts "TESTING ERROR 15\n";exit} + "2001:db8:0:f101::1" +} +expect { + timeout {puts "TESTING ERROR 16\n";exit} + "Scope:Global" { puts "Debian\n"} + "scopeid 0x0" { puts "Arch\n"} +} + +send -- "exit\r" + after 100 puts "\nall done\n" -- cgit v1.2.3-54-g00ecf