You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
garble/testdata/scripts
Daniel Martí d8e5351175 fix test flake in reverse.txt
Just ran into this failure while fixing a different bug:

	> ! grep 'ExportedLib(Type|Field)|unexportedMainFunc|test/main|main\.go|lib\.go' main.stderr
	[main.stderr]
	lib filename: A4Spnz0u.go

	goroutine 1 [running]:
	runtime/debug.Stack(...)
		runtime/debug/stack.go:24 +0x??
	kso0S_A6.at6JKzwa(...)
		p8_ovZPW.go:1 +0x??
	kso0S_A6.(*JKArRn6w).ExportedLibMethod(...)
		h4JncykI.go:1 +0x??
	main.cQXA3D6d.func1(...)
		FaQ2WcAJ.go:1
	main.cQXA3D6d(...)
		T7Ztgy1Q.go:1 +0x??
	main.main(...)
		OHzKYhm3.go:1 +0x??

	main filename: Myi8glib.go

	FAIL: testdata/scripts/reverse.txt:16: unexpected match for `ExportedLib(Type|Field)|unexportedMainFunc|test/main|main\.go|lib\.go` found in main.stderr: lib.go

Note that "main.go" ended up obfuscated as "Myi8glib.go",
which just so happens to match against "lib.go".

Use longer filenames, so that the chances of collisions are near-zero.
4 years ago
..
asm.txt CI: test on GOARCH=386 4 years ago
basic.txt fix binsubstr calls to not prepare for a regexp 4 years ago
cgo.txt CI: test on GOARCH=386 4 years ago
crossbuild.txt only list missing packages when obfuscating the runtime 4 years ago
debugdir.txt avoid build ID mismatches when using -debugdir 4 years ago
embed.txt deprecate using GOPRIVATE in favor of GOGARBLE (#427) 4 years ago
gogarble.txt only list missing packages when obfuscating the runtime 4 years ago
goversion.txt drop support for Go 1.16.x 4 years ago
help.txt give a useful error for "garble build -tiny" 4 years ago
implement.txt deprecate using GOPRIVATE in favor of GOGARBLE (#427) 4 years ago
imports.txt deprecate using GOPRIVATE in favor of GOGARBLE (#427) 4 years ago
init.txt drop support for Go 1.16.x 4 years ago
ldflags.txt deprecate using GOPRIVATE in favor of GOGARBLE (#427) 4 years ago
linkname.txt deprecate using GOPRIVATE in favor of GOGARBLE (#427) 4 years ago
literals.txt ensure the runtime is built in a reproducible way 4 years ago
modinfo.txt testdata: adjust for newer Go 1.18 tip version 4 years ago
plugin.txt deprecate using GOPRIVATE in favor of GOGARBLE (#427) 4 years ago
position.txt deprecate using GOPRIVATE in favor of GOGARBLE (#427) 4 years ago
reflect.txt deprecate using GOPRIVATE in favor of GOGARBLE (#427) 4 years ago
reverse.txt fix test flake in reverse.txt 4 years ago
seed.txt deprecate using GOPRIVATE in favor of GOGARBLE (#427) 4 years ago
syntax.txt testdata: ensure go:noinline works via runtime.Callers 4 years ago
test.txt drop support for Go 1.16.x 4 years ago
tiny.txt deprecate using GOPRIVATE in favor of GOGARBLE (#427) 4 years ago