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/script
Daniel Martí da5ddfa45d avoid go:linkname warnings when building on tip
Packages like os and sync have started using go:linknames pointing to
packages outside their dependency tree, much like runtime already did.
This started causing warnings to be printed while obfuscsating std:

    > exec garble build -o=out_rebuild ./stdimporter
    [stderr]
    # sync
    //go:linkname refers to syscall.hasWaitingReaders - add `import _ "syscall"` for garble to find the package
    # os
    //go:linkname refers to net.newUnixFile - add `import _ "net"` for garble to find the package
    > bincmp out_rebuild out
    PASS

Relax the restriction in listPackage so that any package in std
is now allowed to list packages in runtimeLinknamed,
which makes the warnings and any potential problems go away.
Also make these std test cases check that no warnings are printed,
since I only happened to notice this problem by chance.
2 years ago
..
asm.txtar set testscript's RequireExplicitExec and RequireUniqueNames 2 years ago
atomic.txtar set testscript's RequireExplicitExec and RequireUniqueNames 2 years ago
basic.txtar set testscript's RequireExplicitExec and RequireUniqueNames 2 years ago
cache.txtar replace our caching inside GOCACHE with GARBLE_CACHE 2 years ago
cgo.txtar set testscript's RequireExplicitExec and RequireUniqueNames 2 years ago
crossbuild.txtar set testscript's RequireExplicitExec and RequireUniqueNames 2 years ago
debugdir.txtar set testscript's RequireExplicitExec and RequireUniqueNames 2 years ago
embed.txtar set testscript's RequireExplicitExec and RequireUniqueNames 2 years ago
goenv.txtar drop support for Go 1.19 2 years ago
gogarble.txtar avoid go:linkname warnings when building on tip 2 years ago
goversion.txtar suggest a command when asking the user to rebuild garble 2 years ago
help.txtar adapt to tip's error message change from "GOROOT" to "std" 2 years ago
implement.txtar set testscript's RequireExplicitExec and RequireUniqueNames 2 years ago
imports.txtar use go:build in script/imports.txtar 2 years ago
init.txtar set testscript's RequireExplicitExec and RequireUniqueNames 2 years ago
ldflags.txtar set testscript's RequireExplicitExec and RequireUniqueNames 2 years ago
linker.txtar set testscript's RequireExplicitExec and RequireUniqueNames 2 years ago
linkname.txtar set testscript's RequireExplicitExec and RequireUniqueNames 2 years ago
list_error.txtar adapt to tip's error message change from "GOROOT" to "std" 2 years ago
literals.txtar set testscript's RequireExplicitExec and RequireUniqueNames 2 years ago
modinfo.txtar set testscript's RequireExplicitExec and RequireUniqueNames 2 years ago
plugin.txtar set testscript's RequireExplicitExec and RequireUniqueNames 2 years ago
position.txtar set testscript's RequireExplicitExec and RequireUniqueNames 2 years ago
reflect.txtar rework reflection detection with ssa (#732) 2 years ago
reverse.txtar set testscript's RequireExplicitExec and RequireUniqueNames 2 years ago
run.txtar set testscript's RequireExplicitExec and RequireUniqueNames 2 years ago
seed-cache.txtar set testscript's RequireExplicitExec and RequireUniqueNames 2 years ago
seed.txtar set testscript's RequireExplicitExec and RequireUniqueNames 2 years ago
syntax.txtar set testscript's RequireExplicitExec and RequireUniqueNames 2 years ago
test.txtar set testscript's RequireExplicitExec and RequireUniqueNames 2 years ago
tiny.txtar set testscript's RequireExplicitExec and RequireUniqueNames 2 years ago
typeparams.txtar set testscript's RequireExplicitExec and RequireUniqueNames 2 years ago