diff options
author | 2016-04-22 09:46:07 -0400 | |
---|---|---|
committer | 2016-04-22 09:46:07 -0400 | |
commit | 47be57441f2f49baddebaca884fc65199b234714 (patch) | |
tree | 67d975d9a2a58b1c9790caeafde9924dd20fb0e5 /test/firefox.exp | |
parent | cherrytree profile fixes (diff) | |
download | firejail-47be57441f2f49baddebaca884fc65199b234714.tar.gz firejail-47be57441f2f49baddebaca884fc65199b234714.tar.zst firejail-47be57441f2f49baddebaca884fc65199b234714.zip |
make test-apps
Diffstat (limited to 'test/firefox.exp')
-rwxr-xr-x | test/firefox.exp | 96 |
1 files changed, 0 insertions, 96 deletions
diff --git a/test/firefox.exp b/test/firefox.exp deleted file mode 100755 index 2585e4b5c..000000000 --- a/test/firefox.exp +++ /dev/null | |||
@@ -1,96 +0,0 @@ | |||
1 | #!/usr/bin/expect -f | ||
2 | |||
3 | set timeout 10 | ||
4 | spawn $env(SHELL) | ||
5 | match_max 100000 | ||
6 | |||
7 | send -- "firejail firefox -no-remote www.gentoo.org\r" | ||
8 | expect { | ||
9 | timeout {puts "TESTING ERROR 0\n";exit} | ||
10 | "Reading profile /etc/firejail/firefox.profile" | ||
11 | } | ||
12 | expect { | ||
13 | timeout {puts "TESTING ERROR 1\n";exit} | ||
14 | "Child process initialized" | ||
15 | } | ||
16 | sleep 10 | ||
17 | |||
18 | spawn $env(SHELL) | ||
19 | send -- "firejail --list\r" | ||
20 | expect { | ||
21 | timeout {puts "TESTING ERROR 3\n";exit} | ||
22 | ":firejail" | ||
23 | } | ||
24 | expect { | ||
25 | timeout {puts "TESTING ERROR 3.1\n";exit} | ||
26 | "firefox" {puts "firefox detected\n";} | ||
27 | "iceweasel" {puts "iceweasel detected\n";} | ||
28 | } | ||
29 | expect { | ||
30 | timeout {puts "TESTING ERROR 3.2\n";exit} | ||
31 | "no-remote" | ||
32 | } | ||
33 | sleep 1 | ||
34 | |||
35 | # grsecurity exit | ||
36 | send -- "file /proc/sys/kernel/grsecurity\r" | ||
37 | expect { | ||
38 | timeout {puts "TESTING ERROR - grsecurity detection\n";exit} | ||
39 | "grsecurity: directory" {puts "grsecurity present, exiting...\n";exit} | ||
40 | "cannot open" {puts "grsecurity not present\n"} | ||
41 | } | ||
42 | |||
43 | |||
44 | send -- "firejail --name=blablabla\r" | ||
45 | expect { | ||
46 | timeout {puts "TESTING ERROR 4\n";exit} | ||
47 | "Child process initialized" | ||
48 | } | ||
49 | sleep 2 | ||
50 | |||
51 | spawn $env(SHELL) | ||
52 | send -- "firemon --seccomp\r" | ||
53 | expect { | ||
54 | timeout {puts "TESTING ERROR 5\n";exit} | ||
55 | " firefox" {puts "firefox detected\n";} | ||
56 | " iceweasel" {puts "iceweasel detected\n";} | ||
57 | } | ||
58 | expect { | ||
59 | timeout {puts "TESTING ERROR 5.0\n";exit} | ||
60 | "no-remote" | ||
61 | } | ||
62 | expect { | ||
63 | timeout {puts "TESTING ERROR 5.1 (seccomp)\n";exit} | ||
64 | "Seccomp: 2" | ||
65 | } | ||
66 | expect { | ||
67 | timeout {puts "TESTING ERROR 5.1\n";exit} | ||
68 | "name=blablabla" | ||
69 | } | ||
70 | sleep 1 | ||
71 | send -- "firemon --caps\r" | ||
72 | expect { | ||
73 | timeout {puts "TESTING ERROR 6\n";exit} | ||
74 | " firefox" {puts "firefox detected\n";} | ||
75 | " iceweasel" {puts "iceweasel detected\n";} | ||
76 | } | ||
77 | expect { | ||
78 | timeout {puts "TESTING ERROR 6.0\n";exit} | ||
79 | "no-remote" | ||
80 | } | ||
81 | expect { | ||
82 | timeout {puts "TESTING ERROR 6.1\n";exit} | ||
83 | "CapBnd:" | ||
84 | } | ||
85 | expect { | ||
86 | timeout {puts "TESTING ERROR 6.2\n";exit} | ||
87 | "0000000000000000" | ||
88 | } | ||
89 | expect { | ||
90 | timeout {puts "TESTING ERROR 6.3\n";exit} | ||
91 | "name=blablabla" | ||
92 | } | ||
93 | sleep 1 | ||
94 | |||
95 | puts "\n" | ||
96 | |||