diff --git a/README.rst b/README.rst index d2d0a6b..79aeec2 100644 --- a/README.rst +++ b/README.rst @@ -6,3 +6,11 @@ Go-Inspector - then change it to executable ```chmod u+x src/go_inspector/bin/GoReSym_lin``` - Install requirements and dependencies using ```make dev``` - Use ```scancode --json-pp - --go-symbol --verbose``` to get debug symbols. + + +How to generate test binaries +============================ + +- Run `go tool dist list` to get all possible pairs of OSes and arches to compile the binary. +- Then use a OS/arch pair like this ``GOOS= GOARCH= go build -o ./tests/data/app_exe ./tests/data/main.go`` + to get compiled binary. diff --git a/tests/data/main.go b/tests/data/main.go new file mode 100644 index 0000000..8da69cc --- /dev/null +++ b/tests/data/main.go @@ -0,0 +1,11 @@ +package main + +import ( + "fmt" + "path/filepath" +) + +func main() { + s := filepath.Join("a", "b", "c") + fmt.Println(s) +}