summaryrefslogtreecommitdiffstats
path: root/tests/test_install.sh
diff options
context:
space:
mode:
authorBimba Shrestha <bimbashrestha@fb.com>2019-10-04 17:12:22 (GMT)
committerBimba Shrestha <bimbashrestha@fb.com>2019-10-04 17:12:22 (GMT)
commit77e6ff11609caab0df61fc3f2a85e3f325a84806 (patch)
treee5ab9b588c81db0c66bfd8c4096872b61df28a25 /tests/test_install.sh
parentc0acce96c1c9034cddfe2fd82044b3023fa9de63 (diff)
downloadlz4-77e6ff11609caab0df61fc3f2a85e3f325a84806.zip
lz4-77e6ff11609caab0df61fc3f2a85e3f325a84806.tar.gz
lz4-77e6ff11609caab0df61fc3f2a85e3f325a84806.tar.bz2
Adding condition for FreeBSD and using gmake
Diffstat (limited to 'tests/test_install.sh')
-rwxr-xr-xtests/test_install.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/test_install.sh b/tests/test_install.sh
index 50567b7..0cdfd3b 100755
--- a/tests/test_install.sh
+++ b/tests/test_install.sh
@@ -1,7 +1,14 @@
#/usr/bin/env sh
set -e
-make="$(MAKE) -C $lz4_root"
+
+make="make -C $lz4_root"
+if [ "$unamestr" = 'Linux' ]; then
+ make="make -C $lz4_root"
+elif [ "$unamestr" = 'FreeBSD' ]; then
+ make="gmake -C $lz4_root"
+fi
+
for cmd in install uninstall; do
for upper in DUMMY PREFIX EXEC_PREFIX LIBDIR INCLUDEDIR PKGCONFIGDIR BINDIR MANDIR MAN1DIR ; do
lower=$(echo $upper | tr '[:upper:]' '[:lower:]')