move the "missing -trimpath" test to the slow group (#106)

This shouldn't break often, so it doesn't need to be covered by 'go test
-short'. Moreover, it's still a relatively expensive step, since we end
up reaching package compilation.
pull/111/head
Daniel Martí 4 years ago
parent 5737cb7f8a
commit 81b4c49702

@ -1,7 +1,3 @@
# Check that we fail if the user ran with -toolexec but without -trimpath.
! exec go build -a -toolexec=garble main.go
stderr 'should be used alongside -trimpath'
# Check that the simplest use of garble works. Note the lack of a module or GOPRIVATE.
garble build main.go
exec ./main
@ -31,6 +27,10 @@ stdout 'unknown'
[short] stop # checking that the build is reproducible is slow
# Check that we fail if the user ran with -toolexec but without -trimpath.
! exec go build -a -toolexec=garble main.go
stderr 'should be used alongside -trimpath'
# Also check that the binary is reproducible.
cp main$exe main_old$exe
rm main$exe

Loading…
Cancel
Save