From e7486b39795847043cd16c55a1c8142770c77de8 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Tue, 2 Feb 2016 08:44:40 -0500 Subject: 0.9.38 testing --- test/features/3.4.exp | 143 +++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 136 insertions(+), 7 deletions(-) (limited to 'test/features/3.4.exp') diff --git a/test/features/3.4.exp b/test/features/3.4.exp index f81dc6e0a..996312334 100755 --- a/test/features/3.4.exp +++ b/test/features/3.4.exp @@ -1,6 +1,6 @@ #!/usr/bin/expect -f # -# whitelist +# whitelist home # set timeout 10 @@ -19,11 +19,54 @@ expect { } sleep 1 -send -- "ls -al ~/. | wc -l\r" +send -- "ls -al | wc -l\r" expect { - timeout {puts "TESTING ERROR 1\n";exit} + timeout {puts "TESTING ERROR 1.1\n";exit} "6" } + +send -- "ls -al .bashrc\r" +expect { + timeout {puts "TESTING ERROR 1.2\n";exit} + "netblue" +} +expect { + timeout {puts "TESTING ERROR 1.3\n";exit} + "netblue" +} +expect { + timeout {puts "TESTING ERROR 1.4\n";exit} + ".bashrc" +} + +send -- "ls -al .Xauthority\r" +expect { + timeout {puts "TESTING ERROR 1.5\n";exit} + "netblue" +} +expect { + timeout {puts "TESTING ERROR 1.6\n";exit} + "netblue" +} +expect { + timeout {puts "TESTING ERROR 1.7\n";exit} + ".Xauthority" +} + +send -- "ls -al | grep config\r" +expect { + timeout {puts "TESTING ERROR 1.8\n";exit} + "netblue" +} +expect { + timeout {puts "TESTING ERROR 1.9\n";exit} + "netblue" +} +expect { + timeout {puts "TESTING ERROR 1.10\n";exit} + ".config" +} + after 100 send -- "exit\r" sleep 1 @@ -40,11 +83,54 @@ if { $overlay == "overlay" } { } sleep 1 - send -- "ls -al ~/. | wc -l\r" + send -- "ls -al | wc -l\r" expect { - timeout {puts "TESTING ERROR 1\n";exit} + timeout {puts "TESTING ERROR 3.1\n";exit} "6" } + + send -- "ls -al .bashrc\r" + expect { + timeout {puts "TESTING ERROR 3.2\n";exit} + "netblue" + } + expect { + timeout {puts "TESTING ERROR 3.3\n";exit} + "netblue" + } + expect { + timeout {puts "TESTING ERROR 3.4\n";exit} + ".bashrc" + } + + send -- "ls -al .Xauthority\r" + expect { + timeout {puts "TESTING ERROR 3.5\n";exit} + "netblue" + } + expect { + timeout {puts "TESTING ERROR 3.6\n";exit} + "netblue" + } + expect { + timeout {puts "TESTING ERROR 3.7\n";exit} + ".Xauthority" + } + + send -- "ls -al | grep config\r" + expect { + timeout {puts "TESTING ERROR 3.8\n";exit} + "netblue" + } + expect { + timeout {puts "TESTING ERROR 3.9\n";exit} + "netblue" + } + expect { + timeout {puts "TESTING ERROR 3.10\n";exit} + ".config" + } + after 100 send -- "exit\r" sleep 1 @@ -61,11 +147,54 @@ if { $chroot == "chroot" } { } sleep 1 - send -- "ls -al ~/. | wc -l\r" + send -- "ls -al | wc -l\r" expect { - timeout {puts "TESTING ERROR 1\n";exit} + timeout {puts "TESTING ERROR 5.1\n";exit} "6" } + + send -- "ls -al .bashrc\r" + expect { + timeout {puts "TESTING ERROR 5.2\n";exit} + "netblue" + } + expect { + timeout {puts "TESTING ERROR 5.3\n";exit} + "netblue" + } + expect { + timeout {puts "TESTING ERROR 5.4\n";exit} + ".bashrc" + } + + send -- "ls -al .Xauthority\r" + expect { + timeout {puts "TESTING ERROR 5.5\n";exit} + "netblue" + } + expect { + timeout {puts "TESTING ERROR 5.6\n";exit} + "netblue" + } + expect { + timeout {puts "TESTING ERROR 5.7\n";exit} + ".Xauthority" + } + + send -- "ls -al | grep config\r" + expect { + timeout {puts "TESTING ERROR 5.8\n";exit} + "netblue" + } + expect { + timeout {puts "TESTING ERROR 5.9\n";exit} + "netblue" + } + expect { + timeout {puts "TESTING ERROR 5.10\n";exit} + ".config" + } + after 100 send -- "exit\r" sleep 1 -- cgit v1.2.3-70-g09d2