...

Text file src/cmd/go/testdata/script/test_profile.txt

Documentation: cmd/go/testdata/script

     1[compiler:gccgo] skip 'gccgo has no standard packages'
     2[short] skip
     3
     4# Check go test -cpuprofile creates errors.test
     5go test -cpuprofile errors.prof errors
     6exists -exec errors.test$GOEXE
     7
     8# Check go test -cpuprofile -o myerrors.test creates errors.test
     9go test -cpuprofile errors.prof -o myerrors.test$GOEXE errors
    10exists -exec myerrors.test$GOEXE
    11
    12# Check go test -mutexprofile creates errors.test
    13go test -mutexprofile errors.prof errors
    14exists -exec errors.test$GOEXE
    15
    16# Check go test -mutexprofile -o myerrors.test creates errors.test
    17go test -mutexprofile errors.prof -o myerrors.test$GOEXE errors
    18exists -exec myerrors.test$GOEXE
    19

View as plain text