コード例 #1
0
func init() {
	var shutdownDone chan bool

	Given(`^Some tests to run$`, func() {
	})

	Then(`^The test process and supporting containers are started before and stopped after$`, func() {
	})

	GlobalContext.BeforeAll(func() {
		log.Info("starting test containers")
		shutdownDone = runutils.RunVaultAndRoll()
		//TODO - need to signal when the container is ready... for now sleep...
		time.Sleep(1 * time.Second)
	})

	GlobalContext.AfterAll(func() {
		log.Info("stop and remove test containers")
		syscall.Kill(syscall.Getpid(), syscall.SIGINT)
		<-shutdownDone
		//Send signal
	})

}
コード例 #2
0
ファイル: runroll.go プロジェクト: xtraclabs/roll
func main() {
	shutdownDone := runutils.RunVaultAndRoll()
	<-shutdownDone
}