]> 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>
Wed, 11 Jun 2025 17:11:53 +0000 (10:11 -0700)
commitd4c6effaa7b95a2ea149ece4a400c0ace2773839
tree5c308f22df3c12ab052387af1b5b22e0db8384cb
parent7fa2c736b3dbcc741b4575f4df758532aaee34f7
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>
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]