blob: b8dec65937ebde2e2d4d53718d4142ff6eb86585 [file] [log] [blame]
package main
import (
. "fd.io/hs-test/infra"
)
func init() {
RegisterCpuPinningSoloTests(DefaultCpuConfigurationTest, SkipCoresTest)
}
// TODO: Add more CPU configuration tests
func DefaultCpuConfigurationTest(s *CpuPinningSuite) {
vpp := s.GetContainerByName(SingleTopoContainerVpp).VppInstance
s.AssertNil(vpp.Start())
}
func SkipCoresTest(s *CpuPinningSuite) {
skipCoresConfiguration := VppCpuConfig{
PinMainCpu: true,
PinWorkersCorelist: true,
SkipCores: 1,
}
vpp := s.GetContainerByName(SingleTopoContainerVpp).VppInstance
vpp.CpuConfig = skipCoresConfiguration
s.AssertNil(vpp.Start())
}