mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
[runtime tests] go language test enhancement
- Unexported some passing tests. This will increase the testing surface and will be especially helpful when this is enabled for vfs2. - Run tool tests with -v (verbose output). We only print the output when a test fails so this should not clutter the output. - Run tool tests with "-no-rebuild" flag. - Surround test name with appropriate regex, i.e. ^testname$. This will ensure that only that test is run. Earlier running go_test:os would also run go_test:os/exec, go_test:os/signal, go_test:os/user. This should help speed up the tests as we do not run the same test multiple times anymore. - Updated bugs. Updates #3191 PiperOrigin-RevId: 324028878
This commit is contained in:
@@ -2,15 +2,12 @@ test name,bug id,comment
|
||||
cgo_errors,,FLAKY
|
||||
cgo_test,,FLAKY
|
||||
go_test:cmd/go,,FLAKY
|
||||
go_test:cmd/vendor/golang.org/x/sys/unix,b/118783622,/dev devices missing
|
||||
go_test:net,b/118784196,socket: invalid argument. Works as intended: see bug.
|
||||
go_test:net,b/162473575,setsockopt: protocol not available.
|
||||
go_test:os,b/118780122,we have a pollable filesystem but that's a surprise
|
||||
go_test:os/signal,b/118780860,/dev/pts not properly supported
|
||||
go_test:runtime,b/118782341,sigtrap not reported or caught or something
|
||||
go_test:syscall,b/118781998,bad bytes -- bad mem addr
|
||||
race,b/118782931,thread sanitizer. Works as intended: b/62219744.
|
||||
go_test:os/signal,b/118780860,/dev/pts not properly supported. Also being tracked in b/29356795.
|
||||
go_test:runtime,b/118782341,sigtrap not reported or caught or something. Also being tracked in b/33003106.
|
||||
go_test:syscall,b/118781998,bad bytes -- bad mem addr; FcntlFlock(F_GETLK) not supported.
|
||||
runtime:cpu124,b/118778254,segmentation fault
|
||||
test:0_1,,FLAKY
|
||||
testasan,,
|
||||
testcarchive,b/118782924,no sigpipe
|
||||
testshared,,FLAKY
|
||||
|
||||
|
@@ -81,13 +81,13 @@ func (goRunner) TestCmds(tests []string) []*exec.Cmd {
|
||||
if strings.HasSuffix(test, ".go") {
|
||||
onDiskTests = append(onDiskTests, test)
|
||||
} else {
|
||||
toolTests = append(toolTests, test)
|
||||
toolTests = append(toolTests, "^"+test+"$")
|
||||
}
|
||||
}
|
||||
|
||||
var cmds []*exec.Cmd
|
||||
if len(toolTests) > 0 {
|
||||
cmds = append(cmds, exec.Command("go", "tool", "dist", "test", "-run", strings.Join(toolTests, "\\|")))
|
||||
cmds = append(cmds, exec.Command("go", "tool", "dist", "test", "-v", "-no-rebuild", "-run", strings.Join(toolTests, "\\|")))
|
||||
}
|
||||
if len(onDiskTests) > 0 {
|
||||
cmd := exec.Command("go", append([]string{"run", "run.go", "-v", "--"}, onDiskTests...)...)
|
||||
|
||||
Reference in New Issue
Block a user