2018-01-29 19:44:18 +00:00
|
|
|
package gexec_test
|
|
|
|
|
|
|
|
import (
|
|
|
|
. "github.com/onsi/ginkgo"
|
|
|
|
. "github.com/onsi/gomega"
|
|
|
|
"github.com/onsi/gomega/gexec"
|
|
|
|
|
|
|
|
"testing"
|
|
|
|
)
|
|
|
|
|
|
|
|
var fireflyPath string
|
|
|
|
|
|
|
|
func TestGexec(t *testing.T) {
|
|
|
|
BeforeSuite(func() {
|
|
|
|
var err error
|
|
|
|
fireflyPath, err = gexec.Build("./_fixture/firefly")
|
2018-09-05 15:36:14 +00:00
|
|
|
Expect(err).ShouldNot(HaveOccurred())
|
2018-01-29 19:44:18 +00:00
|
|
|
})
|
|
|
|
|
|
|
|
AfterSuite(func() {
|
|
|
|
gexec.CleanupBuildArtifacts()
|
|
|
|
})
|
|
|
|
|
|
|
|
RegisterFailHandler(Fail)
|
|
|
|
RunSpecs(t, "Gexec Suite")
|
|
|
|
}
|