aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDan Fredell <furtchet@gmail.com>2018-02-28 11:05:35 -0600
committerJohannes 'fish' Ziemke <github@freigeist.org>2018-02-28 18:05:35 +0100
commit84719ef59aef2bdb34619feea03402ba199bf4a3 (patch)
tree74d033f1f7d14609c732fbc40663d3e9504e337e /Makefile
parent483f59d1102cd83a1547d59d997cf6571801e196 (diff)
downloadprometheus_node_collector-84719ef59aef2bdb34619feea03402ba199bf4a3.tar.bz2
prometheus_node_collector-84719ef59aef2bdb34619feea03402ba199bf4a3.tar.xz
prometheus_node_collector-84719ef59aef2bdb34619feea03402ba199bf4a3.zip
On SunOS/ solaris/ SmartOS the go test flag of -rance isn't supported. (#762)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 32b5363..ce2f58d 100644
--- a/Makefile
+++ b/Makefile
@@ -30,17 +30,19 @@ DOCKERFILE ?= Dockerfile
30 30
31STATICCHECK_IGNORE = 31STATICCHECK_IGNORE =
32 32
33ifeq ($(GOHOSTARCH),amd64)
34 # Only supported on amd64
35 test-flags := -race
36endif
37
38ifeq ($(OS),Windows_NT) 33ifeq ($(OS),Windows_NT)
39 OS_detected := Windows 34 OS_detected := Windows
40else 35else
41 OS_detected := $(shell uname -s) 36 OS_detected := $(shell uname -s)
42endif 37endif
43 38
39ifeq ($(GOHOSTARCH),amd64)
40 ifneq ($(OS_detected),SunOS)
41 # Only supported on amd64
42 test-flags := -race
43 endif
44endif
45
44ifeq ($(OS_detected), Linux) 46ifeq ($(OS_detected), Linux)
45 test-e2e := test-e2e 47 test-e2e := test-e2e
46else 48else