blob: 733b7608bf7e2a1a4097a1a93c5604939d0fb3ea [file] [log] [blame]
// Copyright 2016 The Vanadium 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 test
import (
"v.io/jiri"
"v.io/x/devtools/internal/test"
)
// madbGoTest runs Go tests for the madb project.
func madbGoTest(jirix *jiri.X, testName string, opts ...Opt) (_ *test.Result, e error) {
pkgs := []string{"madb/..."}
opts = append(opts, DefaultPkgsOpt(pkgs))
return vanadiumGoTest(jirix, testName, opts...)
}
// madbGoFormat runs Go format check for the madb project.
func madbGoFormat(jirix *jiri.X, testName string, opts ...Opt) (_ *test.Result, e error) {
pkgs := []string{"madb/..."}
opts = append(opts, DefaultPkgsOpt(pkgs))
return vanadiumGoFormat(jirix, testName, opts...)
}
// madbGoGenerate checks that files created by 'go generate' are
// up-to-date.
func madbGoGenerate(jirix *jiri.X, testName string, opts ...Opt) (_ *test.Result, e error) {
pkgs := []string{"madb/..."}
opts = append(opts, DefaultPkgsOpt(pkgs))
return vanadiumGoGenerate(jirix, testName, opts...)
}