hs-test: separate infra from tests

- most functions and vars now start with a capital letter:
  needed to access them outside the package that declares
  them
- updated README.md
- very minor changes in MAKEFILE

Type: test

Change-Id: I4b5a194f08f09d59e372e57da6451fbb5a1de4da
Signed-off-by: Adrian Villin <avillin@cisco.com>
This commit is contained in:
Adrian Villin
2024-06-14 09:32:39 +02:00
committed by Dave Wallace
parent 2aa0f0da5d
commit 4677d920c0
24 changed files with 1177 additions and 1177 deletions

View File

@ -8,23 +8,22 @@ import (
"testing"
"time"
. "fd.io/hs-test/infra"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)
var suiteTimeout time.Duration
func getTestFilename() string {
_, filename, _, _ := runtime.Caller(2)
return filepath.Base(filename)
}
func TestHst(t *testing.T) {
if *isVppDebug {
if *IsVppDebug {
// 30 minute timeout so that the framework won't timeout while debugging
suiteTimeout = time.Minute * 30
SuiteTimeout = time.Minute * 30
} else {
suiteTimeout = time.Minute * 5
SuiteTimeout = time.Minute * 5
}
// creates a file with PPID, used for 'make cleanup-hst'