当前位置: 首页>>代码示例>>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;未经允许,请勿转载。