test suite reviews and discussions
 help / color / mirror / Atom feed
From: Lei <lei.a.yao@intel.com>
To: dts@dpdk.org
Cc: Lei Yao <lei.a.yao@intel.com>
Subject: [dts] [PATCH] [PATCH V1]tests: add power unit test
Date: Mon, 18 Feb 2019 12:49:00 +0000	[thread overview]
Message-ID: <1550494140-159816-1-git-send-email-lei.a.yao@intel.com> (raw)

From: Lei Yao <lei.a.yao@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@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

             reply	other threads:[~2019-02-18  5:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-18 12:49 Lei [this message]
2019-02-26  7:18 ` Tu, Lijuan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1550494140-159816-1-git-send-email-lei.a.yao@intel.com \
    --to=lei.a.yao@intel.com \
    --cc=dts@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).