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