]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: add script testing facility for compiler use
authorThan McIntosh <thanm@google.com>
Fri, 26 Jul 2024 12:58:29 +0000 (12:58 +0000)
committerThan McIntosh <thanm@google.com>
Mon, 29 Jul 2024 16:13:19 +0000 (16:13 +0000)
commitaa97a012b4be393c1725c16a78b92dea81632378
tree79da288905fa7c3d60fa3af932aac6d86ed0ec38
parentf021221a584ede27c18f0e7deb90c438649d5128
cmd/compile: add script testing facility for compiler use

Add support for running script tests as part of the compiler's suite
of tests, hooking in the script test engine packages recently moved
from cmd/go to cmd/internal. These script tests will use the test
binary itself as the compile tool for Go builds, and can also run the
C compiler if needed. New script test cases (*.txt files) should be
added to the directory cmd/compile/testdata/script.

Updates #68606.

Change-Id: I9b056a07024b0a72320a89ad734e4b4a51f1c10c
Reviewed-on: https://go-review.googlesource.com/c/go/+/601361
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: David Chase <drchase@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/compile/script_test.go [new file with mode: 0644]
src/cmd/compile/testdata/script/script_test_basics.txt [new file with mode: 0644]