diff options
Diffstat (limited to 'test/profile_apps.exp')
-rwxr-xr-x | test/profile_apps.exp | 48 |
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 | |||
3 | set timeout 10 | ||
4 | spawn $env(SHELL) | ||
5 | match_max 100000 | ||
6 | |||
7 | # firefox | ||
8 | send -- "firejail --profile=/etc/firejail/firefox.profile\r" | ||
9 | expect { | ||
10 | timeout {puts "TESTING ERROR 0\n";exit} | ||
11 | "Child process initialized" | ||
12 | } | ||
13 | sleep 1 | ||
14 | send -- "exit\r" | ||
15 | sleep 1 | ||
16 | |||
17 | # iceweasel | ||
18 | send -- "firejail --profile=/etc/firejail/iceweasel.profile\r" | ||
19 | expect { | ||
20 | timeout {puts "TESTING ERROR 1\n";exit} | ||
21 | "Child process initialized" | ||
22 | } | ||
23 | sleep 1 | ||
24 | send -- "exit\r" | ||
25 | sleep 1 | ||
26 | |||
27 | # evince | ||
28 | send -- "firejail --profile=/etc/firejail/evince.profile\r" | ||
29 | expect { | ||
30 | timeout {puts "TESTING ERROR 2\n";exit} | ||
31 | "Child process initialized" | ||
32 | } | ||
33 | sleep 1 | ||
34 | send -- "exit\r" | ||
35 | sleep 1 | ||
36 | |||
37 | # midori | ||
38 | send -- "firejail --profile=/etc/firejail/midori.profile\r" | ||
39 | expect { | ||
40 | timeout {puts "TESTING ERROR 3\n";exit} | ||
41 | "Child process initialized" | ||
42 | } | ||
43 | sleep 1 | ||
44 | send -- "exit\r" | ||
45 | sleep 1 | ||
46 | |||
47 | |||
48 | puts "\n" | ||