blob: 13f23ea3e8fc973ab3391f0fb5151d2288872533 [file] [log] [blame]
package cmd
import (
"os"
"testing"
"github.com/rogpeppe/testscript"
)
func TestScript(t *testing.T) {
testscript.Run(t, testscript.Params{
Dir: "testdata/script",
UpdateScripts: *update,
})
}
func TestMain(m *testing.M) {
// Setting inTest causes filenames printed in error messages
// to be normalized so the output looks the same on Unix
// as Windows.
os.Exit(testscript.RunMain(m, map[string]func() int{
"cue": MainTest,
}))
}