update dpdk tests use IsolatedResource feature

This commit is contained in:
Lili Deng 2022-08-09 22:34:55 +08:00 коммит произвёл LiliDeng
Родитель 705783fc7f
Коммит 8587e1908e
2 изменённых файлов: 26 добавлений и 24 удалений

Просмотреть файл

@ -10,7 +10,7 @@ from lisa import (
notifier,
simple_requirement,
)
from lisa.features import Gpu, Infiniband, Sriov
from lisa.features import Gpu, Infiniband, IsolatedResource, Sriov
from lisa.messages import NetworkPPSPerformanceMessage, create_perf_message
from lisa.testsuite import TestResult
from lisa.tools import Lscpu
@ -43,8 +43,8 @@ class DpdkPerformance(TestSuite):
min_count=2,
network_interface=Sriov(),
min_nic_count=2,
min_core_count=4,
unsupported_features=[Gpu, Infiniband],
supported_features=[IsolatedResource],
),
)
def perf_dpdk_failsafe_pmd_dual_core(
@ -65,8 +65,8 @@ class DpdkPerformance(TestSuite):
min_count=2,
network_interface=Sriov(),
min_nic_count=2,
min_core_count=8,
unsupported_features=[Gpu, Infiniband],
supported_features=[IsolatedResource],
),
)
def perf_dpdk_failsafe_pmd_multi_core(
@ -87,8 +87,8 @@ class DpdkPerformance(TestSuite):
min_count=2,
network_interface=Sriov(),
min_nic_count=2,
min_core_count=48,
unsupported_features=[Gpu, Infiniband],
supported_features=[IsolatedResource],
),
)
def perf_dpdk_failsafe_pmd_multi_core_huge_vm(
@ -110,8 +110,8 @@ class DpdkPerformance(TestSuite):
min_count=2,
network_interface=Sriov(),
min_nic_count=2,
min_core_count=8,
unsupported_features=[Gpu, Infiniband],
supported_features=[IsolatedResource],
),
)
def perf_dpdk_failsafe_pmd_multi_queue(
@ -133,8 +133,8 @@ class DpdkPerformance(TestSuite):
min_count=2,
network_interface=Sriov(),
min_nic_count=2,
min_core_count=48,
unsupported_features=[Gpu, Infiniband],
supported_features=[IsolatedResource],
),
)
def perf_dpdk_failsafe_pmd_multi_queue_huge_vm(
@ -156,8 +156,8 @@ class DpdkPerformance(TestSuite):
min_count=2,
network_interface=Sriov(),
min_nic_count=2,
min_core_count=4,
unsupported_features=[Gpu, Infiniband],
supported_features=[IsolatedResource],
),
)
def perf_dpdk_netvsc_pmd_dual_core(
@ -178,8 +178,8 @@ class DpdkPerformance(TestSuite):
min_count=2,
network_interface=Sriov(),
min_nic_count=2,
min_core_count=8,
unsupported_features=[Gpu, Infiniband],
supported_features=[IsolatedResource],
),
)
def perf_dpdk_netvsc_pmd_multi_core(
@ -201,8 +201,8 @@ class DpdkPerformance(TestSuite):
min_count=2,
network_interface=Sriov(),
min_nic_count=2,
min_core_count=48,
unsupported_features=[Gpu, Infiniband],
supported_features=[IsolatedResource],
),
)
def perf_dpdk_netvsc_pmd_multi_core_huge_vm(
@ -223,8 +223,8 @@ class DpdkPerformance(TestSuite):
min_count=2,
network_interface=Sriov(),
min_nic_count=2,
min_core_count=8,
unsupported_features=[Gpu, Infiniband],
supported_features=[IsolatedResource],
),
)
def perf_dpdk_netvsc_pmd_multi_queue(
@ -246,8 +246,8 @@ class DpdkPerformance(TestSuite):
min_count=2,
network_interface=Sriov(),
min_nic_count=2,
min_core_count=48,
unsupported_features=[Gpu, Infiniband],
supported_features=[IsolatedResource],
),
)
def perf_dpdk_netvsc_pmd_multi_queue_huge_vm(

Просмотреть файл

@ -18,7 +18,7 @@ from lisa import (
schema,
search_space,
)
from lisa.features import Gpu, Infiniband, Sriov
from lisa.features import Gpu, Infiniband, IsolatedResource, Sriov
from lisa.testsuite import simple_requirement
from lisa.tools import Echo, Git, Ip, Kill, Lsmod, Make, Modprobe, Service
from lisa.util.constants import SIGINT
@ -71,9 +71,9 @@ class Dpdk(TestSuite):
priority=2,
requirement=simple_requirement(
min_nic_count=2,
min_core_count=8,
network_interface=Sriov(),
unsupported_features=[Gpu, Infiniband],
supported_features=[IsolatedResource],
),
)
def verify_dpdk_build_netvsc(
@ -93,9 +93,9 @@ class Dpdk(TestSuite):
priority=2,
requirement=simple_requirement(
min_nic_count=2,
min_core_count=8,
network_interface=Sriov(),
unsupported_features=[Gpu, Infiniband],
supported_features=[IsolatedResource],
),
)
def verify_dpdk_build_failsafe(
@ -110,9 +110,9 @@ class Dpdk(TestSuite):
priority=3,
requirement=simple_requirement(
min_nic_count=2,
min_core_count=8,
network_interface=Sriov(),
unsupported_features=[Gpu, Infiniband],
supported_features=[IsolatedResource],
disk=schema.DiskOptionSettings(
data_disk_count=search_space.IntRange(min=1),
data_disk_size=search_space.IntRange(min=32),
@ -158,9 +158,9 @@ class Dpdk(TestSuite):
priority=3,
requirement=simple_requirement(
min_nic_count=2,
min_core_count=8,
network_interface=Sriov(),
unsupported_features=[Gpu, Infiniband],
supported_features=[IsolatedResource],
),
)
def verify_dpdk_nff_go(
@ -186,6 +186,7 @@ class Dpdk(TestSuite):
min_nic_count=3,
network_interface=Sriov(),
unsupported_features=[Gpu, Infiniband],
supported_features=[IsolatedResource],
),
)
def verify_dpdk_multiprocess(
@ -279,10 +280,10 @@ class Dpdk(TestSuite):
priority=2,
requirement=simple_requirement(
min_nic_count=2,
min_core_count=8,
network_interface=Sriov(),
min_count=2,
unsupported_features=[Gpu, Infiniband],
supported_features=[IsolatedResource],
),
)
def verify_dpdk_sriov_rescind_failover_receiver(
@ -318,9 +319,9 @@ class Dpdk(TestSuite):
priority=2,
requirement=simple_requirement(
min_nic_count=2,
min_core_count=8,
network_interface=Sriov(),
unsupported_features=[Gpu, Infiniband],
supported_features=[IsolatedResource],
),
)
def verify_dpdk_sriov_rescind_failover_send_only(
@ -377,9 +378,9 @@ class Dpdk(TestSuite):
priority=2,
requirement=simple_requirement(
min_nic_count=2,
min_core_count=8,
network_interface=Sriov(),
unsupported_features=[Gpu, Infiniband],
supported_features=[IsolatedResource],
),
)
def verify_dpdk_vpp(
@ -415,6 +416,7 @@ class Dpdk(TestSuite):
requirement=simple_requirement(
network_interface=Sriov(),
unsupported_features=[Gpu, Infiniband],
supported_features=[IsolatedResource],
),
)
def verify_dpdk_ring_ping(
@ -486,10 +488,10 @@ class Dpdk(TestSuite):
priority=2,
requirement=simple_requirement(
min_nic_count=2,
min_core_count=8,
network_interface=Sriov(),
min_count=2,
unsupported_features=[Gpu, Infiniband],
supported_features=[IsolatedResource],
),
)
def verify_dpdk_send_receive_multi_txrx_queue_failsafe(
@ -512,10 +514,10 @@ class Dpdk(TestSuite):
priority=2,
requirement=simple_requirement(
min_nic_count=2,
min_core_count=8,
network_interface=Sriov(),
min_count=2,
unsupported_features=[Gpu, Infiniband],
supported_features=[IsolatedResource],
),
)
def verify_dpdk_send_receive_multi_txrx_queue_netvsc(
@ -538,10 +540,10 @@ class Dpdk(TestSuite):
priority=2,
requirement=simple_requirement(
min_nic_count=2,
min_core_count=8,
network_interface=Sriov(),
min_count=2,
unsupported_features=[Gpu, Infiniband],
supported_features=[IsolatedResource],
),
)
def verify_dpdk_send_receive_failsafe(
@ -562,10 +564,10 @@ class Dpdk(TestSuite):
priority=2,
requirement=simple_requirement(
min_nic_count=2,
min_core_count=8,
network_interface=Sriov(),
min_count=2,
unsupported_features=[Gpu, Infiniband],
supported_features=[IsolatedResource],
),
)
def verify_dpdk_send_receive_netvsc(
@ -589,9 +591,9 @@ class Dpdk(TestSuite):
priority=2,
requirement=simple_requirement(
min_nic_count=2,
min_core_count=8,
network_interface=Sriov(),
unsupported_features=[Gpu, Infiniband],
supported_features=[IsolatedResource],
),
)
def verify_uio_binding(