本文整理汇总了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)
}
示例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)
}
示例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)
}
示例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)
}
示例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)
}
示例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)
}
示例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)
}
示例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)
}
示例9: TestAll
func TestAll(t *stdtesting.T) {
coretesting.MgoTestPackage(t)
}
示例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)
}
示例11: Test
func Test(t *testing.T) {
coretesting.MgoTestPackage(t)
}
示例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)
}
示例13: Test
func Test(t *stdtesting.T) {
if runtime.GOOS == "windows" {
t.Skip("Manual provider is not supported on windows")
}
testing.MgoTestPackage(t)
}
示例14: TestPackage
// TestPackage integrates the tests into gotest.
func TestPackage(t *stdtesting.T) {
testing.MgoTestPackage(t)
}
示例15: Test
func Test(t *stdtesting.T) {
if os.HostOS() == os.Ubuntu {
testing.MgoTestPackage(t)
}
}