From 7e1c057aeda3b598838cb66b9e827fc087f70c54 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Sat, 23 Apr 2016 16:16:51 -0400 Subject: make testing --- test/chromium-x11.exp | 82 --------------------------------------------------- 1 file changed, 82 deletions(-) delete mode 100755 test/chromium-x11.exp (limited to 'test/chromium-x11.exp') diff --git a/test/chromium-x11.exp b/test/chromium-x11.exp deleted file mode 100755 index bcac3233c..000000000 --- a/test/chromium-x11.exp +++ /dev/null @@ -1,82 +0,0 @@ -#!/usr/bin/expect -f - -set timeout 10 -spawn $env(SHELL) -match_max 100000 - -send -- "firejail --name=test --x11 --net=br0 chromium www.gentoo.org\r" -sleep 10 - -spawn $env(SHELL) -send -- "firejail --list\r" -expect { - timeout {puts "TESTING ERROR 3\n";exit} - ":firejail" -} -expect { - timeout {puts "TESTING ERROR 3.1\n";exit} - "chromium" -} -sleep 1 - -# grsecurity exit -send -- "file /proc/sys/kernel/grsecurity\r" -expect { - timeout {puts "TESTING ERROR - grsecurity detection\n";exit} - "grsecurity: directory" {puts "grsecurity present, exiting...\n";exit} - "cannot open" {puts "grsecurity not present\n"} -} -send -- "firejail --name=blablabla\r" -expect { - timeout {puts "TESTING ERROR 4\n";exit} - "Child process initialized" -} -sleep 2 - -spawn $env(SHELL) -send -- "firemon --seccomp\r" -expect { - timeout {puts "TESTING ERROR 5\n";exit} - ":firejail" -} -expect { - timeout {puts "TESTING ERROR 5.0\n";exit} - "chromium" -} -expect { - timeout {puts "TESTING ERROR 5.1\n";exit} - "Seccomp: 0" -} -expect { - timeout {puts "TESTING ERROR 5.1\n";exit} - "name=blablabla" -} -sleep 1 -send -- "firemon --caps\r" -expect { - timeout {puts "TESTING ERROR 6\n";exit} - ":firejail" -} -expect { - timeout {puts "TESTING ERROR 6.0\n";exit} - "chromium" -} -expect { - timeout {puts "TESTING ERROR 6.1\n";exit} - "CapBnd:" -} -expect { - timeout {puts "TESTING ERROR 6.2\n";exit} - "fffffffff" -} -expect { - timeout {puts "TESTING ERROR 6.3\n";exit} - "name=blablabla" -} -sleep 1 -send -- "firejail --shutdown=test\r" -sleep 3 - - -puts "\nall done\n" - -- cgit v1.2.3-70-g09d2