aboutsummaryrefslogtreecommitdiffstats
path: root/test/chromium-x11.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-02-23 08:43:05 -0500
committerLibravatar netblue30 <netblue30@yahoo.com>2016-02-23 08:43:05 -0500
commit4e86686da02b39e650edbb80e2fc837d2ccd3a33 (patch)
tree64de359a6637aad926ad5a9b398365d99aab408f /test/chromium-x11.exp
parentMerge pull request #315 from vn971/master (diff)
downloadfirejail-4e86686da02b39e650edbb80e2fc837d2ccd3a33.tar.gz
firejail-4e86686da02b39e650edbb80e2fc837d2ccd3a33.tar.zst
firejail-4e86686da02b39e650edbb80e2fc837d2ccd3a33.zip
x11 work
Diffstat (limited to 'test/chromium-x11.exp')
-rwxr-xr-xtest/chromium-x11.exp75
1 files changed, 75 insertions, 0 deletions
diff --git a/test/chromium-x11.exp b/test/chromium-x11.exp
new file mode 100755
index 000000000..0d8a5dfb3
--- /dev/null
+++ b/test/chromium-x11.exp
@@ -0,0 +1,75 @@
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
22send -- "firejail --name=blablabla\r"
23expect {
24 timeout {puts "TESTING ERROR 4\n";exit}
25 "Child process initialized"
26}
27sleep 2
28
29spawn $env(SHELL)
30send -- "firemon --seccomp\r"
31expect {
32 timeout {puts "TESTING ERROR 5\n";exit}
33 ":firejail"
34}
35expect {
36 timeout {puts "TESTING ERROR 5.0\n";exit}
37 "chromium"
38}
39expect {
40 timeout {puts "TESTING ERROR 5.1\n";exit}
41 "Seccomp: 0"
42}
43expect {
44 timeout {puts "TESTING ERROR 5.1\n";exit}
45 "name=blablabla"
46}
47sleep 1
48send -- "firemon --caps\r"
49expect {
50 timeout {puts "TESTING ERROR 6\n";exit}
51 ":firejail"
52}
53expect {
54 timeout {puts "TESTING ERROR 6.0\n";exit}
55 "chromium"
56}
57expect {
58 timeout {puts "TESTING ERROR 6.1\n";exit}
59 "CapBnd:"
60}
61expect {
62 timeout {puts "TESTING ERROR 6.2\n";exit}
63 "fffffffff"
64}
65expect {
66 timeout {puts "TESTING ERROR 6.3\n";exit}
67 "name=blablabla"
68}
69sleep 1
70send -- "firejail --shutdown=test\r"
71sleep 3
72
73
74puts "\nall done\n"
75