aboutsummaryrefslogtreecommitdiffstats
path: root/test/apps/apps.sh
diff options
context:
space:
mode:
authorLibravatar a1346054 <36859588+a1346054@users.noreply.github.com>2022-09-13 19:47:01 +0000
committerLibravatar a1346054 <36859588+a1346054@users.noreply.github.com>2022-09-13 22:37:18 +0000
commitd7826c2384b6aa655d92b0570bebdc9cef8cb393 (patch)
treebaf5c9a2353453a244b72581bd992ea503f741bb /test/apps/apps.sh
parenttests: directly test for presence of command (diff)
downloadfirejail-d7826c2384b6aa655d92b0570bebdc9cef8cb393.tar.gz
firejail-d7826c2384b6aa655d92b0570bebdc9cef8cb393.tar.zst
firejail-d7826c2384b6aa655d92b0570bebdc9cef8cb393.zip
tests: use an array
Diffstat (limited to 'test/apps/apps.sh')
-rwxr-xr-xtest/apps/apps.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/apps/apps.sh b/test/apps/apps.sh
index ed4b7604a..0ef01bf2e 100755
--- a/test/apps/apps.sh
+++ b/test/apps/apps.sh
@@ -7,10 +7,9 @@ export MALLOC_CHECK_=3
7export MALLOC_PERTURB_=$(($RANDOM % 255 + 1)) 7export MALLOC_PERTURB_=$(($RANDOM % 255 + 1))
8export LC_ALL=C 8export LC_ALL=C
9 9
10LIST="firefox midori chromium opera transmission-qt qbittorrent uget-gtk filezilla gthumb thunderbird " 10apps=(firefox midori chromium opera transmission-qt qbittorrent uget-gtk filezilla gthumb thunderbird vlc fbreader deluge gnome-mplayer xchat wine kcalc ktorrent hexchat)
11LIST+="vlc fbreader deluge gnome-mplayer xchat wine kcalc ktorrent hexchat"
12 11
13for app in $LIST; do 12for app in "${apps[@]}"; do
14 if command -v "$app" 13 if command -v "$app"
15 then 14 then
16 echo "TESTING: $app" 15 echo "TESTING: $app"