9 . "github.com/onsi/ginkgo/v2"
12 type TapSuite struct {
16 var tapTests = map[string][]func(s *TapSuite){}
17 var tapSoloTests = map[string][]func(s *TapSuite){}
19 func registerTapTests(tests ...func(s *TapSuite)) {
20 tapTests[getTestFilename()] = tests
22 func registerTapSoloTests(tests ...func(s *TapSuite)) {
23 tapSoloTests[getTestFilename()] = tests
26 func (s *TapSuite) SetupSuite() {
27 time.Sleep(1 * time.Second)
28 s.HstSuite.SetupSuite()
29 s.configureNetworkTopology("tap")
32 var _ = Describe("TapSuite", Ordered, ContinueOnFailure, func() {
47 for filename, tests := range tapTests {
48 for _, test := range tests {
50 pc := reflect.ValueOf(test).Pointer()
51 funcValue := runtime.FuncForPC(pc)
52 testName := filename + "/" + strings.Split(funcValue.Name(), ".")[2]
53 It(testName, func(ctx SpecContext) {
54 s.log(testName + ": BEGIN")
56 }, SpecTimeout(suiteTimeout))
61 var _ = Describe("TapSuiteSolo", Ordered, ContinueOnFailure, Serial, func() {
76 for filename, tests := range tapSoloTests {
77 for _, test := range tests {
79 pc := reflect.ValueOf(test).Pointer()
80 funcValue := runtime.FuncForPC(pc)
81 testName := filename + "/" + strings.Split(funcValue.Name(), ".")[2]
82 It(testName, Label("SOLO"), func(ctx SpecContext) {
83 s.log(testName + ": BEGIN")
85 }, SpecTimeout(suiteTimeout))