mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-10 15:20:56 +00:00
27 lines
436 B
Go
27 lines
436 B
Go
|
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")
|
||
|
Ω(err).ShouldNot(HaveOccurred())
|
||
|
})
|
||
|
|
||
|
AfterSuite(func() {
|
||
|
gexec.CleanupBuildArtifacts()
|
||
|
})
|
||
|
|
||
|
RegisterFailHandler(Fail)
|
||
|
RunSpecs(t, "Gexec Suite")
|
||
|
}
|