| 1 | // Copyright 2018 The Go Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style |
| 3 | // license that can be found in the LICENSE file. |
| 4 | |
| 5 | package main |
| 6 | |
| 7 | import ( |
| 8 | "testing" |
| 9 | |
| 10 | "github.com/rogpeppe/go-internal/testscript" |
| 11 | ) |
| 12 | |
| 13 | func TestMain(m *testing.M) { |
| 14 | testscript.Main(m, map[string]func(){ |
| 15 | "txtar-c": main, |
| 16 | }) |
| 17 | } |
| 18 | |
| 19 | func TestScripts(t *testing.T) { |
| 20 | testscript.Run(t, testscript.Params{ |
| 21 | Dir: "testdata", |
| 22 | }) |
| 23 | } |