smoke_tests Test Suite
Smoke test suite.
Smoke tests are a class of tests which are used for validating a minimal set of important features. These are the most important features without which (or when they’re faulty) the software wouldn’t work properly. Thus, if any failure occurs while testing these features, there isn’t that much of a reason to continue testing, as the software is fundamentally broken.
These tests don’t have to include only DPDK tests, as the reason for failures could be in the infrastructure (a faulty link between NICs or a misconfiguration).
- class TestSmokeTests
Bases:
TestSuiteDPDK and infrastructure smoke test suite.
The test cases validate the most basic DPDK functionality needed for all other test suites. The infrastructure also needs to be tested, as that is also used by all other test suites.
- nics_in_node
The NICs present on the SUT node.
- Type:
list[framework.config.node.PortConfig]
- is_blocking: ClassVar[bool] = True
Whether the test suite is blocking. A failure of a blocking test suite will block the execution of all subsequent test suites in the current test run.
- set_up_suite() None
Set up the test suite.
- Setup:
Set the build directory path and a list of NICs in the SUT node.
- unit_tests() None
DPDK meson
fast-testsunit tests.Test that all unit test from the
fast-testssuite pass. The suite is a subset with only the most basic tests.- Steps:
Run the
fast-testsunit test suite through meson.
- Verify:
That driver unit tests are executed through meson.
- driver_tests() None
DPDK meson
driver-testsunit tests.Test that all unit test from the
driver-testssuite pass. The suite is a subset with driver tests. This suite may be run with virtual devices configured in the test run configuration.- Steps:
Run the
driver-testsunit test suite through meson.
- Verify:
Driver unit tests are executed successfully.
- devices_listed_in_testpmd() None
Testpmd device discovery.
Test that the devices configured in the test run configuration are found in testpmd.
- Steps:
List all devices found in testpmd.
- Verify:
The configured devices are among them.
- device_bound_to_driver() None
Device driver in OS.
Test that the devices configured in the test run configuration are bound to the proper driver. This test case runs on Linux only.
- Steps:
List all devices with the
dpdk-devbind.pyscript.
- Verify:
The configured devices are bound to the proper driver.
- required_capabilities: ClassVar[set[Capability]] = {LinkTopology.NO_LINK}
The capabilities the test case or suite requires in order to be executed.
- topology_type: ClassVar[TopologyCapability] = LinkTopology.NO_LINK
The topology type of the test case or suite.