]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: add up-to-date test for generated files
authorDavid Chase <drchase@google.com>
Tue, 10 Jun 2025 18:15:46 +0000 (14:15 -0400)
committerDavid Chase <drchase@google.com>
Fri, 13 Jun 2025 20:03:14 +0000 (13:03 -0700)
commitb9a548775fda6a74de8ab2020b2b95b4ebf1a2a9
treefd07d960ba986b7016b9528d78f2113c8629ddce
parentca01eab9c7c9c4987a36f6887e332a1fcba757f0
cmd/compile: add up-to-date test for generated files

This runs the ssa/_gen generator writing files into
a temporary directory, and then checks that there are
no differences with what is currently in the ssa directory,
and also checks that any file with the "generated from
_gen/..." header was actually generated, and checks that
the headers on the generated file match the expected
header prefix.

Change-Id: Ic8eeb0b06cf6f2e576a013e865b331a12d3a77aa
Reviewed-on: https://go-review.googlesource.com/c/go/+/680615
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
(cherry picked from commit d4c6effaa7b95a2ea149ece4a400c0ace2773839)
Reviewed-on: https://go-review.googlesource.com/c/go/+/680975
TryBot-Bypass: David Chase <drchase@google.com>
Reviewed-by: Junyang Shao <shaojunyang@google.com>
12 files changed:
src/cmd/compile/internal/ssa/_gen/README
src/cmd/compile/internal/ssa/_gen/allocators.go
src/cmd/compile/internal/ssa/_gen/main.go
src/cmd/compile/internal/ssa/_gen/rulegen.go
src/cmd/compile/internal/ssa/_gen/vendor/golang.org/x/tools/LICENSE [new file with mode: 0644]
src/cmd/compile/internal/ssa/_gen/vendor/golang.org/x/tools/PATENTS [new file with mode: 0644]
src/cmd/compile/internal/ssa/_gen/vendor/golang.org/x/tools/go/ast/astutil/enclosing.go [new file with mode: 0644]
src/cmd/compile/internal/ssa/_gen/vendor/golang.org/x/tools/go/ast/astutil/imports.go [new file with mode: 0644]
src/cmd/compile/internal/ssa/_gen/vendor/golang.org/x/tools/go/ast/astutil/rewrite.go [new file with mode: 0644]
src/cmd/compile/internal/ssa/_gen/vendor/golang.org/x/tools/go/ast/astutil/util.go [new file with mode: 0644]
src/cmd/compile/internal/ssa/_gen/vendor/modules.txt [new file with mode: 0644]
src/cmd/compile/internal/ssa/generate_test.go [new file with mode: 0644]