get.porter.sh/porter@v1.3.0/tests/smoke/main_test.go (about)

     1  //go:build smoke
     2  
     3  package smoke
     4  
     5  import (
     6  	"testing"
     7  
     8  	"get.porter.sh/porter/tests/tester"
     9  	"github.com/stretchr/testify/require"
    10  )
    11  
    12  // Make sure the porter binary that we are using is okay
    13  func TestPorterBinary(t *testing.T) {
    14  	test, err := tester.NewTest(t)
    15  	defer test.Close()
    16  	require.NoError(t, err)
    17  
    18  	test.RequirePorter("help")
    19  	test.RequirePorter("version")
    20  }