From 8a6b1a8da46b1f7e601339d52caa0fbb0bcdd490 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 4 Oct 2021 12:06:44 +0200 Subject: Makefile: run more test with clang Smoke CI run uses Linux/gcc, so use Linux/clang for the big-env run to get max test coverage. --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 99984df84..49b16e363 100644 --- a/Makefile +++ b/Makefile @@ -303,7 +303,7 @@ presubmit_arch: descriptions env HOSTOS=openbsd HOSTARCH=amd64 $(MAKE) host env HOSTOS=darwin HOSTARCH=amd64 $(MAKE) host env TARGETOS=linux TARGETARCH=amd64 $(MAKE) target - env TARGETOS=linux TARGETARCH=amd64 SYZ_CLANG=yes $(MAKE) target + env TARGETOS=linux TARGETARCH=amd64 SYZ_CLANG=yes $(MAKE) executor env TARGETOS=linux TARGETARCH=386 $(MAKE) target env TARGETOS=linux TARGETARCH=arm64 $(MAKE) target env TARGETOS=linux TARGETARCH=arm $(MAKE) target @@ -333,7 +333,12 @@ ifneq (, $(shell which go1.12)) # so we use 1.12 as the best working approximation. GO111MODULE=off go1.12 install ./dashboard/app endif - $(GO) test -short -coverprofile=.coverage.txt ./dashboard/app ./pkg/csource ./pkg/cover + # Run tests with clang on Linux. + # big-env also contains toolchains for NetBSD/Fuchsia/Akaros, + # but these OSes use fixed toolchains and are not affected by SYZ_CLANG=yes. + # This way we get maximum coverage: smoke run tests Linux/gcc, + # while this run tests Linux/clang + the additional OSes. + SYZ_CLANG=yes $(GO) test -short -coverprofile=.coverage.txt ./dashboard/app ./pkg/csource ./pkg/cover presubmit_race: descriptions # -race requires cgo -- cgit mrf-deployment