test: add -short flag that only tests on the host

This commit is contained in:
Ayke van Laethem
2019-02-05 01:04:41 +01:00
committed by Ron Evans
parent d63ce0646c
commit a789108926
+4
View File
@@ -49,6 +49,10 @@ func TestCompiler(t *testing.T) {
})
}
if testing.Short() {
return
}
t.Log("running tests on the qemu target...")
for _, path := range matches {
t.Run(path, func(t *testing.T) {