diff --git a/testdata/scripts/literals.txt b/testdata/scripts/literals.txt index 31c871d..033a7e6 100644 --- a/testdata/scripts/literals.txt +++ b/testdata/scripts/literals.txt @@ -49,7 +49,6 @@ grep '^\s+\w+ = append\(\w+,(\s+\w+\[\d+\][\^\-+]\w+\[\d+\],?)+\)$' .obf-src/mai # XorSeed obfuscator. Detect type decFunc func(byte) decFunc grep '^\s+type \w+ func\(byte\) \w+$' .obf-src/main/extraLiterals.go - -- go.mod -- module test/main -- main.go -- diff --git a/testdata/scripts/syntax.txt b/testdata/scripts/syntax.txt index fb89642..20c5c48 100644 --- a/testdata/scripts/syntax.txt +++ b/testdata/scripts/syntax.txt @@ -1,13 +1,11 @@ env GOPRIVATE='test/main,rsc.io/*' -garble -debugdir=debug build +garble build exec ./main$exe cmp stderr main.stderr ! binsubstr main$exe 'localName' 'globalConst' 'globalVar' 'globalType' 'valuable information' 'rsc.io' -binsubstr debug/main/scopes.go 'localName' 'globalConst' - [short] stop # no need to verify this with -short go build diff --git a/testdata/scripts/tiny.txt b/testdata/scripts/tiny.txt index 44d32b2..65448a7 100644 --- a/testdata/scripts/tiny.txt +++ b/testdata/scripts/tiny.txt @@ -11,13 +11,7 @@ stderr '\? 0' # Default mode env GODEBUG= -garble -debugdir=.obf-src build - -# Check for file name leak protection -grep '^\/\/line :1$' .obf-src/main/main.go - -# Check for default line obfuscation -grep '^\/\/line \w\.go:[1-9][0-9]*$' .obf-src/main/main.go +garble build ! exec ./main$exe cmp stdout main.stdout stderr '\w\.go [1-9]' @@ -47,4 +41,4 @@ func main() { } -- main.stdout -- -ya like jazz? \ No newline at end of file +ya like jazz?