|
|
|
@ -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 --
|
|
|
|
|