diff --git a/testdata/scripts/imports.txt b/testdata/scripts/imports.txt index 050f3b5..2e6f780 100644 --- a/testdata/scripts/imports.txt +++ b/testdata/scripts/imports.txt @@ -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 diff --git a/testdata/scripts/seed.txt b/testdata/scripts/seed.txt index 8243c37..c839414 100644 --- a/testdata/scripts/seed.txt +++ b/testdata/scripts/seed.txt @@ -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 --