Files
cunicu/pkg/core/core_test.go
Steffen Vogel e5eb73b5e2 merge internal and pkg packages
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
2022-07-27 13:39:18 +02:00

29 lines
478 B
Go

package core_test
import (
"math/rand"
"testing"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"kernel.org/pub/linux/libs/security/libcap/cap"
"riasc.eu/wice/pkg/test"
"riasc.eu/wice/pkg/util"
)
func TestSuite(t *testing.T) {
rand.Seed(GinkgoRandomSeed())
RegisterFailHandler(Fail)
RunSpecs(t, "Core Suite")
}
var _ = test.SetupLogging()
var _ = BeforeSuite(func() {
if !util.HasCapabilities(cap.NET_ADMIN) {
Skip("Insufficient privileges")
}
})