github.com/gagliardetto/golang-go@v0.0.0-20201020153340-53909ea70814/cmd/go/testdata/script/clean_testcache.txt (about) 1 env GO111MODULE=off 2 [short] skip 3 4 # go clean -testcache 5 # should work (see golang.org/issue/29757). 6 cd x 7 go test x_test.go 8 go clean -testcache 9 go test x_test.go 10 ! stdout 'cached' 11 12 # golang.org/issue/29100: 'go clean -testcache' should succeed 13 # if the cache directory doesn't exist at all. 14 # It should not write a testexpire.txt file, since there are no 15 # test results that need to be invalidated in the first place. 16 env GOCACHE=$WORK/nonexistent 17 go clean -testcache 18 ! exists $WORK/nonexistent 19 20 -- x/x_test.go -- 21 package x_test 22 import ( 23 "testing" 24 ) 25 func TestMain(t *testing.T) { 26 }