aboutsummaryrefslogtreecommitdiffstats
path: root/test/profile_apps.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/profile_apps.exp')
-rwxr-xr-xtest/profile_apps.exp48
1 files changed, 48 insertions, 0 deletions
diff --git a/test/profile_apps.exp b/test/profile_apps.exp
new file mode 100755
index 000000000..c57b31489
--- /dev/null
+++ b/test/profile_apps.exp
@@ -0,0 +1,48 @@
1#!/usr/bin/expect -f
2
3set timeout 10
4spawn $env(SHELL)
5match_max 100000
6
7# firefox
8send -- "firejail --profile=/etc/firejail/firefox.profile\r"
9expect {
10 timeout {puts "TESTING ERROR 0\n";exit}
11 "Child process initialized"
12}
13sleep 1
14send -- "exit\r"
15sleep 1
16
17# iceweasel
18send -- "firejail --profile=/etc/firejail/iceweasel.profile\r"
19expect {
20 timeout {puts "TESTING ERROR 1\n";exit}
21 "Child process initialized"
22}
23sleep 1
24send -- "exit\r"
25sleep 1
26
27# evince
28send -- "firejail --profile=/etc/firejail/evince.profile\r"
29expect {
30 timeout {puts "TESTING ERROR 2\n";exit}
31 "Child process initialized"
32}
33sleep 1
34send -- "exit\r"
35sleep 1
36
37# midori
38send -- "firejail --profile=/etc/firejail/midori.profile\r"
39expect {
40 timeout {puts "TESTING ERROR 3\n";exit}
41 "Child process initialized"
42}
43sleep 1
44send -- "exit\r"
45sleep 1
46
47
48puts "\n"