func TestJoyent(t *testing.T) { if *live { registerLiveTests() } registerLocalTests() gc.TestingT(t) }
func Test(t *testing.T) { gocheck.TestingT(t) if suitesRun != suitesRunExpected && flag.Lookup("gocheck.f").Value.String() == "" { critical(fmt.Sprintf("Expected %d suites to run rather than %d", suitesRunExpected, suitesRun)) } }
func Test(t *testing.T) { // Prevent any use of ssh for storage. *manual.NewSSHStorage = func(sshHost, storageDir, storageTmpdir string) (storage.Storage, error) { return nil, nil } gc.TestingT(t) }
// MgoTestPackage should be called to register the tests for any package // that requires a MongoDB server. If certs is non-nil, a secure SSL connection // will be used from client to server. func MgoTestPackage(t *testing.T, certs *Certs) { if err := MgoServer.Start(certs); err != nil { t.Fatal(err) } defer MgoServer.Destroy() gc.TestingT(t) }
func TestEC2(t *testing.T) { if *amazon { registerAmazonTests() } registerLocalTests() gc.TestingT(t) }
func MgoTestPackageSsl(t *stdtesting.T, ssl bool) { if err := MgoServer.Start(ssl); err != nil { t.Fatal(err) } defer MgoServer.Destroy() gc.TestingT(t) }
func Test(t *testing.T) { creds, err := jpc.CompleteCredentialsFromEnv(*keyName) if err != nil { t.Fatalf("Error setting up test suite: %v", err) } gc.Suite(&ClientSuite{creds: creds}) gc.TestingT(t) }
func Test(t *testing.T) { if *live { creds, err := jpc.CompleteCredentialsFromEnv(*keyName) if err != nil { t.Fatalf("Error setting up test suite: %s", err.Error()) } registerJoyentCloudTests(creds) } registerLocalTests(*keyName) gc.TestingT(t) }
func Test(t *testing.T) { if *live { cred, err := identity.CompleteCredentialsFromEnv() if err != nil { t.Fatalf("Error setting up test suite: %s", err.Error()) } registerLiveTests(cred) } registerLocalTests() gc.TestingT(t) }
func Test(t *testing.T) { if *live { if *vendor == "" { t.Fatal("missing vendor") } var ok bool var testData liveTestData if testData, ok = liveUrls[*vendor]; !ok { keys := reflect.ValueOf(liveUrls).MapKeys() t.Fatalf("Unknown vendor %s. Must be one of %s", *vendor, keys) } registerLiveSimpleStreamsTests(testData.baseURL, imagemetadata.NewImageConstraint(simplestreams.LookupParams{ CloudSpec: testData.validCloudSpec, Series: []string{"quantal"}, Arches: []string{"amd64"}, }), testData.requireSigned) } registerSimpleStreamsTests() gc.TestingT(t) }
func Test(t *testing.T) { // check environment variables if os.Getenv("LIVE") != "" { var err error *live, err = strconv.ParseBool(os.Getenv("LIVE")) if err != nil { t.Fatal(err) } } if os.Getenv("KEY_NAME") != "" { *keyName = os.Getenv("KEY_NAME") } if *live { creds, err := jpc.CompleteCredentialsFromEnv(*keyName) if err != nil { t.Fatalf("Error setting up test suite: %s", err.Error()) } registerJoyentCloudTests(creds) } registerLocalTests(*keyName) gc.TestingT(t) }
func TestAzureProvider(t *stdtesting.T) { gc.TestingT(t) }
//Hookup gocheck with go test func Test(t *testing.T) { chk.TestingT(t) }
func TestSetting(t *testing.T) { C.TestingT(t) }
func Test(t *testing.T) { gocheck.TestingT(t) }
func Test(t *stdtesting.T) { gc.TestingT(t) }
func Test(t *testing.T) { C.TestingT(t) }
func TestAll(t *testing.T) { gc.TestingT(t) }
// Hook up gocheck into the gotest runner. func Test(t *testing.T) { test.TestingT(t) }
func TestMAAS(t *stdtesting.T) { gc.TestingT(t) }
func Test(t *testing.T) { registerSimpleStreamsTests() gc.Suite(&signingSuite{}) gc.Suite(&jsonSuite{}) gc.TestingT(t) }
// Package-level test setup. func TestPackage(t *testing.T) { gocheck.TestingT(t) }
func Test(t *testing.T) { setupToolsTests() setupSimpleStreamsTests(t) gc.TestingT(t) }
func TestJoyent(t *testing.T) { registerLocalTests() gc.TestingT(t) }
func TestWithGocheck(t *testing.T) { gocheck.TestingT(t) }
func TestUtils(t *testing.T) { C.TestingT(t) }
func TestPackage(t *stdtesting.T) { gc.TestingT(t) }
func TestLocal(t *stdtesting.T) { gc.TestingT(t) }
func Test(t *testing.T) { gc.TestingT(t) }
// Our test suite func TestGoCheckInit(t *testing.T) { gocheck.TestingT(t) }