diff options
Diffstat (limited to 'test/apps/apps.sh')
-rwxr-xr-x | test/apps/apps.sh | 180 |
1 files changed, 180 insertions, 0 deletions
diff --git a/test/apps/apps.sh b/test/apps/apps.sh new file mode 100755 index 000000000..38307b284 --- /dev/null +++ b/test/apps/apps.sh | |||
@@ -0,0 +1,180 @@ | |||
1 | #!/bin/bash | ||
2 | # This file is part of Firejail project | ||
3 | # Copyright (C) 2014-2016 Firejail Authors | ||
4 | # License GPL v2 | ||
5 | |||
6 | export MALLOC_CHECK_=3 | ||
7 | export MALLOC_PERTURB_=$(($RANDOM % 255 + 1)) | ||
8 | |||
9 | which firefox | ||
10 | if [ "$?" -eq 0 ]; | ||
11 | then | ||
12 | echo "TESTING: firefox" | ||
13 | ./firefox.exp | ||
14 | else | ||
15 | echo "TESTING SKIP: firefox not found" | ||
16 | fi | ||
17 | |||
18 | which midori | ||
19 | if [ "$?" -eq 0 ]; | ||
20 | then | ||
21 | echo "TESTING: midori" | ||
22 | ./midori.exp | ||
23 | else | ||
24 | echo "TESTING SKIP: midori not found" | ||
25 | fi | ||
26 | |||
27 | which chromium | ||
28 | if [ "$?" -eq 0 ]; | ||
29 | then | ||
30 | echo "TESTING: chromium" | ||
31 | ./chromium.exp | ||
32 | else | ||
33 | echo "TESTING SKIP: chromium not found" | ||
34 | fi | ||
35 | |||
36 | which opera | ||
37 | if [ "$?" -eq 0 ]; | ||
38 | then | ||
39 | echo "TESTING: opera" | ||
40 | ./opera.exp | ||
41 | else | ||
42 | echo "TESTING SKIP: opera not found" | ||
43 | fi | ||
44 | |||
45 | which transmission-gtk | ||
46 | if [ "$?" -eq 0 ]; | ||
47 | then | ||
48 | echo "TESTING: transmission-gtk" | ||
49 | ./transmission-gtk.exp | ||
50 | else | ||
51 | echo "TESTING SKIP: transmission-gtk not found" | ||
52 | fi | ||
53 | |||
54 | which transmission-qt | ||
55 | if [ "$?" -eq 0 ]; | ||
56 | then | ||
57 | echo "TESTING: transmission-qt" | ||
58 | ./transmission-qt.exp | ||
59 | else | ||
60 | echo "TESTING SKIP: transmission-qt not found" | ||
61 | fi | ||
62 | |||
63 | which qbittorrent | ||
64 | if [ "$?" -eq 0 ]; | ||
65 | then | ||
66 | echo "TESTING: qbittorrent" | ||
67 | ./qbittorrent.exp | ||
68 | else | ||
69 | echo "TESTING SKIP: qbittorrent not found" | ||
70 | fi | ||
71 | |||
72 | which uget-gtk | ||
73 | if [ "$?" -eq 0 ]; | ||
74 | then | ||
75 | echo "TESTING: uget" | ||
76 | ./uget-gtk.exp | ||
77 | else | ||
78 | echo "TESTING SKIP: uget-gtk not found" | ||
79 | fi | ||
80 | |||
81 | which filezilla | ||
82 | if [ "$?" -eq 0 ]; | ||
83 | then | ||
84 | echo "TESTING: filezilla" | ||
85 | ./filezilla.exp | ||
86 | else | ||
87 | echo "TESTING SKIP: filezilla not found" | ||
88 | fi | ||
89 | |||
90 | which evince | ||
91 | if [ "$?" -eq 0 ]; | ||
92 | then | ||
93 | echo "TESTING: evince" | ||
94 | ./evince.exp | ||
95 | else | ||
96 | echo "TESTING SKIP: evince not found" | ||
97 | fi | ||
98 | |||
99 | |||
100 | which gthumb | ||
101 | if [ "$?" -eq 0 ]; | ||
102 | then | ||
103 | echo "TESTING: gthumb" | ||
104 | ./gthumb.exp | ||
105 | else | ||
106 | echo "TESTING SKIP: gthumb not found" | ||
107 | fi | ||
108 | |||
109 | which icedove | ||
110 | if [ "$?" -eq 0 ]; | ||
111 | then | ||
112 | echo "TESTING: icedove" | ||
113 | ./icedove.exp | ||
114 | else | ||
115 | echo "TESTING SKIP: icedove not found" | ||
116 | fi | ||
117 | |||
118 | which vlc | ||
119 | if [ "$?" -eq 0 ]; | ||
120 | then | ||
121 | echo "TESTING: vlc" | ||
122 | ./vlc.exp | ||
123 | else | ||
124 | echo "TESTING SKIP: vlc not found" | ||
125 | fi | ||
126 | |||
127 | which fbreader | ||
128 | if [ "$?" -eq 0 ]; | ||
129 | then | ||
130 | echo "TESTING: fbreader" | ||
131 | ./fbreader.exp | ||
132 | else | ||
133 | echo "TESTING SKIP: fbreader not found" | ||
134 | fi | ||
135 | |||
136 | which deluge | ||
137 | if [ "$?" -eq 0 ]; | ||
138 | then | ||
139 | echo "TESTING: deluge" | ||
140 | ./deluge.exp | ||
141 | else | ||
142 | echo "TESTING SKIP: deluge not found" | ||
143 | fi | ||
144 | |||
145 | which gnome-mplayer | ||
146 | if [ "$?" -eq 0 ]; | ||
147 | then | ||
148 | echo "TESTING: gnome-mplayer" | ||
149 | ./gnome-mplayer.exp | ||
150 | else | ||
151 | echo "TESTING SKIP: gnome-mplayer not found" | ||
152 | fi | ||
153 | |||
154 | which xchat | ||
155 | if [ "$?" -eq 0 ]; | ||
156 | then | ||
157 | echo "TESTING: xchat" | ||
158 | ./xchat.exp | ||
159 | else | ||
160 | echo "TESTING SKIP: xchat not found" | ||
161 | fi | ||
162 | |||
163 | which hexchat | ||
164 | if [ "$?" -eq 0 ]; | ||
165 | then | ||
166 | echo "TESTING: hexchat" | ||
167 | ./hexchat.exp | ||
168 | else | ||
169 | echo "TESTING SKIP: hexchat not found" | ||
170 | fi | ||
171 | |||
172 | which wine | ||
173 | if [ "$?" -eq 0 ]; | ||
174 | then | ||
175 | echo "TESTING: wine" | ||
176 | ./wine.exp | ||
177 | else | ||
178 | echo "TESTING SKIP: wine not found" | ||
179 | fi | ||
180 | |||