[dts] [PATCH] [PATCH V1]tests: add power unit test

Lei lei.a.yao at intel.com
Mon Feb 18 13:49:00 CET 2019


From: Lei Yao <lei.a.yao at intel.com>

Some more power feature are added in recent DPDK release.So add related
unit test case into DTS.
The new power unit has test bench requirement. The DUT need be configured
to support ACPI driver. Otherwise, the test case will fail.

Signed-off-by: Lei Yao <lei.a.yao at intel.com>
---
 tests/TestSuite_unit_tests_power.py | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/tests/TestSuite_unit_tests_power.py b/tests/TestSuite_unit_tests_power.py
index 580683c..34c8296 100644
--- a/tests/TestSuite_unit_tests_power.py
+++ b/tests/TestSuite_unit_tests_power.py
@@ -77,7 +77,7 @@ class TestUnitTestsPower(TestCase):
         self.dut.send_expect("quit", "# ")
         self.verify("Test OK" in out, "Test failed")
 
-    def test_power_acpi(self):
+    def test_power_acpi_cpufreq(self):
         """
         Run power acpi cpu frequency autotest.
         """
@@ -87,6 +87,16 @@ class TestUnitTestsPower(TestCase):
         self.dut.send_expect("quit", "# ")
         self.verify("Test OK" in out, "Test failed")
 
+    def test_power_acpi_caps(self):
+        """
+        Run power acpi cpu caps autotest.
+        """
+
+        self.dut.send_expect("./%s/app/test -n 1 -c %s" % (self.target, self.coremask), "R.*T.*E.*>.*>", 60)
+        out = self.dut.send_expect("power_acpi_caps_autotest", "RTE>>", 60)
+        self.dut.send_expect("quit", "# ")
+        self.verify("Test OK" in out, "Test failed")
+
     def tear_down(self):
         """
         Run after each test case.
-- 
2.7.4



More information about the dts mailing list