[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:
Ayush Ranjan
2020-07-30 10:26:09 -07:00
committed by gVisor bot
parent 2775ecd931
commit f7281902f8
2 changed files with 6 additions and 9 deletions
+4 -7
View File
@@ -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
1 test name bug id comment
2 cgo_errors FLAKY
3 cgo_test FLAKY
4 go_test:cmd/go FLAKY
5 go_test:cmd/vendor/golang.org/x/sys/unix go_test:net b/118783622 b/162473575 /dev devices missing setsockopt: protocol not available.
go_test:net b/118784196 socket: invalid argument. Works as intended: see bug.
6 go_test:os b/118780122 we have a pollable filesystem but that's a surprise
7 go_test:os/signal b/118780860 /dev/pts not properly supported /dev/pts not properly supported. Also being tracked in b/29356795.
8 go_test:runtime b/118782341 sigtrap not reported or caught or something sigtrap not reported or caught or something. Also being tracked in b/33003106.
9 go_test:syscall b/118781998 bad bytes -- bad mem addr bad bytes -- bad mem addr; FcntlFlock(F_GETLK) not supported.
race b/118782931 thread sanitizer. Works as intended: b/62219744.
10 runtime:cpu124 b/118778254 segmentation fault
11 test:0_1 FLAKY
testasan
12 testcarchive b/118782924 no sigpipe
13 testshared FLAKY
+2 -2
View File
@@ -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...)...)