aboutsummaryrefslogtreecommitdiffstats
path: root/test/apps-x11/thunderbird.exp
diff options
context:
space:
mode:
authorLibravatar Reiner Herrmann <reiner@reiner-h.de>2017-03-25 12:44:45 +0100
committerLibravatar Reiner Herrmann <reiner@reiner-h.de>2017-03-25 12:44:45 +0100
commit118afb4479662881160b96b0cdfa2f07825ae910 (patch)
tree785d9e7b845df26e80f07b3e13efb274360df88e /test/apps-x11/thunderbird.exp
parenttesting (diff)
downloadfirejail-118afb4479662881160b96b0cdfa2f07825ae910.tar.gz
firejail-118afb4479662881160b96b0cdfa2f07825ae910.tar.zst
firejail-118afb4479662881160b96b0cdfa2f07825ae910.zip
Use thunderbird instead of icedove for testing
Thunderbird is back in Debian, and Icedove is gone. Tests will then also run in more distributions.
Diffstat (limited to 'test/apps-x11/thunderbird.exp')
-rwxr-xr-xtest/apps-x11/thunderbird.exp86
1 files changed, 86 insertions, 0 deletions
diff --git a/test/apps-x11/thunderbird.exp b/test/apps-x11/thunderbird.exp
new file mode 100755
index 000000000..060b5a760
--- /dev/null
+++ b/test/apps-x11/thunderbird.exp
@@ -0,0 +1,86 @@
1#!/usr/bin/expect -f
2# This file is part of Firejail project
3# Copyright (C) 2014-2017 Firejail Authors
4# License GPL v2
5
6set timeout 10
7spawn $env(SHELL)
8match_max 100000
9
10send -- "firejail --name=test --x11 thunderbird\r"
11sleep 10
12
13spawn $env(SHELL)
14send -- "firejail --list\r"
15expect {
16 timeout {puts "TESTING ERROR 3\n";exit}
17 ":firejail"
18}
19expect {
20 timeout {puts "TESTING ERROR 3.1\n";exit}
21 "thunderbird"
22}
23sleep 1
24
25# grsecurity exit
26send -- "file /proc/sys/kernel/grsecurity\r"
27expect {
28 timeout {puts "TESTING ERROR - grsecurity detection\n";exit}
29 "grsecurity: directory" {puts "grsecurity present, exiting...\n";exit}
30 "cannot open" {puts "grsecurity not present\n"}
31}
32
33send -- "firejail --name=blablabla\r"
34expect {
35 timeout {puts "TESTING ERROR 4\n";exit}
36 "Child process initialized"
37}
38sleep 2
39
40spawn $env(SHELL)
41send -- "firemon --seccomp\r"
42expect {
43 timeout {puts "TESTING ERROR 5\n";exit}
44 "need to be root" {puts "/proc mounted as hidepid, exiting...\n"; exit}
45 ":firejail"
46}
47expect {
48 timeout {puts "TESTING ERROR 5.0\n";exit}
49 "thunderbird"
50}
51expect {
52 timeout {puts "TESTING ERROR 5.1 (seccomp)\n";exit}
53 "Seccomp: 2"
54}
55expect {
56 timeout {puts "TESTING ERROR 5.1\n";exit}
57 "name=blablabla"
58}
59sleep 2
60send -- "firemon --caps\r"
61expect {
62 timeout {puts "TESTING ERROR 6\n";exit}
63 ":firejail"
64}
65expect {
66 timeout {puts "TESTING ERROR 6.0\n";exit}
67 "thunderbird"
68}
69expect {
70 timeout {puts "TESTING ERROR 6.1\n";exit}
71 "CapBnd"
72}
73expect {
74 timeout {puts "TESTING ERROR 6.2\n";exit}
75 "0000000000000000"
76}
77expect {
78 timeout {puts "TESTING ERROR 6.3\n";exit}
79 "name=blablabla"
80}
81sleep 1
82send -- "firejail --shutdown=test\r"
83sleep 3
84
85puts "\nall done\n"
86