aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2021-10-04 12:06:44 +0200
committerDmitry Vyukov <dvyukov@google.com>2021-10-05 14:22:22 +0200
commit8a6b1a8da46b1f7e601339d52caa0fbb0bcdd490 (patch)
tree1af7028aa1e2eefc24968b92ff34391e07e48fb0
parenta3d2958e9d972332627eb82da8faaf09b45266cf (diff)
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.
-rw-r--r--Makefile9
1 files 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