mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-08 04:53:42 +00:00
test: support non-host tests
For example, for running tests with -target=wasm or -target=cortex-m-qemu. It looks at the output to determine whether tests were successful in the absence of a status code.
This commit is contained in:
committed by
Ron Evans
parent
1096596b69
commit
b713001313
@@ -195,6 +195,8 @@ func (m *M) Run() int {
|
||||
if failures > 0 {
|
||||
fmt.Printf("exit status %d\n", failures)
|
||||
fmt.Println("FAIL")
|
||||
} else {
|
||||
fmt.Println("PASS")
|
||||
}
|
||||
return failures
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user