fix tests

pull/102/head
Andrew LeFevre 5 years ago
parent b7cc927ef5
commit dfd1d5b4e2

@ -17,7 +17,7 @@ exec ./main
cmp stdout main.stdout
# Also check that -literals doesn't break anything
garble -literals build -tags buildtag
garble -literals=all build -tags buildtag
exec ./main
cmp stdout main.stdout

@ -1,5 +1,5 @@
# Check the binary with a given base64 encoded seed
garble -literals -seed=OQg9kACEECQ= build
garble -literals=all -seed=OQg9kACEECQ= build
exec ./main$exe
cmp stderr main.stdout
! binsubstr main$exe 'teststring' 'teststringVar' 'imported var value' 'ImportedVar'
@ -9,17 +9,17 @@ cmp stderr main.stdout
# Also check that the binary is reproducible.
cp main$exe main_old$exe
rm main$exe
garble -literals -seed=OQg9kACEECQ= build
garble -literals=all -seed=OQg9kACEECQ= build
bincmp main$exe main_old$exe
# Also check that a different seed leads to a different binary
cp main$exe main_old$exe
rm main$exe
garble -literals -seed=NruiDmVz6/s= build
garble -literals=all -seed=NruiDmVz6/s= build
! bincmp main$exe main_old$exe
# Check the random binary
garble -literals -seed=random build
garble -literals=all -seed=random build
exec ./main$exe
cmp stderr main.stdout
! binsubstr main$exe 'teststring' 'teststringVar' 'imported var value' 'ImportedVar'
@ -27,7 +27,7 @@ cmp stderr main.stdout
# Also check that the random binary is not reproducible.
cp main$exe main_old$exe
rm main$exe
garble -literals -seed=random build
garble -literals=all -seed=random build
! bincmp main$exe main_old$exe
-- go.mod --

Loading…
Cancel
Save