diff options
author | netblue30 <netblue30@yahoo.com> | 2016-02-23 08:43:05 -0500 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2016-02-23 08:43:05 -0500 |
commit | 4e86686da02b39e650edbb80e2fc837d2ccd3a33 (patch) | |
tree | 64de359a6637aad926ad5a9b398365d99aab408f /test/chromium-x11.exp | |
parent | Merge pull request #315 from vn971/master (diff) | |
download | firejail-4e86686da02b39e650edbb80e2fc837d2ccd3a33.tar.gz firejail-4e86686da02b39e650edbb80e2fc837d2ccd3a33.tar.zst firejail-4e86686da02b39e650edbb80e2fc837d2ccd3a33.zip |
x11 work
Diffstat (limited to 'test/chromium-x11.exp')
-rwxr-xr-x | test/chromium-x11.exp | 75 |
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 | |||
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 | send -- "firejail --name=blablabla\r" | ||
23 | expect { | ||
24 | timeout {puts "TESTING ERROR 4\n";exit} | ||
25 | "Child process initialized" | ||
26 | } | ||
27 | sleep 2 | ||
28 | |||
29 | spawn $env(SHELL) | ||
30 | send -- "firemon --seccomp\r" | ||
31 | expect { | ||
32 | timeout {puts "TESTING ERROR 5\n";exit} | ||
33 | ":firejail" | ||
34 | } | ||
35 | expect { | ||
36 | timeout {puts "TESTING ERROR 5.0\n";exit} | ||
37 | "chromium" | ||
38 | } | ||
39 | expect { | ||
40 | timeout {puts "TESTING ERROR 5.1\n";exit} | ||
41 | "Seccomp: 0" | ||
42 | } | ||
43 | expect { | ||
44 | timeout {puts "TESTING ERROR 5.1\n";exit} | ||
45 | "name=blablabla" | ||
46 | } | ||
47 | sleep 1 | ||
48 | send -- "firemon --caps\r" | ||
49 | expect { | ||
50 | timeout {puts "TESTING ERROR 6\n";exit} | ||
51 | ":firejail" | ||
52 | } | ||
53 | expect { | ||
54 | timeout {puts "TESTING ERROR 6.0\n";exit} | ||
55 | "chromium" | ||
56 | } | ||
57 | expect { | ||
58 | timeout {puts "TESTING ERROR 6.1\n";exit} | ||
59 | "CapBnd:" | ||
60 | } | ||
61 | expect { | ||
62 | timeout {puts "TESTING ERROR 6.2\n";exit} | ||
63 | "fffffffff" | ||
64 | } | ||
65 | expect { | ||
66 | timeout {puts "TESTING ERROR 6.3\n";exit} | ||
67 | "name=blablabla" | ||
68 | } | ||
69 | sleep 1 | ||
70 | send -- "firejail --shutdown=test\r" | ||
71 | sleep 3 | ||
72 | |||
73 | |||
74 | puts "\nall done\n" | ||
75 | |||