func main() { util.InitFlags() goruntime.GOMAXPROCS(goruntime.NumCPU()) if context.Provider == "" { glog.Info("The --provider flag is not set. Treating as a conformance test. Some tests may not be run.") os.Exit(1) } if *times <= 0 { glog.Error("Invalid --times (negative or no testing requested)!") os.Exit(1) } if context.Provider == "aws" { awsConfig := "[Global]\n" if cloudConfig.Zone == "" { glog.Error("gce_zone must be specified for AWS") os.Exit(1) } awsConfig += fmt.Sprintf("Zone=%s\n", cloudConfig.Zone) var err error cloudConfig.Provider, err = cloudprovider.GetCloudProvider(context.Provider, strings.NewReader(awsConfig)) if err != nil { glog.Error("Error building AWS provider: ", err) os.Exit(1) } } e2e.RunE2ETests(context, *orderseed, *times, *reportDir, testList) }
func main() { util.InitFlags() goruntime.GOMAXPROCS(goruntime.NumCPU()) if *provider == "" { glog.Error("e2e needs the have the --provider flag set") os.Exit(1) } if *times <= 0 { glog.Error("Invalid --times (negative or no testing requested)!") os.Exit(1) } e2e.RunE2ETests(*authConfig, *certDir, *host, *repoRoot, *provider, *orderseed, *times, testList) }
func main() { util.InitFlags() goruntime.GOMAXPROCS(goruntime.NumCPU()) if *provider == "" { glog.Info("The --provider flag is not set. Treating as a conformance test. Some tests may not be run.") os.Exit(1) } if *times <= 0 { glog.Error("Invalid --times (negative or no testing requested)!") os.Exit(1) } gceConfig := &e2e.GCEConfig{ ProjectID: *gceProject, Zone: *gceZone, MasterName: *masterName, } e2e.RunE2ETests(*kubeConfig, *authConfig, *certDir, *host, *repoRoot, *provider, gceConfig, *orderseed, *times, *reportDir, testList) }