From dda687ed2a748cb262b317e0c7fdf4a9c4ae2d31 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Wed, 23 Dec 2015 16:42:58 -0500 Subject: 0.9.36 testing --- test/features/2.3.exp | 174 +++++++++++++++++++++++++------------------------- 1 file changed, 88 insertions(+), 86 deletions(-) (limited to 'test/features/2.3.exp') diff --git a/test/features/2.3.exp b/test/features/2.3.exp index 9201696c2..097050935 100755 --- a/test/features/2.3.exp +++ b/test/features/2.3.exp @@ -196,93 +196,95 @@ if { $overlay == "overlay" } { # # C # -send -- "firejail --noprofile --net=eth0 --chroot=/tmp/chroot --dns=8.8.8.8 --dns=8.8.4.4\r" -expect { - timeout {puts "TESTING ERROR 4\n";exit} - "Child process initialized" -} -sleep 1 - -send -- "dig google.com\r" -expect { - timeout {puts "TESTING ERROR 5\n";exit} - "ANSWER SECTION" -} -expect { - timeout {puts "TESTING ERROR 5.1\n";exit} - "google.com" -} -expect { - timeout {puts "TESTING ERROR 5.3\n";exit} - "SERVER:" -} -after 100 - -send -- "/sbin/ifconfig\r" -expect { - timeout {puts "TESTING ERROR 5.4\n";exit} - "eth0" -} -expect { - timeout {puts "TESTING ERROR 5.5\n";exit} - "Link" -} -expect { - timeout {puts "TESTING ERROR 5.6\n";exit} - "192.168.1" -} -expect { - timeout {puts "TESTING ERROR 5.7\n";exit} - "UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1" -} -after 100 - -send -- "exit\r" -sleep 3 - -send -- "firejail --noprofile --net=eth0 --ip=192.168.1.244 --chroot=/tmp/chroot --dns=8.8.8.8 --dns=8.8.4.4\r" -expect { - timeout {puts "TESTING ERROR 4\n";exit} - "Child process initialized" -} -sleep 1 - -send -- "dig google.com\r" -expect { - timeout {puts "TESTING ERROR 5\n";exit} - "ANSWER SECTION" -} -expect { - timeout {puts "TESTING ERROR 5.1\n";exit} - "google.com" -} -expect { - timeout {puts "TESTING ERROR 5.3\n";exit} - "SERVER:" -} -after 100 - -send -- "/sbin/ifconfig\r" -expect { - timeout {puts "TESTING ERROR 5.4\n";exit} - "eth0" -} -expect { - timeout {puts "TESTING ERROR 5.5\n";exit} - "Link" -} -expect { - timeout {puts "TESTING ERROR 5.6\n";exit} - "192.168.1.244" -} -expect { - timeout {puts "TESTING ERROR 5.7\n";exit} - "UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1" +if { $chroot == "chroot" } { + send -- "firejail --noprofile --net=eth0 --chroot=/tmp/chroot --dns=8.8.8.8 --dns=8.8.4.4\r" + expect { + timeout {puts "TESTING ERROR 4\n";exit} + "Child process initialized" + } + sleep 1 + + send -- "dig google.com\r" + expect { + timeout {puts "TESTING ERROR 5\n";exit} + "ANSWER SECTION" + } + expect { + timeout {puts "TESTING ERROR 5.1\n";exit} + "google.com" + } + expect { + timeout {puts "TESTING ERROR 5.3\n";exit} + "SERVER:" + } + after 100 + + send -- "/sbin/ifconfig\r" + expect { + timeout {puts "TESTING ERROR 5.4\n";exit} + "eth0" + } + expect { + timeout {puts "TESTING ERROR 5.5\n";exit} + "Link" + } + expect { + timeout {puts "TESTING ERROR 5.6\n";exit} + "192.168.1" + } + expect { + timeout {puts "TESTING ERROR 5.7\n";exit} + "UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1" + } + after 100 + + send -- "exit\r" + sleep 3 + + send -- "firejail --noprofile --net=eth0 --ip=192.168.1.244 --chroot=/tmp/chroot --dns=8.8.8.8 --dns=8.8.4.4\r" + expect { + timeout {puts "TESTING ERROR 4\n";exit} + "Child process initialized" + } + sleep 1 + + send -- "dig google.com\r" + expect { + timeout {puts "TESTING ERROR 5\n";exit} + "ANSWER SECTION" + } + expect { + timeout {puts "TESTING ERROR 5.1\n";exit} + "google.com" + } + expect { + timeout {puts "TESTING ERROR 5.3\n";exit} + "SERVER:" + } + after 100 + + send -- "/sbin/ifconfig\r" + expect { + timeout {puts "TESTING ERROR 5.4\n";exit} + "eth0" + } + expect { + timeout {puts "TESTING ERROR 5.5\n";exit} + "Link" + } + expect { + timeout {puts "TESTING ERROR 5.6\n";exit} + "192.168.1.244" + } + expect { + timeout {puts "TESTING ERROR 5.7\n";exit} + "UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1" + } + after 100 + + send -- "exit\r" + sleep 1 } -after 100 - -send -- "exit\r" -sleep 1 puts "\nall done\n" -- cgit v1.2.3-54-g00ecf