blob: 4523fb10cbf47307b7870659e6416d069c3aecfc [file] [log] [blame]
package basics
import (
"flag"
"os"
"testing"
"cuelang.org/go/cmd/cue/cmd"
"github.com/rogpeppe/testscript"
)
var update = flag.Bool("update", false, "update the test files")
func TestScript(t *testing.T) {
testscript.Run(t, testscript.Params{
Dir: "",
UpdateScripts: *update,
})
}
func TestMain(m *testing.M) {
os.Exit(testscript.RunMain(m, map[string]func() int{
"cue": cmd.Main,
}))
}