...

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

Documentation: cmd/go/testdata/script

     1# Check that goroutine scheduling does not affect compiler output.
     2# If it does, reproducible builds will not work very well.
     3[short] skip
     4[GOOS:aix] env CGO_ENABLED=0  # go.dev/issue/56896
     5env GOMAXPROCS=16
     6go build -a -o http16.o net/http
     7env GOMAXPROCS=17
     8go build -a -o http17.o net/http
     9cmp -q http16.o http17.o
    10env GOMAXPROCS=18
    11go build -a -o http18.o net/http
    12cmp -q http16.o http18.o
    13
    14# Check that goroutine scheduling does not affect linker output.
    15env GOMAXPROCS=16
    16go build -a -o gofmt16.exe cmd/gofmt
    17env GOMAXPROCS=17
    18go build -a -o gofmt17.exe cmd/gofmt
    19cmp -q gofmt16.exe gofmt17.exe
    20env GOMAXPROCS=18
    21go build -a -o gofmt18.exe cmd/gofmt
    22cmp -q gofmt16.exe gofmt18.exe

View as plain text