...
1env GO111MODULE=off
2
3[short] skip
4[GODEBUG:gocacheverify=1] skip
5[compiler:gccgo] skip # gccgo has no standard packages
6
7# Start with a clean build cache:
8# test failures may be masked if the cache has just the right entries already.
9env GOCACHE=$WORK/cache
10
11# Run 'go vet os/user' once to warm up the cache.
12go vet os/user
13
14# Check that second vet reuses cgo-derived inputs.
15# The first command could be build instead of vet,
16# except that if the cache is empty and there's a net.a
17# in GOROOT/pkg, the build will not bother to regenerate
18# and cache the cgo outputs, whereas vet always will.
19
20go vet -x os/user
21! stderr '^(clang|gcc)' # should not have run compiler
22! stderr '[\\/]cgo ' # should not have run cgo
View as plain text