diff options
Diffstat (limited to 'test')
-rwxr-xr-x | test/chromium.exp | 2 | ||||
-rwxr-xr-x | test/deluge.exp | 2 | ||||
-rwxr-xr-x | test/evince.exp | 8 | ||||
-rwxr-xr-x | test/fbreader.exp | 6 | ||||
-rwxr-xr-x | test/firefox.exp | 2 | ||||
-rwxr-xr-x | test/gnome-mplayer.exp | 2 | ||||
-rwxr-xr-x | test/google-chrome.exp | 2 | ||||
-rwxr-xr-x | test/hexchat.exp | 2 | ||||
-rwxr-xr-x | test/icedove.exp | 8 | ||||
-rwxr-xr-x | test/midori.exp | 2 | ||||
-rwxr-xr-x | test/opera.exp | 2 | ||||
-rwxr-xr-x | test/shell_csh.exp | 2 | ||||
-rwxr-xr-x | test/shell_dash.exp | 2 | ||||
-rwxr-xr-x | test/shell_zsh.exp | 2 | ||||
-rwxr-xr-x | test/test-apps.sh | 155 | ||||
-rwxr-xr-x | test/test.sh | 156 | ||||
-rwxr-xr-x | test/transmission-gtk.exp | 8 | ||||
-rwxr-xr-x | test/transmission-qt.exp | 8 | ||||
-rwxr-xr-x | test/vlc.exp | 6 | ||||
-rwxr-xr-x | test/weechat.exp | 2 | ||||
-rwxr-xr-x | test/wine.exp | 2 | ||||
-rwxr-xr-x | test/xchat.exp | 2 |
22 files changed, 192 insertions, 191 deletions
diff --git a/test/chromium.exp b/test/chromium.exp index 77325d070..9f4aa9ea4 100755 --- a/test/chromium.exp +++ b/test/chromium.exp | |||
@@ -4,7 +4,7 @@ set timeout 10 | |||
4 | spawn $env(SHELL) | 4 | spawn $env(SHELL) |
5 | match_max 100000 | 5 | match_max 100000 |
6 | 6 | ||
7 | send -- "firejail chromium www.gentoo.org\r" | 7 | send -- "firejail --tracelog chromium www.gentoo.org\r" |
8 | expect { | 8 | expect { |
9 | timeout {puts "TESTING ERROR 0\n";exit} | 9 | timeout {puts "TESTING ERROR 0\n";exit} |
10 | "Reading profile /etc/firejail/chromium.profile" | 10 | "Reading profile /etc/firejail/chromium.profile" |
diff --git a/test/deluge.exp b/test/deluge.exp index 49266813e..88982f189 100755 --- a/test/deluge.exp +++ b/test/deluge.exp | |||
@@ -4,7 +4,7 @@ set timeout 10 | |||
4 | spawn $env(SHELL) | 4 | spawn $env(SHELL) |
5 | match_max 100000 | 5 | match_max 100000 |
6 | 6 | ||
7 | send -- "firejail deluge\r" | 7 | send -- "firejail --tracelog deluge\r" |
8 | expect { | 8 | expect { |
9 | timeout {puts "TESTING ERROR 0\n";exit} | 9 | timeout {puts "TESTING ERROR 0\n";exit} |
10 | "Reading profile /etc/firejail/deluge.profile" | 10 | "Reading profile /etc/firejail/deluge.profile" |
diff --git a/test/evince.exp b/test/evince.exp index ba6ca1b6d..6c94dff9a 100755 --- a/test/evince.exp +++ b/test/evince.exp | |||
@@ -4,7 +4,7 @@ set timeout 10 | |||
4 | spawn $env(SHELL) | 4 | spawn $env(SHELL) |
5 | match_max 100000 | 5 | match_max 100000 |
6 | 6 | ||
7 | send -- "firejail evince\r" | 7 | send -- "firejail --tracelog evince\r" |
8 | expect { | 8 | expect { |
9 | timeout {puts "TESTING ERROR 0\n";exit} | 9 | timeout {puts "TESTING ERROR 0\n";exit} |
10 | "Reading profile /etc/firejail/evince.profile" | 10 | "Reading profile /etc/firejail/evince.profile" |
@@ -38,7 +38,7 @@ spawn $env(SHELL) | |||
38 | send -- "firemon --seccomp\r" | 38 | send -- "firemon --seccomp\r" |
39 | expect { | 39 | expect { |
40 | timeout {puts "TESTING ERROR 5\n";exit} | 40 | timeout {puts "TESTING ERROR 5\n";exit} |
41 | ":firejail evince" | 41 | ":firejail --tracelog evince" |
42 | } | 42 | } |
43 | expect { | 43 | expect { |
44 | timeout {puts "TESTING ERROR 5.1 (seccomp)\n";exit} | 44 | timeout {puts "TESTING ERROR 5.1 (seccomp)\n";exit} |
@@ -52,7 +52,7 @@ sleep 1 | |||
52 | send -- "firemon --caps\r" | 52 | send -- "firemon --caps\r" |
53 | expect { | 53 | expect { |
54 | timeout {puts "TESTING ERROR 6\n";exit} | 54 | timeout {puts "TESTING ERROR 6\n";exit} |
55 | ":firejail evince" | 55 | ":firejail --tracelog evince" |
56 | } | 56 | } |
57 | expect { | 57 | expect { |
58 | timeout {puts "TESTING ERROR 6.1\n";exit} | 58 | timeout {puts "TESTING ERROR 6.1\n";exit} |
@@ -68,5 +68,5 @@ expect { | |||
68 | } | 68 | } |
69 | sleep 1 | 69 | sleep 1 |
70 | 70 | ||
71 | puts "\n" | 71 | puts "\nall done\n" |
72 | 72 | ||
diff --git a/test/fbreader.exp b/test/fbreader.exp index a4df50932..97df8aca8 100755 --- a/test/fbreader.exp +++ b/test/fbreader.exp | |||
@@ -4,7 +4,7 @@ set timeout 10 | |||
4 | spawn $env(SHELL) | 4 | spawn $env(SHELL) |
5 | match_max 100000 | 5 | match_max 100000 |
6 | 6 | ||
7 | send -- "firejail fbreader\r" | 7 | send -- "firejail --tracelog fbreader\r" |
8 | expect { | 8 | expect { |
9 | timeout {puts "TESTING ERROR 0\n";exit} | 9 | timeout {puts "TESTING ERROR 0\n";exit} |
10 | "Reading profile /etc/firejail/fbreader.profile" | 10 | "Reading profile /etc/firejail/fbreader.profile" |
@@ -38,7 +38,7 @@ spawn $env(SHELL) | |||
38 | send -- "firemon --seccomp\r" | 38 | send -- "firemon --seccomp\r" |
39 | expect { | 39 | expect { |
40 | timeout {puts "TESTING ERROR 5\n";exit} | 40 | timeout {puts "TESTING ERROR 5\n";exit} |
41 | ":firejail fbreader" | 41 | ":firejail --tracelog fbreader" |
42 | } | 42 | } |
43 | expect { | 43 | expect { |
44 | timeout {puts "TESTING ERROR 5.1 (seccomp)\n";exit} | 44 | timeout {puts "TESTING ERROR 5.1 (seccomp)\n";exit} |
@@ -52,7 +52,7 @@ sleep 1 | |||
52 | send -- "firemon --caps\r" | 52 | send -- "firemon --caps\r" |
53 | expect { | 53 | expect { |
54 | timeout {puts "TESTING ERROR 6\n";exit} | 54 | timeout {puts "TESTING ERROR 6\n";exit} |
55 | ":firejail fbreader" | 55 | ":firejail --tracelog fbreader" |
56 | } | 56 | } |
57 | expect { | 57 | expect { |
58 | timeout {puts "TESTING ERROR 6.1\n";exit} | 58 | timeout {puts "TESTING ERROR 6.1\n";exit} |
diff --git a/test/firefox.exp b/test/firefox.exp index c2e64e04f..e1b31dd87 100755 --- a/test/firefox.exp +++ b/test/firefox.exp | |||
@@ -4,7 +4,7 @@ set timeout 10 | |||
4 | spawn $env(SHELL) | 4 | spawn $env(SHELL) |
5 | match_max 100000 | 5 | match_max 100000 |
6 | 6 | ||
7 | send -- "firejail firefox www.gentoo.org\r" | 7 | send -- "firejail --tracelog firefox www.gentoo.org\r" |
8 | expect { | 8 | expect { |
9 | timeout {puts "TESTING ERROR 0\n";exit} | 9 | timeout {puts "TESTING ERROR 0\n";exit} |
10 | "Reading profile /etc/firejail/firefox.profile" | 10 | "Reading profile /etc/firejail/firefox.profile" |
diff --git a/test/gnome-mplayer.exp b/test/gnome-mplayer.exp index e8acc295c..e0157ffa9 100755 --- a/test/gnome-mplayer.exp +++ b/test/gnome-mplayer.exp | |||
@@ -4,7 +4,7 @@ set timeout 10 | |||
4 | spawn $env(SHELL) | 4 | spawn $env(SHELL) |
5 | match_max 100000 | 5 | match_max 100000 |
6 | 6 | ||
7 | send -- "firejail gnome-mplayer\r" | 7 | send -- "firejail --tracelog gnome-mplayer\r" |
8 | expect { | 8 | expect { |
9 | timeout {puts "TESTING ERROR 0\n";exit} | 9 | timeout {puts "TESTING ERROR 0\n";exit} |
10 | "Reading profile /etc/firejail/gnome-mplayer.profile" | 10 | "Reading profile /etc/firejail/gnome-mplayer.profile" |
diff --git a/test/google-chrome.exp b/test/google-chrome.exp index 5c77b53dc..f66608de4 100755 --- a/test/google-chrome.exp +++ b/test/google-chrome.exp | |||
@@ -4,7 +4,7 @@ set timeout 10 | |||
4 | spawn $env(SHELL) | 4 | spawn $env(SHELL) |
5 | match_max 100000 | 5 | match_max 100000 |
6 | 6 | ||
7 | send -- "firejail google-chrome www.gentoo.org\r" | 7 | send -- "firejail --tracelog google-chrome www.gentoo.org\r" |
8 | expect { | 8 | expect { |
9 | timeout {puts "TESTING ERROR 0\n";exit} | 9 | timeout {puts "TESTING ERROR 0\n";exit} |
10 | "Reading profile /etc/firejail/chromium.profile" | 10 | "Reading profile /etc/firejail/chromium.profile" |
diff --git a/test/hexchat.exp b/test/hexchat.exp index 0653bcb13..90d775574 100755 --- a/test/hexchat.exp +++ b/test/hexchat.exp | |||
@@ -4,7 +4,7 @@ set timeout 10 | |||
4 | spawn $env(SHELL) | 4 | spawn $env(SHELL) |
5 | match_max 100000 | 5 | match_max 100000 |
6 | 6 | ||
7 | send -- "firejail hexchat\r" | 7 | send -- "firejail --tracelog hexchat\r" |
8 | expect { | 8 | expect { |
9 | timeout {puts "TESTING ERROR 0\n";exit} | 9 | timeout {puts "TESTING ERROR 0\n";exit} |
10 | "Reading profile /etc/firejail/hexchat.profile" | 10 | "Reading profile /etc/firejail/hexchat.profile" |
diff --git a/test/icedove.exp b/test/icedove.exp index 79913517b..af2bd1ace 100755 --- a/test/icedove.exp +++ b/test/icedove.exp | |||
@@ -4,7 +4,7 @@ set timeout 10 | |||
4 | spawn $env(SHELL) | 4 | spawn $env(SHELL) |
5 | match_max 100000 | 5 | match_max 100000 |
6 | 6 | ||
7 | send -- "firejail icedove\r" | 7 | send -- "firejail --tracelog icedove\r" |
8 | expect { | 8 | expect { |
9 | timeout {puts "TESTING ERROR 0\n";exit} | 9 | timeout {puts "TESTING ERROR 0\n";exit} |
10 | "Reading profile /etc/firejail/icedove.profile" | 10 | "Reading profile /etc/firejail/icedove.profile" |
@@ -13,7 +13,7 @@ expect { | |||
13 | timeout {puts "TESTING ERROR 1\n";exit} | 13 | timeout {puts "TESTING ERROR 1\n";exit} |
14 | "Child process initialized" | 14 | "Child process initialized" |
15 | } | 15 | } |
16 | sleep 10 | 16 | sleep 5 |
17 | 17 | ||
18 | spawn $env(SHELL) | 18 | spawn $env(SHELL) |
19 | send -- "firejail --list\r" | 19 | send -- "firejail --list\r" |
@@ -38,7 +38,7 @@ spawn $env(SHELL) | |||
38 | send -- "firemon --seccomp\r" | 38 | send -- "firemon --seccomp\r" |
39 | expect { | 39 | expect { |
40 | timeout {puts "TESTING ERROR 5\n";exit} | 40 | timeout {puts "TESTING ERROR 5\n";exit} |
41 | ":firejail icedove" | 41 | ":firejail --tracelog icedove" |
42 | } | 42 | } |
43 | expect { | 43 | expect { |
44 | timeout {puts "TESTING ERROR 5.1 (seccomp)\n";exit} | 44 | timeout {puts "TESTING ERROR 5.1 (seccomp)\n";exit} |
@@ -52,7 +52,7 @@ sleep 1 | |||
52 | send -- "firemon --caps\r" | 52 | send -- "firemon --caps\r" |
53 | expect { | 53 | expect { |
54 | timeout {puts "TESTING ERROR 6\n";exit} | 54 | timeout {puts "TESTING ERROR 6\n";exit} |
55 | ":firejail icedove" | 55 | ":firejail --tracelog icedove" |
56 | } | 56 | } |
57 | expect { | 57 | expect { |
58 | timeout {puts "TESTING ERROR 6.1\n";exit} | 58 | timeout {puts "TESTING ERROR 6.1\n";exit} |
diff --git a/test/midori.exp b/test/midori.exp index ec33816dd..f8f39d579 100755 --- a/test/midori.exp +++ b/test/midori.exp | |||
@@ -4,7 +4,7 @@ set timeout 10 | |||
4 | spawn $env(SHELL) | 4 | spawn $env(SHELL) |
5 | match_max 100000 | 5 | match_max 100000 |
6 | 6 | ||
7 | send -- "firejail midori www.gentoo.org\r" | 7 | send -- "firejail --tracelog midori www.gentoo.org\r" |
8 | expect { | 8 | expect { |
9 | timeout {puts "TESTING ERROR 0\n";exit} | 9 | timeout {puts "TESTING ERROR 0\n";exit} |
10 | "Reading profile /etc/firejail/midori.profile" | 10 | "Reading profile /etc/firejail/midori.profile" |
diff --git a/test/opera.exp b/test/opera.exp index f536ae866..62dc22279 100755 --- a/test/opera.exp +++ b/test/opera.exp | |||
@@ -4,7 +4,7 @@ set timeout 10 | |||
4 | spawn $env(SHELL) | 4 | spawn $env(SHELL) |
5 | match_max 100000 | 5 | match_max 100000 |
6 | 6 | ||
7 | send -- "firejail opera www.gentoo.org\r" | 7 | send -- "firejail --tracelog opera www.gentoo.org\r" |
8 | expect { | 8 | expect { |
9 | timeout {puts "TESTING ERROR 0\n";exit} | 9 | timeout {puts "TESTING ERROR 0\n";exit} |
10 | "Reading profile /etc/firejail/opera.profile" | 10 | "Reading profile /etc/firejail/opera.profile" |
diff --git a/test/shell_csh.exp b/test/shell_csh.exp index 8fa1ef166..a2634f633 100755 --- a/test/shell_csh.exp +++ b/test/shell_csh.exp | |||
@@ -4,7 +4,7 @@ set timeout 10 | |||
4 | spawn $env(SHELL) | 4 | spawn $env(SHELL) |
5 | match_max 100000 | 5 | match_max 100000 |
6 | 6 | ||
7 | send -- "firejail --private --csh\r" | 7 | send -- "firejail --private --tracelog --csh\r" |
8 | expect { | 8 | expect { |
9 | timeout {puts "TESTING ERROR 0\n";exit} | 9 | timeout {puts "TESTING ERROR 0\n";exit} |
10 | "Child process initialized" | 10 | "Child process initialized" |
diff --git a/test/shell_dash.exp b/test/shell_dash.exp index 298b65a0d..f5a60719e 100755 --- a/test/shell_dash.exp +++ b/test/shell_dash.exp | |||
@@ -4,7 +4,7 @@ set timeout 10 | |||
4 | spawn $env(SHELL) | 4 | spawn $env(SHELL) |
5 | match_max 100000 | 5 | match_max 100000 |
6 | 6 | ||
7 | send -- "firejail --private --shell=/bin/dash\r" | 7 | send -- "firejail --private --tracelog --shell=/bin/dash\r" |
8 | expect { | 8 | expect { |
9 | timeout {puts "TESTING ERROR 0\n";exit} | 9 | timeout {puts "TESTING ERROR 0\n";exit} |
10 | "Child process initialized" | 10 | "Child process initialized" |
diff --git a/test/shell_zsh.exp b/test/shell_zsh.exp index 79cd78a3e..1d73fd926 100755 --- a/test/shell_zsh.exp +++ b/test/shell_zsh.exp | |||
@@ -4,7 +4,7 @@ set timeout 10 | |||
4 | spawn $env(SHELL) | 4 | spawn $env(SHELL) |
5 | match_max 100000 | 5 | match_max 100000 |
6 | 6 | ||
7 | send -- "firejail --private --zsh\r" | 7 | send -- "firejail --private --tracelog --zsh\r" |
8 | expect { | 8 | expect { |
9 | timeout {puts "TESTING ERROR 0\n";exit} | 9 | timeout {puts "TESTING ERROR 0\n";exit} |
10 | "Child process initialized" | 10 | "Child process initialized" |
diff --git a/test/test-apps.sh b/test/test-apps.sh new file mode 100755 index 000000000..5ada20549 --- /dev/null +++ b/test/test-apps.sh | |||
@@ -0,0 +1,155 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | which firefox | ||
4 | if [ "$?" -eq 0 ]; | ||
5 | then | ||
6 | echo "TESTING: firefox" | ||
7 | ./firefox.exp | ||
8 | else | ||
9 | echo "TESTING: firefox not found" | ||
10 | fi | ||
11 | |||
12 | which midori | ||
13 | if [ "$?" -eq 0 ]; | ||
14 | then | ||
15 | echo "TESTING: midori" | ||
16 | ./midori.exp | ||
17 | else | ||
18 | echo "TESTING: midori not found" | ||
19 | fi | ||
20 | |||
21 | which chromium | ||
22 | if [ "$?" -eq 0 ]; | ||
23 | then | ||
24 | echo "TESTING: chromium" | ||
25 | ./chromium.exp | ||
26 | else | ||
27 | echo "TESTING: chromium not found" | ||
28 | fi | ||
29 | |||
30 | which google-chrome | ||
31 | if [ "$?" -eq 0 ]; | ||
32 | then | ||
33 | echo "TESTING: google-chrome" | ||
34 | ./chromium.exp | ||
35 | else | ||
36 | echo "TESTING: google-chrome not found" | ||
37 | fi | ||
38 | |||
39 | which opera | ||
40 | if [ "$?" -eq 0 ]; | ||
41 | then | ||
42 | echo "TESTING: opera" | ||
43 | ./opera.exp | ||
44 | else | ||
45 | echo "TESTING: opera not found" | ||
46 | fi | ||
47 | |||
48 | which transmission-gtk | ||
49 | if [ "$?" -eq 0 ]; | ||
50 | then | ||
51 | echo "TESTING: transmission-gtk" | ||
52 | ./transmission-gtk.exp | ||
53 | else | ||
54 | echo "TESTING: transmission-gtk not found" | ||
55 | fi | ||
56 | |||
57 | which transmission-qt | ||
58 | if [ "$?" -eq 0 ]; | ||
59 | then | ||
60 | echo "TESTING: transmission-qt" | ||
61 | ./transmission-qt.exp | ||
62 | else | ||
63 | echo "TESTING: transmission-qt not found" | ||
64 | fi | ||
65 | |||
66 | which evince | ||
67 | if [ "$?" -eq 0 ]; | ||
68 | then | ||
69 | echo "TESTING: evince" | ||
70 | ./evince.exp | ||
71 | else | ||
72 | echo "TESTING: evince not found" | ||
73 | fi | ||
74 | |||
75 | which icedove | ||
76 | if [ "$?" -eq 0 ]; | ||
77 | then | ||
78 | echo "TESTING: icedove" | ||
79 | ./icedove.exp | ||
80 | else | ||
81 | echo "TESTING: icedove not found" | ||
82 | fi | ||
83 | |||
84 | which vlc | ||
85 | if [ "$?" -eq 0 ]; | ||
86 | then | ||
87 | echo "TESTING: vlc" | ||
88 | ./vlc.exp | ||
89 | else | ||
90 | echo "TESTING: vlc not found" | ||
91 | fi | ||
92 | |||
93 | which fbreader | ||
94 | if [ "$?" -eq 0 ]; | ||
95 | then | ||
96 | echo "TESTING: fbreader" | ||
97 | ./fbreader.exp | ||
98 | else | ||
99 | echo "TESTING: fbreader not found" | ||
100 | fi | ||
101 | |||
102 | which deluge | ||
103 | if [ "$?" -eq 0 ]; | ||
104 | then | ||
105 | echo "TESTING: deluge" | ||
106 | ./deluge.exp | ||
107 | else | ||
108 | echo "TESTING: deluge not found" | ||
109 | fi | ||
110 | |||
111 | which gnome-mplayer | ||
112 | if [ "$?" -eq 0 ]; | ||
113 | then | ||
114 | echo "TESTING: gnome-mplayer" | ||
115 | ./gnome-mplayer.exp | ||
116 | else | ||
117 | echo "TESTING: gnome-mplayer not found" | ||
118 | fi | ||
119 | |||
120 | which xchat | ||
121 | if [ "$?" -eq 0 ]; | ||
122 | then | ||
123 | echo "TESTING: xchat" | ||
124 | ./xchat.exp | ||
125 | else | ||
126 | echo "TESTING: xchat not found" | ||
127 | fi | ||
128 | |||
129 | which hexchat | ||
130 | if [ "$?" -eq 0 ]; | ||
131 | then | ||
132 | echo "TESTING: hexchat" | ||
133 | ./hexchat.exp | ||
134 | else | ||
135 | echo "TESTING: hexchat not found" | ||
136 | fi | ||
137 | |||
138 | which weechat-curses | ||
139 | if [ "$?" -eq 0 ]; | ||
140 | then | ||
141 | echo "TESTING: weechat" | ||
142 | ./weechat.exp | ||
143 | else | ||
144 | echo "TESTING: weechat not found" | ||
145 | fi | ||
146 | |||
147 | which wine | ||
148 | if [ "$?" -eq 0 ]; | ||
149 | then | ||
150 | echo "TESTING: wine" | ||
151 | ./wine.exp | ||
152 | else | ||
153 | echo "TESTING: wine not found" | ||
154 | fi | ||
155 | |||
diff --git a/test/test.sh b/test/test.sh index 6b9b458e9..8668d068f 100755 --- a/test/test.sh +++ b/test/test.sh | |||
@@ -152,161 +152,7 @@ else | |||
152 | echo "TESTING: dash not found" | 152 | echo "TESTING: dash not found" |
153 | fi | 153 | fi |
154 | 154 | ||
155 | which firefox | 155 | ./test-apps.sh |
156 | if [ "$?" -eq 0 ]; | ||
157 | then | ||
158 | echo "TESTING: firefox" | ||
159 | ./firefox.exp | ||
160 | else | ||
161 | echo "TESTING: firefox not found" | ||
162 | fi | ||
163 | |||
164 | which midori | ||
165 | if [ "$?" -eq 0 ]; | ||
166 | then | ||
167 | echo "TESTING: midori" | ||
168 | ./midori.exp | ||
169 | else | ||
170 | echo "TESTING: midori not found" | ||
171 | fi | ||
172 | |||
173 | which chromium | ||
174 | if [ "$?" -eq 0 ]; | ||
175 | then | ||
176 | echo "TESTING: chromium" | ||
177 | ./chromium.exp | ||
178 | else | ||
179 | echo "TESTING: chromium not found" | ||
180 | fi | ||
181 | |||
182 | which google-chrome | ||
183 | if [ "$?" -eq 0 ]; | ||
184 | then | ||
185 | echo "TESTING: google-chrome" | ||
186 | ./chromium.exp | ||
187 | else | ||
188 | echo "TESTING: google-chrome not found" | ||
189 | fi | ||
190 | |||
191 | which opera | ||
192 | if [ "$?" -eq 0 ]; | ||
193 | then | ||
194 | echo "TESTING: opera" | ||
195 | ./opera.exp | ||
196 | else | ||
197 | echo "TESTING: opera not found" | ||
198 | fi | ||
199 | |||
200 | which transmission-gtk | ||
201 | if [ "$?" -eq 0 ]; | ||
202 | then | ||
203 | echo "TESTING: transmission-gtk" | ||
204 | ./transmission-gtk.exp | ||
205 | else | ||
206 | echo "TESTING: transmission-gtk not found" | ||
207 | fi | ||
208 | |||
209 | which transmission-qt | ||
210 | if [ "$?" -eq 0 ]; | ||
211 | then | ||
212 | echo "TESTING: transmission-qt" | ||
213 | ./transmission-qt.exp | ||
214 | else | ||
215 | echo "TESTING: transmission-qt not found" | ||
216 | fi | ||
217 | |||
218 | which evince | ||
219 | if [ "$?" -eq 0 ]; | ||
220 | then | ||
221 | echo "TESTING: evince" | ||
222 | ./evince.exp | ||
223 | else | ||
224 | echo "TESTING: evince not found" | ||
225 | fi | ||
226 | |||
227 | which icedove | ||
228 | if [ "$?" -eq 0 ]; | ||
229 | then | ||
230 | echo "TESTING: icedove" | ||
231 | ./icedove.exp | ||
232 | else | ||
233 | echo "TESTING: icedove not found" | ||
234 | fi | ||
235 | |||
236 | which vlc | ||
237 | if [ "$?" -eq 0 ]; | ||
238 | then | ||
239 | echo "TESTING: vlc" | ||
240 | ./vlc.exp | ||
241 | else | ||
242 | echo "TESTING: vlc not found" | ||
243 | fi | ||
244 | |||
245 | which fbreader | ||
246 | if [ "$?" -eq 0 ]; | ||
247 | then | ||
248 | echo "TESTING: fbreader" | ||
249 | ./fbreader.exp | ||
250 | else | ||
251 | echo "TESTING: fbreader not found" | ||
252 | fi | ||
253 | |||
254 | which deluge | ||
255 | if [ "$?" -eq 0 ]; | ||
256 | then | ||
257 | echo "TESTING: deluge" | ||
258 | ./deluge.exp | ||
259 | else | ||
260 | echo "TESTING: deluge not found" | ||
261 | fi | ||
262 | |||
263 | which gnome-mplayer | ||
264 | if [ "$?" -eq 0 ]; | ||
265 | then | ||
266 | echo "TESTING: gnome-mplayer" | ||
267 | ./gnome-mplayer.exp | ||
268 | else | ||
269 | echo "TESTING: gnome-mplayer not found" | ||
270 | fi | ||
271 | |||
272 | which xchat | ||
273 | if [ "$?" -eq 0 ]; | ||
274 | then | ||
275 | echo "TESTING: xchat" | ||
276 | ./xchat.exp | ||
277 | else | ||
278 | echo "TESTING: xchat not found" | ||
279 | fi | ||
280 | |||
281 | which hexchat | ||
282 | if [ "$?" -eq 0 ]; | ||
283 | then | ||
284 | echo "TESTING: hexchat" | ||
285 | ./hexchat.exp | ||
286 | else | ||
287 | echo "TESTING: hexchat not found" | ||
288 | fi | ||
289 | |||
290 | which weechat-curses | ||
291 | if [ "$?" -eq 0 ]; | ||
292 | then | ||
293 | echo "TESTING: weechat" | ||
294 | ./weechat.exp | ||
295 | else | ||
296 | echo "TESTING: weechat not found" | ||
297 | fi | ||
298 | |||
299 | which wine | ||
300 | if [ "$?" -eq 0 ]; | ||
301 | then | ||
302 | echo "TESTING: wine" | ||
303 | ./wine.exp | ||
304 | else | ||
305 | echo "TESTING: wine not found" | ||
306 | fi | ||
307 | |||
308 | |||
309 | |||
310 | 156 | ||
311 | echo "TESTING: PID" | 157 | echo "TESTING: PID" |
312 | ./pid.exp | 158 | ./pid.exp |
diff --git a/test/transmission-gtk.exp b/test/transmission-gtk.exp index 7760ae3ad..01e220573 100755 --- a/test/transmission-gtk.exp +++ b/test/transmission-gtk.exp | |||
@@ -4,7 +4,7 @@ set timeout 10 | |||
4 | spawn $env(SHELL) | 4 | spawn $env(SHELL) |
5 | match_max 100000 | 5 | match_max 100000 |
6 | 6 | ||
7 | send -- "firejail transmission-gtk\r" | 7 | send -- "firejail --tracelog transmission-gtk\r" |
8 | expect { | 8 | expect { |
9 | timeout {puts "TESTING ERROR 1\n";exit} | 9 | timeout {puts "TESTING ERROR 1\n";exit} |
10 | "Child process initialized" | 10 | "Child process initialized" |
@@ -34,7 +34,7 @@ spawn $env(SHELL) | |||
34 | send -- "firemon --seccomp\r" | 34 | send -- "firemon --seccomp\r" |
35 | expect { | 35 | expect { |
36 | timeout {puts "TESTING ERROR 5\n";exit} | 36 | timeout {puts "TESTING ERROR 5\n";exit} |
37 | ":firejail transmission-gtk" | 37 | ":firejail --tracelog transmission-gtk" |
38 | } | 38 | } |
39 | expect { | 39 | expect { |
40 | timeout {puts "TESTING ERROR 5.1 (seccomp)\n";exit} | 40 | timeout {puts "TESTING ERROR 5.1 (seccomp)\n";exit} |
@@ -48,7 +48,7 @@ sleep 1 | |||
48 | send -- "firemon --caps\r" | 48 | send -- "firemon --caps\r" |
49 | expect { | 49 | expect { |
50 | timeout {puts "TESTING ERROR 6\n";exit} | 50 | timeout {puts "TESTING ERROR 6\n";exit} |
51 | ":firejail transmission-gtk" | 51 | ":firejail --tracelog transmission-gtk" |
52 | } | 52 | } |
53 | expect { | 53 | expect { |
54 | timeout {puts "TESTING ERROR 6.1\n";exit} | 54 | timeout {puts "TESTING ERROR 6.1\n";exit} |
@@ -64,5 +64,5 @@ expect { | |||
64 | } | 64 | } |
65 | sleep 1 | 65 | sleep 1 |
66 | 66 | ||
67 | puts "\n" | 67 | puts "\nall done\n" |
68 | 68 | ||
diff --git a/test/transmission-qt.exp b/test/transmission-qt.exp index 85457aeb8..785e35649 100755 --- a/test/transmission-qt.exp +++ b/test/transmission-qt.exp | |||
@@ -4,7 +4,7 @@ set timeout 10 | |||
4 | spawn $env(SHELL) | 4 | spawn $env(SHELL) |
5 | match_max 100000 | 5 | match_max 100000 |
6 | 6 | ||
7 | send -- "firejail transmission-qt\r" | 7 | send -- "firejail --tracelog transmission-qt\r" |
8 | expect { | 8 | expect { |
9 | timeout {puts "TESTING ERROR 0\n";exit} | 9 | timeout {puts "TESTING ERROR 0\n";exit} |
10 | "Reading profile /etc/firejail/transmission-qt.profile" | 10 | "Reading profile /etc/firejail/transmission-qt.profile" |
@@ -38,7 +38,7 @@ spawn $env(SHELL) | |||
38 | send -- "firemon --seccomp\r" | 38 | send -- "firemon --seccomp\r" |
39 | expect { | 39 | expect { |
40 | timeout {puts "TESTING ERROR 5\n";exit} | 40 | timeout {puts "TESTING ERROR 5\n";exit} |
41 | ":firejail transmission-qt" | 41 | ":firejail --tracelog transmission-qt" |
42 | } | 42 | } |
43 | expect { | 43 | expect { |
44 | timeout {puts "TESTING ERROR 5.1 (seccomp)\n";exit} | 44 | timeout {puts "TESTING ERROR 5.1 (seccomp)\n";exit} |
@@ -52,7 +52,7 @@ sleep 1 | |||
52 | send -- "firemon --caps\r" | 52 | send -- "firemon --caps\r" |
53 | expect { | 53 | expect { |
54 | timeout {puts "TESTING ERROR 6\n";exit} | 54 | timeout {puts "TESTING ERROR 6\n";exit} |
55 | ":firejail transmission-qt" | 55 | ":firejail --tracelog transmission-qt" |
56 | } | 56 | } |
57 | expect { | 57 | expect { |
58 | timeout {puts "TESTING ERROR 6.1\n";exit} | 58 | timeout {puts "TESTING ERROR 6.1\n";exit} |
@@ -68,5 +68,5 @@ expect { | |||
68 | } | 68 | } |
69 | sleep 1 | 69 | sleep 1 |
70 | 70 | ||
71 | puts "\n" | 71 | puts "\nall done\n" |
72 | 72 | ||
diff --git a/test/vlc.exp b/test/vlc.exp index 53d25c9dd..a9a0a3fb1 100755 --- a/test/vlc.exp +++ b/test/vlc.exp | |||
@@ -4,7 +4,7 @@ set timeout 10 | |||
4 | spawn $env(SHELL) | 4 | spawn $env(SHELL) |
5 | match_max 100000 | 5 | match_max 100000 |
6 | 6 | ||
7 | send -- "firejail vlc\r" | 7 | send -- "firejail --tracelog vlc\r" |
8 | expect { | 8 | expect { |
9 | timeout {puts "TESTING ERROR 0\n";exit} | 9 | timeout {puts "TESTING ERROR 0\n";exit} |
10 | "Reading profile /etc/firejail/vlc.profile" | 10 | "Reading profile /etc/firejail/vlc.profile" |
@@ -38,7 +38,7 @@ spawn $env(SHELL) | |||
38 | send -- "firemon --seccomp\r" | 38 | send -- "firemon --seccomp\r" |
39 | expect { | 39 | expect { |
40 | timeout {puts "TESTING ERROR 5\n";exit} | 40 | timeout {puts "TESTING ERROR 5\n";exit} |
41 | ":firejail vlc" | 41 | ":firejail --tracelog vlc" |
42 | } | 42 | } |
43 | expect { | 43 | expect { |
44 | timeout {puts "TESTING ERROR 5.1 (seccomp)\n";exit} | 44 | timeout {puts "TESTING ERROR 5.1 (seccomp)\n";exit} |
@@ -52,7 +52,7 @@ sleep 1 | |||
52 | send -- "firemon --caps\r" | 52 | send -- "firemon --caps\r" |
53 | expect { | 53 | expect { |
54 | timeout {puts "TESTING ERROR 6\n";exit} | 54 | timeout {puts "TESTING ERROR 6\n";exit} |
55 | ":firejail vlc" | 55 | ":firejail --tracelog vlc" |
56 | } | 56 | } |
57 | expect { | 57 | expect { |
58 | timeout {puts "TESTING ERROR 6.1\n";exit} | 58 | timeout {puts "TESTING ERROR 6.1\n";exit} |
diff --git a/test/weechat.exp b/test/weechat.exp index ac2430280..8a928b0e9 100755 --- a/test/weechat.exp +++ b/test/weechat.exp | |||
@@ -4,7 +4,7 @@ set timeout 10 | |||
4 | spawn $env(SHELL) | 4 | spawn $env(SHELL) |
5 | match_max 100000 | 5 | match_max 100000 |
6 | 6 | ||
7 | send -- "firejail weechat-curses\r" | 7 | send -- "firejail --tracelog weechat-curses\r" |
8 | expect { | 8 | expect { |
9 | timeout {puts "TESTING ERROR 0\n";exit} | 9 | timeout {puts "TESTING ERROR 0\n";exit} |
10 | "Reading profile /etc/firejail/weechat.profile" | 10 | "Reading profile /etc/firejail/weechat.profile" |
diff --git a/test/wine.exp b/test/wine.exp index d87c1f205..1e7df434c 100755 --- a/test/wine.exp +++ b/test/wine.exp | |||
@@ -4,7 +4,7 @@ set timeout 10 | |||
4 | spawn $env(SHELL) | 4 | spawn $env(SHELL) |
5 | match_max 100000 | 5 | match_max 100000 |
6 | 6 | ||
7 | send -- "firejail wine --help\r" | 7 | send -- "firejail --tracelog wine --help\r" |
8 | expect { | 8 | expect { |
9 | timeout {puts "TESTING ERROR 0\n";exit} | 9 | timeout {puts "TESTING ERROR 0\n";exit} |
10 | "Reading profile /etc/firejail/wine.profile" | 10 | "Reading profile /etc/firejail/wine.profile" |
diff --git a/test/xchat.exp b/test/xchat.exp index babbcf87d..d1b06b2c0 100755 --- a/test/xchat.exp +++ b/test/xchat.exp | |||
@@ -4,7 +4,7 @@ set timeout 10 | |||
4 | spawn $env(SHELL) | 4 | spawn $env(SHELL) |
5 | match_max 100000 | 5 | match_max 100000 |
6 | 6 | ||
7 | send -- "firejail xchat\r" | 7 | send -- "firejail --tracelog xchat\r" |
8 | expect { | 8 | expect { |
9 | timeout {puts "TESTING ERROR 0\n";exit} | 9 | timeout {puts "TESTING ERROR 0\n";exit} |
10 | "Reading profile /etc/firejail/xchat.profile" | 10 | "Reading profile /etc/firejail/xchat.profile" |