From 37a5a3545ef6d8d03dad8bbd888f53e13274c9e5 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Thu, 5 May 2016 10:22:18 -0400 Subject: testing --- test/pid.exp | 49 ------------------------------------------------- 1 file changed, 49 deletions(-) delete mode 100755 test/pid.exp (limited to 'test/pid.exp') diff --git a/test/pid.exp b/test/pid.exp deleted file mode 100755 index cdeb9d5fb..000000000 --- a/test/pid.exp +++ /dev/null @@ -1,49 +0,0 @@ -#!/usr/bin/expect -f - -set timeout 10 -spawn $env(SHELL) -match_max 100000 - -send -- "firejail\r" -expect { - timeout {puts "TESTING ERROR 0\n";exit} - "Child process initialized" -} -sleep 1 - -# test processes -send -- "bash\r" -sleep 1 -send -- "ps aux; pwd\r" -expect { - timeout {puts "TESTING ERROR 1\n";exit} - "/bin/bash" -} -expect { - timeout {puts "TESTING ERROR 2\n";exit} - "bash" -} -expect { - timeout {puts "TESTING ERROR 3\n";exit} - "ps aux" -} -expect { - timeout {puts "TESTING ERROR 4\n";exit} - "home" -} -sleep 1 - - -send -- "ps aux |wc -l; pwd\r" -expect { - timeout {puts "TESTING ERROR 5\n";exit} - "6" {puts "normal system\n"} - "5" {puts "grsecurity\n"} -} -expect { - timeout {puts "TESTING ERROR 6\n";exit} - "home" -} -sleep 1 - -puts "\nall done\n" -- cgit v1.2.3-70-g09d2