當前位置: 首頁>>代碼示例>>Golang>>正文


Golang testing.MgoTestPackage函數代碼示例

本文整理匯總了Golang中github.com/juju/juju/testing.MgoTestPackage函數的典型用法代碼示例。如果您正苦於以下問題:Golang MgoTestPackage函數的具體用法?Golang MgoTestPackage怎麽用?Golang MgoTestPackage使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了MgoTestPackage函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。

示例1: TestAll

func TestAll(t *testing.T) {
	// TODO(bogdanteleaga): Fix these tests on windows
	if runtime.GOOS == "windows" {
		t.Skip("bug 1403084: Skipping this on windows for now")
	}
	coretesting.MgoTestPackage(t)
}
開發者ID:bac,項目名稱:juju,代碼行數:7,代碼來源:package_test.go

示例2: TestPackage

func TestPackage(t *stdtesting.T) {
	//TODO(bogdanteleaga): Fix this on windows
	if runtime.GOOS == "windows" {
		t.Skip("bug 1403084: Currently does not work under windows")
	}
	coretesting.MgoTestPackage(t)
}
開發者ID:Pankov404,項目名稱:juju,代碼行數:7,代碼來源:deployer_test.go

示例3: TestPackage

func TestPackage(t *stdtesting.T) {
	if testing.RaceEnabled {
		t.Skip("skipping package under -race, see LP 1519133, 1519097")
	}
	// TODO(waigani) 2014-03-19 bug 1294458
	// Refactor to use base suites
	coretesting.MgoTestPackage(t)
}
開發者ID:imoapps,項目名稱:juju,代碼行數:8,代碼來源:package_test.go

示例4: TestPackage

func TestPackage(t *stdtesting.T) {
	if runtime.GOARCH == "386" {
		t.Skipf("skipping package for %v/%v, see http://pad.lv/1425569", runtime.GOOS, runtime.GOARCH)
	}
	if gittesting.RaceEnabled {
		t.Skip("skipping test in -race mode, see LP 1518810")
	}
	testing.MgoTestPackage(t)
}
開發者ID:imoapps,項目名稱:juju,代碼行數:9,代碼來源:package_test.go

示例5: TestPackage

func TestPackage(t *testing.T) {
	// At this stage, Juju only supports running the apiservers and database
	// on Ubuntu. If we end up officially supporting CentOS, then we should
	// make sure we run the tests there.
	if os.HostOS() != os.Ubuntu {
		t.Skipf("skipping tests on %v", os.HostOS())
	}
	coretesting.MgoTestPackage(t)
}
開發者ID:bac,項目名稱:juju,代碼行數:9,代碼來源:package_test.go

示例6: TestPackage

func TestPackage(t *stdtesting.T) {
	// TODO(waigani) 2014-03-19 bug 1294458
	// Refactor to use base suites

	// Create a CA certificate available for all tests.
	caCertFile = mktemp("juju-test-cert", coretesting.CACert)
	defer os.Remove(caCertFile)

	coretesting.MgoTestPackage(t)
}
開發者ID:exekias,項目名稱:juju,代碼行數:10,代碼來源:main_test.go

示例7: TestPackage

func TestPackage(t *stdtesting.T) {
	// TODO(waigani) 2014-03-19 bug 1294458
	// Refactor to use base suites

	// Change the path to "juju-run", so that the
	// tests don't try to write to /usr/local/bin.
	agentcmd.JujuRun = mktemp("juju-run", "")
	defer os.Remove(agentcmd.JujuRun)

	// Create a CA certificate available for all tests.
	caCertFile = mktemp("juju-test-cert", coretesting.CACert)
	defer os.Remove(caCertFile)

	coretesting.MgoTestPackage(t)
}
開發者ID:Pankov404,項目名稱:juju,代碼行數:15,代碼來源:main_test.go

示例8: TestPackage

func TestPackage(t *stdtesting.T) {
	// Change the default init dir in worker/deployer,
	// so the deployer doesn't try to remove upstart
	// jobs from tests.
	restore := testing.PatchValue(&deployer.InitDir, mkdtemp("juju-worker-deployer"))
	defer restore()

	// TODO(waigani) 2014-03-19 bug 1294458
	// Refactor to use base suites

	// Change the path to "juju-run", so that the
	// tests don't try to write to /usr/local/bin.
	jujuRun = mktemp("juju-run", "")
	defer os.Remove(jujuRun)

	// Create a CA certificate available for all tests.
	caCertFile = mktemp("juju-test-cert", coretesting.CACert)
	defer os.Remove(caCertFile)

	coretesting.MgoTestPackage(t)
}
開發者ID:zhouqt,項目名稱:juju,代碼行數:21,代碼來源:main_test.go

示例9: TestAll

func TestAll(t *stdtesting.T) {
	coretesting.MgoTestPackage(t)
}
開發者ID:vonwenm,項目名稱:juju,代碼行數:3,代碼來源:api_test.go

示例10: TestPackage

func TestPackage(t *stdtesting.T) {
	// TODO(fwereade) 2014-03-21 not-worth-a-bug-number
	// rewrite BundlesDir tests to use the mocks below and not require an API
	// server and associated gubbins.
	coretesting.MgoTestPackage(t)
}
開發者ID:jiasir,項目名稱:juju,代碼行數:6,代碼來源:charm_test.go

示例11: Test

func Test(t *testing.T) {
	coretesting.MgoTestPackage(t)
}
開發者ID:howbazaar,項目名稱:juju,代碼行數:3,代碼來源:package_test.go

示例12: TestPackage

func TestPackage(t *stdtesting.T) {
	if runtime.GOARCH == "386" {
		t.Skipf("skipping package for %v/%v, see http://pad.lv/1425569", runtime.GOOS, runtime.GOARCH)
	}
	testing.MgoTestPackage(t)
}
開發者ID:bac,項目名稱:juju,代碼行數:6,代碼來源:package_test.go

示例13: Test

func Test(t *stdtesting.T) {
	if runtime.GOOS == "windows" {
		t.Skip("Manual provider is not supported on windows")
	}
	testing.MgoTestPackage(t)
}
開發者ID:howbazaar,項目名稱:juju,代碼行數:6,代碼來源:suite_test.go

示例14: TestPackage

// TestPackage integrates the tests into gotest.
func TestPackage(t *stdtesting.T) {
	testing.MgoTestPackage(t)
}
開發者ID:jiasir,項目名稱:juju,代碼行數:4,代碼來源:conn_test.go

示例15: Test

func Test(t *stdtesting.T) {
	if os.HostOS() == os.Ubuntu {
		testing.MgoTestPackage(t)
	}
}
開發者ID:bac,項目名稱:juju,代碼行數:5,代碼來源:package_test.go


注:本文中的github.com/juju/juju/testing.MgoTestPackage函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。