]> Cypherpunks repositories - gostls13.git/commit
cmd: add README generation for compiler + linker script tests
authorThan McIntosh <thanm@google.com>
Tue, 30 Jul 2024 14:20:53 +0000 (14:20 +0000)
committerThan McIntosh <thanm@google.com>
Wed, 31 Jul 2024 13:21:20 +0000 (13:21 +0000)
commit8246171baee397165318638390c37e07b5b3ebc7
treee8b680035b2347524fce388ecd916729cd107117
parentb60f88d81022e4172e44aef2f0bdade87ed6916d
cmd: add README generation for compiler + linker script tests

Add in automatic README generation and README consistency checking for
the cmd/compile and cmd/link script tests. This code is adapted from
the similar facility in cmd/go (e.g. scriptreadme_test.go); the README
helps folks writing new tests understand the mechanics.

Updates #68606.

Change-Id: I8ff7ff8e814abd4385bd670440511b2c60a4cef6
Reviewed-on: https://go-review.googlesource.com/c/go/+/601756
Reviewed-by: Cherry Mui <cherryyz@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/compile/script_test.go
src/cmd/compile/testdata/script/README [new file with mode: 0644]
src/cmd/internal/script/scripttest/readme.go [new file with mode: 0644]
src/cmd/internal/script/scripttest/run.go
src/cmd/link/script_test.go
src/cmd/link/testdata/script/README [new file with mode: 0644]