blob: 8d7e2edfd13a233d7496120100e9532ac5cc4757 [file] [log] [blame]
Filip Tehlar229f5fc2022-08-09 14:44:47 +00001package main
2
3import (
Adrian Villin681ff3a2024-06-07 06:45:48 -04004 "path/filepath"
5 "runtime"
Filip Tehlarbb98aac2022-12-21 14:40:35 +01006 "testing"
Adrian Villin93974e22024-05-30 06:10:59 -04007 "time"
Filip Tehlar229f5fc2022-08-09 14:44:47 +00008
Adrian Villincee15aa2024-03-14 11:42:55 -04009 . "github.com/onsi/ginkgo/v2"
10 . "github.com/onsi/gomega"
Filip Tehlar229f5fc2022-08-09 14:44:47 +000011)
12
Adrian Villin93974e22024-05-30 06:10:59 -040013var suiteTimeout time.Duration
14
Adrian Villin681ff3a2024-06-07 06:45:48 -040015func getTestFilename() string {
16 _, filename, _, _ := runtime.Caller(2)
17 return filepath.Base(filename)
18}
19
Adrian Villincee15aa2024-03-14 11:42:55 -040020func TestHst(t *testing.T) {
Adrian Villin93974e22024-05-30 06:10:59 -040021 if *isVppDebug {
22 // 30 minute timeout so that the framework won't timeout while debugging
23 suiteTimeout = time.Minute * 30
24 } else {
25 suiteTimeout = time.Minute * 5
26 }
Adrian Villincee15aa2024-03-14 11:42:55 -040027 RegisterFailHandler(Fail)
28 RunSpecs(t, "HST")
Maros Ondrejickac2f76f42023-02-27 13:22:45 +010029}