]> Cypherpunks repositories - gostls13.git/commit
runtime: move test programs out of source code, coalesce
authorRuss Cox <rsc@golang.org>
Mon, 21 Dec 2015 15:29:21 +0000 (10:29 -0500)
committerRuss Cox <rsc@golang.org>
Tue, 29 Dec 2015 21:16:59 +0000 (21:16 +0000)
commit8d5ff2e182c52c4fa6af18e536dcef6e12ad8cb2
tree5f5d3338d27a14b5e98af29ccb89d1a390ced3ea
parenta69932051266a817d950996c79927541ebdd26bb
runtime: move test programs out of source code, coalesce

Now there are just three programs to compile instead of many,
and repeated tests can reuse the compilation result instead of
rebuilding it.

Combined, these changes reduce the time spent testing runtime
during all.bash on my laptop from about 60 to about 30 seconds.
(All.bash itself runs in 5½ minutes.)

For #10571.

Change-Id: Ie2c1798b847f1a635a860d11dcdab14375319ae9
Reviewed-on: https://go-review.googlesource.com/18085
Reviewed-by: Austin Clements <austin@google.com>
Run-TryBot: Austin Clements <austin@google.com>
24 files changed:
src/runtime/crash_cgo_test.go
src/runtime/crash_test.go
src/runtime/gc_test.go
src/runtime/proc_test.go
src/runtime/string_test.go
src/runtime/syscall_windows_test.go
src/runtime/testdata/testprog/crash.go [new file with mode: 0644]
src/runtime/testdata/testprog/deadlock.go [new file with mode: 0644]
src/runtime/testdata/testprog/gc.go [new file with mode: 0644]
src/runtime/testdata/testprog/main.go [new file with mode: 0644]
src/runtime/testdata/testprog/stringconcat.go [new file with mode: 0644]
src/runtime/testdata/testprog/syscall_windows.go [new file with mode: 0644]
src/runtime/testdata/testprogcgo/callback.go [new file with mode: 0644]
src/runtime/testdata/testprogcgo/cgo.go [new file with mode: 0644]
src/runtime/testdata/testprogcgo/crash.go [new file with mode: 0644]
src/runtime/testdata/testprogcgo/dll_windows.go [new file with mode: 0644]
src/runtime/testdata/testprogcgo/main.go [new file with mode: 0644]
src/runtime/testdata/testprogcgo/threadpanic.go [new file with mode: 0644]
src/runtime/testdata/testprogcgo/threadpanic_unix.c [new file with mode: 0644]
src/runtime/testdata/testprogcgo/threadpanic_windows.c [new file with mode: 0644]
src/runtime/testdata/testprogcgo/threadprof.go [new file with mode: 0644]
src/runtime/testdata/testprogcgo/windows/win.go [new file with mode: 0644]
src/runtime/testdata/testprognet/main.go [new file with mode: 0644]
src/runtime/testdata/testprognet/net.go [new file with mode: 0644]