aboutsummaryrefslogtreecommitdiffstats
path: root/test/Makefile
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2015-09-27 23:20:28 +0200
committerLoïc Hoguin <[email protected]>2015-09-27 23:20:28 +0200
commit41ea5e7fe740625899cd9553f5d9faf25cf5425a (patch)
tree1ce98927ab01682b65fd70cdca259d9a59ea13f1 /test/Makefile
parent003ed2490a9c1212ab1de245822c7d263a21aedb (diff)
downloaderlang.mk-41ea5e7fe740625899cd9553f5d9faf25cf5425a.tar.gz
erlang.mk-41ea5e7fe740625899cd9553f5d9faf25cf5425a.tar.bz2
erlang.mk-41ea5e7fe740625899cd9553f5d9faf25cf5425a.zip
Improve tests' platform detection
Fixes a small warning printed on OSX, and don't run a specific test on FreeBSD (compiles a C library not compatible with FreeBSD).
Diffstat (limited to 'test/Makefile')
-rw-r--r--test/Makefile14
1 files changed, 10 insertions, 4 deletions
diff --git a/test/Makefile b/test/Makefile
index fffc171..9272832 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -19,12 +19,18 @@ APP_TO_CLEAN = $(subst -,_,$(patsubst clean-%,%,$@))
ERL = erl +A0 -noinput -boot start_clean
-# Platform, condensed version.
+# Platform detection, condensed version.
-ifeq ($(shell uname -o),Msys)
- PLATFORM = msys2
+UNAME_S := $(shell uname -s)
+
+ifeq ($(UNAME_S),Darwin)
+PLATFORM = darwin
+else ifeq ($(UNAME_S),FreeBSD)
+PLATFORM = freebsd
+else ifeq ($(shell uname -o),Msys)
+PLATFORM = msys2
else
- PLATFORM = unix
+PLATFORM = unix
endif
# Some systems do not have sub-second file times resolution.