Skip to content

Instantly share code, notes, and snippets.

@aclements
Created May 5, 2023 15:00
Show Gist options
  • Save aclements/328ab86651d2d7ea29b3c2ceb1a80859 to your computer and use it in GitHub Desktop.
Save aclements/328ab86651d2d7ea29b3c2ceb1a80859 to your computer and use it in GitHub Desktop.
Host tests on android-amd64-emu
# Modified dist/test.go to put hosttest: in the name of host tests and add -test.v
$ VM=$(gomote create android-amd64-emu)
$ gomote push $VM
$ gomote run $VM go/src/make.bash
$ gomote run $VM go/bin/go tool dist test -list | grep hosttest:
hosttest:cgo_stdio
hosttest:cgo_life
hosttest:testgodefs
hosttest:testcshared
$ gomote run $VM go/bin/go tool dist test -run=^hosttest: | grep '^--- PASS\|^#####'
# Streaming results from "austin-android-amd64-emu-0" to "/tmp/gomote2844745514/austin-android-amd64-emu-0.stdout"...
##### Test execution environment.
##### ../misc/cgo/stdio
##### ../misc/cgo/life
##### ../misc/cgo/testgodefs
--- PASS: TestGoDefs (0.64s)
##### ../misc/cgo/testcshared
--- PASS: TestCachedInstall (3.75s)
--- PASS: TestIssue36233 (0.06s)
--- PASS: TestUnexportedSymbols (0.34s)
--- PASS: TestSignalHandlers (2.08s)
--- PASS: TestSignalHandlersWithNotify (2.19s)
--- PASS: TestPIE (4.29s)
--- PASS: TestMainExportedOnAndroid (4.34s)
--- PASS: TestExportedSymbolsWithDynamicLoad (4.44s)
--- PASS: TestExportedSymbols (4.45s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment