aboutsummaryrefslogtreecommitdiffstats
path: root/test/fcopy/fcopy.sh
diff options
context:
space:
mode:
authorLibravatar Reiner Herrmann <reiner@reiner-h.de>2017-04-16 21:11:10 +0200
committerLibravatar Reiner Herrmann <reiner@reiner-h.de>2017-04-16 21:16:15 +0200
commitd600a293a7f33397243c449d895168a4d4a9376d (patch)
treef508eea04da0fb5c5eb4ba8f3670b556c9adf8fb /test/fcopy/fcopy.sh
parenttest: argtest no longer available (diff)
downloadfirejail-d600a293a7f33397243c449d895168a4d4a9376d.tar.gz
firejail-d600a293a7f33397243c449d895168a4d4a9376d.tar.zst
firejail-d600a293a7f33397243c449d895168a4d4a9376d.zip
test: make tests independent of libdir
Diffstat (limited to 'test/fcopy/fcopy.sh')
-rwxr-xr-xtest/fcopy/fcopy.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/fcopy/fcopy.sh b/test/fcopy/fcopy.sh
index 0ae50399a..d122eff5d 100755
--- a/test/fcopy/fcopy.sh
+++ b/test/fcopy/fcopy.sh
@@ -6,6 +6,13 @@
6export MALLOC_CHECK_=3 6export MALLOC_CHECK_=3
7export MALLOC_PERTURB_=$(($RANDOM % 255 + 1)) 7export MALLOC_PERTURB_=$(($RANDOM % 255 + 1))
8 8
9if [ -f /etc/debian_version ]; then
10 libdir=$(dirname "$(dpkg -L firejail | grep fcopy)")
11 export PATH="$PATH:$libdir"
12else
13 export PATH="$PATH:/usr/lib/firejail"
14fi
15
9mkdir dest 16mkdir dest
10 17
11echo "TESTING: fcopy cmdline (test/fcopy/cmdline.exp)" 18echo "TESTING: fcopy cmdline (test/fcopy/cmdline.exp)"