github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/pkg/acceptance/test_main.go (about) 1 // Copyright 2016 The Cockroach Authors. 2 // 3 // Use of this software is governed by the Business Source License 4 // included in the file licenses/BSL.txt. 5 // 6 // As of the Change Date specified in that file, in accordance with 7 // the Business Source License, use of this software will be governed 8 // by the Apache License, Version 2.0, included in the file 9 // licenses/APL.txt. 10 11 // +build !acceptance 12 13 // Our Docker-based acceptance tests are comparatively slow to run, so we use 14 // the above build tag to separate invocations of `go test` which are intended 15 // to run the acceptance tests from those which are not. The corollary file to 16 // this one is main_test.go. Acceptance tests against remote clusters (which 17 // aren't run unless `-remote` is passed explicitly) are run through this file 18 // via the standard facilities (i.e. `make test` and without `acceptance` build 19 // tag). 20 21 package acceptance 22 23 import ( 24 "fmt" 25 "os" 26 "testing" 27 ) 28 29 // MainTest is an exported implementation of TestMain for use by other 30 // packages. 31 func MainTest(m *testing.M) { 32 fmt.Fprintln(os.Stderr, "not running with `acceptance` build tag; skipping") 33 }