From 0d8aa5737ecdc03b2723a2af35cb7394335e5411 Mon Sep 17 00:00:00 2001 From: Than McIntosh Date: Thu, 25 Jul 2024 17:15:35 +0000 Subject: cmd/internal/script/scriptest: add new apis for tool test use Add top level apis to provide a general-purpose "script test" runner for clients within cmd, e.g. tools such as compile, link, nm, and so on. This patch doesn't add any uses of the new apis, this will happen in follow-on CLs. Updates #68606. Change-Id: Ib7200a75d4dc7dc50897628f1a6269937be15a76 Reviewed-on: https://go-review.googlesource.com/c/go/+/601359 Reviewed-by: David Chase LUCI-TryBot-Result: Go LUCI Reviewed-by: Cherry Mui --- src/cmd/internal/script/scripttest/doc.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/cmd/internal/script/scripttest/doc.go (limited to 'src/cmd/internal/script/scripttest/doc.go') diff --git a/src/cmd/internal/script/scripttest/doc.go b/src/cmd/internal/script/scripttest/doc.go new file mode 100644 index 0000000000..0ad6d69639 --- /dev/null +++ b/src/cmd/internal/script/scripttest/doc.go @@ -0,0 +1,17 @@ +// Copyright 2022 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package scripttest adapts the script engine for use in tests. +package scripttest + +// This package provides APIs for executing "script" tests; this +// way of writing Go tests originated with the Go command, and has +// since been generalized to work with other commands, such as the +// compiler, linker, and other tools. +// +// The top level entry point for this package is "Test", which +// accepts a previously configured script engine and pattern (typically +// by convention this will be "testdata/script/*.txt") +// then kicks off the engine on each file that matches the +// pattern. -- cgit v1.3