github.com/openshift/installer@v1.4.17/cmd/openshift-install/integration_test.go (about)

     1  package main
     2  
     3  import (
     4  	"os"
     5  	"testing"
     6  
     7  	"github.com/rogpeppe/go-internal/testscript"
     8  )
     9  
    10  func TestMain(m *testing.M) {
    11  	os.Exit(testscript.RunMain(m, map[string]func() int{
    12  		"openshift-install": func() int {
    13  			main()
    14  			return 0
    15  		},
    16  	}))
    17  }
    18  
    19  func TestAgentIntegration(t *testing.T) {
    20  	runAllIntegrationTests(t, "testdata/agent")
    21  }
    22  
    23  func TestImageBasedIntegration(t *testing.T) {
    24  	runAllIntegrationTests(t, "testdata/imagebased")
    25  }