]> Cypherpunks repositories - gostls13.git/commit
internal/trace/internal/testgen: force trace version selection
authorMichael Anthony Knyszek <mknyszek@google.com>
Fri, 24 Jan 2025 21:04:01 +0000 (21:04 +0000)
committerGopher Robot <gobot@golang.org>
Mon, 10 Feb 2025 20:14:47 +0000 (12:14 -0800)
commit9faa00af74206dfc26c3d38cd56590abc4b2b960
tree681e9178e596e94ac6c95dac41a5cdc3b04cdcad
parent715754ba86665b860c7245759149f1e86c24ee8d
internal/trace/internal/testgen: force trace version selection

Currently testgen only generates Go 1.22 tests. Allow generating tests
for different versions, especially now that we've tightened up which
events can be emitted by different versions.

Change-Id: Ia64309c6934f34eace03b3229d05fca5acfc7366
Reviewed-on: https://go-review.googlesource.com/c/go/+/644220
Reviewed-by: Michael Pratt <mpratt@google.com>
Auto-Submit: Michael Knyszek <mknyszek@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
18 files changed:
src/internal/trace/internal/testgen/trace.go
src/internal/trace/testdata/generators/go122-confuse-seq-across-generations.go
src/internal/trace/testdata/generators/go122-create-syscall-reuse-thread-id.go
src/internal/trace/testdata/generators/go122-create-syscall-with-p.go
src/internal/trace/testdata/generators/go122-fail-first-gen-first.go
src/internal/trace/testdata/generators/go122-go-create-without-running-g.go
src/internal/trace/testdata/generators/go122-syscall-steal-proc-ambiguous.go
src/internal/trace/testdata/generators/go122-syscall-steal-proc-gen-boundary-bare-m.go
src/internal/trace/testdata/generators/go122-syscall-steal-proc-gen-boundary-reacquire-new-proc-bare-m.go
src/internal/trace/testdata/generators/go122-syscall-steal-proc-gen-boundary-reacquire-new-proc.go
src/internal/trace/testdata/generators/go122-syscall-steal-proc-gen-boundary.go
src/internal/trace/testdata/generators/go122-syscall-steal-proc-reacquire-new-proc-bare-m.go
src/internal/trace/testdata/generators/go122-syscall-steal-proc-reacquire-new-proc.go
src/internal/trace/testdata/generators/go122-syscall-steal-proc-self.go
src/internal/trace/testdata/generators/go122-syscall-steal-proc-simple-bare-m.go
src/internal/trace/testdata/generators/go122-syscall-steal-proc-simple.go
src/internal/trace/testdata/generators/go122-syscall-steal-proc-sitting-in-syscall.go
src/internal/trace/testdata/generators/go122-task-across-generations.go