From 41ea5e7fe740625899cd9553f5d9faf25cf5425a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Sun, 27 Sep 2015 23:20:28 +0200 Subject: 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). --- test/Makefile | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'test/Makefile') 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. -- cgit v1.2.3