diff options
Diffstat (limited to 'test/chromium-x11.exp')
-rwxr-xr-x | test/chromium-x11.exp | 82 |
1 files changed, 0 insertions, 82 deletions
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 @@ | |||
1 | #!/usr/bin/expect -f | ||
2 | |||
3 | set timeout 10 | ||
4 | spawn $env(SHELL) | ||
5 | match_max 100000 | ||
6 | |||
7 | send -- "firejail --name=test --x11 --net=br0 chromium www.gentoo.org\r" | ||
8 | sleep 10 | ||
9 | |||
10 | spawn $env(SHELL) | ||
11 | send -- "firejail --list\r" | ||
12 | expect { | ||
13 | timeout {puts "TESTING ERROR 3\n";exit} | ||
14 | ":firejail" | ||
15 | } | ||
16 | expect { | ||
17 | timeout {puts "TESTING ERROR 3.1\n";exit} | ||
18 | "chromium" | ||
19 | } | ||
20 | sleep 1 | ||
21 | |||
22 | # grsecurity exit | ||
23 | send -- "file /proc/sys/kernel/grsecurity\r" | ||
24 | expect { | ||
25 | timeout {puts "TESTING ERROR - grsecurity detection\n";exit} | ||
26 | "grsecurity: directory" {puts "grsecurity present, exiting...\n";exit} | ||
27 | "cannot open" {puts "grsecurity not present\n"} | ||
28 | } | ||
29 | send -- "firejail --name=blablabla\r" | ||
30 | expect { | ||
31 | timeout {puts "TESTING ERROR 4\n";exit} | ||
32 | "Child process initialized" | ||
33 | } | ||
34 | sleep 2 | ||
35 | |||
36 | spawn $env(SHELL) | ||
37 | send -- "firemon --seccomp\r" | ||
38 | expect { | ||
39 | timeout {puts "TESTING ERROR 5\n";exit} | ||
40 | ":firejail" | ||
41 | } | ||
42 | expect { | ||
43 | timeout {puts "TESTING ERROR 5.0\n";exit} | ||
44 | "chromium" | ||
45 | } | ||
46 | expect { | ||
47 | timeout {puts "TESTING ERROR 5.1\n";exit} | ||
48 | "Seccomp: 0" | ||
49 | } | ||
50 | expect { | ||
51 | timeout {puts "TESTING ERROR 5.1\n";exit} | ||
52 | "name=blablabla" | ||
53 | } | ||
54 | sleep 1 | ||
55 | send -- "firemon --caps\r" | ||
56 | expect { | ||
57 | timeout {puts "TESTING ERROR 6\n";exit} | ||
58 | ":firejail" | ||
59 | } | ||
60 | expect { | ||
61 | timeout {puts "TESTING ERROR 6.0\n";exit} | ||
62 | "chromium" | ||
63 | } | ||
64 | expect { | ||
65 | timeout {puts "TESTING ERROR 6.1\n";exit} | ||
66 | "CapBnd:" | ||
67 | } | ||
68 | expect { | ||
69 | timeout {puts "TESTING ERROR 6.2\n";exit} | ||
70 | "fffffffff" | ||
71 | } | ||
72 | expect { | ||
73 | timeout {puts "TESTING ERROR 6.3\n";exit} | ||
74 | "name=blablabla" | ||
75 | } | ||
76 | sleep 1 | ||
77 | send -- "firejail --shutdown=test\r" | ||
78 | sleep 3 | ||
79 | |||
80 | |||
81 | puts "\nall done\n" | ||
82 | |||