aboutsummaryrefslogtreecommitdiffstats
path: root/test/chromium-x11.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-04-23 16:16:51 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2016-04-23 16:16:51 -0400
commit7e1c057aeda3b598838cb66b9e827fc087f70c54 (patch)
tree6d13b82ed69f1d3a5b5973072e2b5cc3ea3eca16 /test/chromium-x11.exp
parenthexchat profile (diff)
downloadfirejail-7e1c057aeda3b598838cb66b9e827fc087f70c54.tar.gz
firejail-7e1c057aeda3b598838cb66b9e827fc087f70c54.tar.zst
firejail-7e1c057aeda3b598838cb66b9e827fc087f70c54.zip
make testing
Diffstat (limited to 'test/chromium-x11.exp')
-rwxr-xr-xtest/chromium-x11.exp82
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
3set timeout 10
4spawn $env(SHELL)
5match_max 100000
6
7send -- "firejail --name=test --x11 --net=br0 chromium www.gentoo.org\r"
8sleep 10
9
10spawn $env(SHELL)
11send -- "firejail --list\r"
12expect {
13 timeout {puts "TESTING ERROR 3\n";exit}
14 ":firejail"
15}
16expect {
17 timeout {puts "TESTING ERROR 3.1\n";exit}
18 "chromium"
19}
20sleep 1
21
22# grsecurity exit
23send -- "file /proc/sys/kernel/grsecurity\r"
24expect {
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}
29send -- "firejail --name=blablabla\r"
30expect {
31 timeout {puts "TESTING ERROR 4\n";exit}
32 "Child process initialized"
33}
34sleep 2
35
36spawn $env(SHELL)
37send -- "firemon --seccomp\r"
38expect {
39 timeout {puts "TESTING ERROR 5\n";exit}
40 ":firejail"
41}
42expect {
43 timeout {puts "TESTING ERROR 5.0\n";exit}
44 "chromium"
45}
46expect {
47 timeout {puts "TESTING ERROR 5.1\n";exit}
48 "Seccomp: 0"
49}
50expect {
51 timeout {puts "TESTING ERROR 5.1\n";exit}
52 "name=blablabla"
53}
54sleep 1
55send -- "firemon --caps\r"
56expect {
57 timeout {puts "TESTING ERROR 6\n";exit}
58 ":firejail"
59}
60expect {
61 timeout {puts "TESTING ERROR 6.0\n";exit}
62 "chromium"
63}
64expect {
65 timeout {puts "TESTING ERROR 6.1\n";exit}
66 "CapBnd:"
67}
68expect {
69 timeout {puts "TESTING ERROR 6.2\n";exit}
70 "fffffffff"
71}
72expect {
73 timeout {puts "TESTING ERROR 6.3\n";exit}
74 "name=blablabla"
75}
76sleep 1
77send -- "firejail --shutdown=test\r"
78sleep 3
79
80
81puts "\nall done\n"
82