main: stuff test runner options into their own struct

Fixes #2406
This commit is contained in:
Damian Gryski
2023-03-30 18:24:18 -07:00
committed by Ron Evans
parent 698b1f19c6
commit a2f95d6b87
4 changed files with 43 additions and 36 deletions
+8 -1
View File
@@ -541,7 +541,14 @@ func (c *Config) Emulator(format, binary string) ([]string, error) {
type TestConfig struct {
CompileTestBinary bool
// TODO: Filter the test functions to run, include verbose flag, etc
CompileOnly bool
Verbose bool
Short bool
RunRegexp string
Count int
BenchRegexp string
BenchTime string
BenchMem bool
}
// filterTags removes predefined build tags for a target if a conflicting option