diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2021-10-04 12:06:44 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2021-10-05 14:22:22 +0200 |
| commit | 8a6b1a8da46b1f7e601339d52caa0fbb0bcdd490 (patch) | |
| tree | 1af7028aa1e2eefc24968b92ff34391e07e48fb0 | |
| parent | a3d2958e9d972332627eb82da8faaf09b45266cf (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-- | Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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 |
