test suite reviews and discussions
 help / color / mirror / Atom feed
From: "Yu.Jiang" <yux.jiang@intel.com>
To: lijuan.tu@intel.com, dts@dpdk.org
Cc: "Yu.Jiang" <yux.jiang@intel.com>
Subject: [dts][PATCH V1] tests/meson_tests: support config unit test case list
Date: Tue, 23 Aug 2022 18:06:47 +0800	[thread overview]
Message-ID: <20220823100647.1550726-1-yux.jiang@intel.com> (raw)

support config unit test case list in conf/meson_tests.cfg

Signed-off-by: Yu.Jiang <yux.jiang@intel.com>
---
 conf/meson_tests.cfg           |  8 ++++++++
 tests/TestSuite_meson_tests.py | 20 +++++++++++++++-----
 2 files changed, 23 insertions(+), 5 deletions(-)
 create mode 100644 conf/meson_tests.cfg

diff --git a/conf/meson_tests.cfg b/conf/meson_tests.cfg
new file mode 100644
index 00000000..8dcb3d2e
--- /dev/null
+++ b/conf/meson_tests.cfg
@@ -0,0 +1,8 @@
+# config unit test case for meson test
+# caselist = thash_autotest trace_autotest
+[suite]
+fast-tests  = " "
+driver-tests = " "
+debug-tests = " "
+extra-tests = " "
+perf-tests = " "
diff --git a/tests/TestSuite_meson_tests.py b/tests/TestSuite_meson_tests.py
index df0d0b31..ee95fffa 100644
--- a/tests/TestSuite_meson_tests.py
+++ b/tests/TestSuite_meson_tests.py
@@ -145,7 +145,9 @@ class TestMesonTests(TestCase):
         self.dut_pathlog = "fast-test.log"
         self.delete_exists_files()
         self.insmod_kni()
-        cmds = f'meson test -C x86_64-native-linuxapp-gcc/ --suite DPDK:fast-tests -t {self.ratio} --test-args="-c 0xff" |tee /root/{self.dut_pathlog}'
+        # config test case list in conf/meson_tests.cfg
+        caselist = self.get_suite_cfg()["fast-tests"]
+        cmds = f'meson test -C x86_64-native-linuxapp-gcc/ --suite DPDK:fast-tests {caselist} -t {self.ratio} --test-args="-c 0xff" |tee /root/{self.dut_pathlog}'
         out = self.dut.send_expect(cmds, "# ", self.execute_wait_time)
         self.logger.info(out)
         self.check_scp_file_valid_between_dut()
@@ -155,7 +157,9 @@ class TestMesonTests(TestCase):
         # init file name
         self.dut_pathlog = "driver-test.log"
         self.delete_exists_files()
-        cmds = f'meson test -C x86_64-native-linuxapp-gcc/ --suite DPDK:driver-tests -t {self.ratio} --test-args="-c 0xff" |tee /root/{self.dut_pathlog}'
+        # config test case list in conf/meson_tests.cfg
+        caselist = self.get_suite_cfg()["driver-tests"]
+        cmds = f'meson test -C x86_64-native-linuxapp-gcc/ --suite DPDK:driver-tests {caselist} -t {self.ratio} --test-args="-c 0xff" |tee /root/{self.dut_pathlog}'
         out = self.dut.send_expect(cmds, "# ", self.execute_wait_time)
         self.logger.info(out)
         self.check_scp_file_valid_between_dut()
@@ -165,7 +169,9 @@ class TestMesonTests(TestCase):
         self.dut_pathlog = "test-debug.log"
         # delete exists files
         self.delete_exists_files()
-        cmds = f'meson test -C x86_64-native-linuxapp-gcc/ --suite DPDK:debug-tests -t {self.ratio} --test-args="-c 0xff" |tee /root/{self.dut_pathlog}'
+        # config test case list in conf/meson_tests.cfg
+        caselist = self.get_suite_cfg()["debug-tests"]
+        cmds = f'meson test -C x86_64-native-linuxapp-gcc/ --suite DPDK:debug-tests {caselist} -t {self.ratio} --test-args="-c 0xff" |tee /root/{self.dut_pathlog}'
         out = self.dut.send_expect(cmds, "# ", self.execute_wait_time)
         self.logger.info(out)
         self.check_scp_file_valid_between_dut()
@@ -175,7 +181,9 @@ class TestMesonTests(TestCase):
         self.dut_pathlog = "extra-test.log"
         # delete exists files
         self.delete_exists_files()
-        cmds = f'meson test -C x86_64-native-linuxapp-gcc/ --suite DPDK:extra-tests -t {self.ratio} --test-args="-c 0xff" |tee /root/{self.dut_pathlog}'
+        # config test case list in conf/meson_tests.cfg
+        caselist = self.get_suite_cfg()["extra-tests"]
+        cmds = f'meson test -C x86_64-native-linuxapp-gcc/ --suite DPDK:extra-tests {caselist} -t {self.ratio} --test-args="-c 0xff" |tee /root/{self.dut_pathlog}'
         out = self.dut.send_expect(cmds, "# ", self.execute_wait_time)
         self.logger.info(out)
         self.check_scp_file_valid_between_dut()
@@ -189,7 +197,9 @@ class TestMesonTests(TestCase):
         self.dut_pathlog = "perf-test.log"
         # delete exists files
         self.delete_exists_files()
-        cmds = f'meson test -C x86_64-native-linuxapp-gcc/ --suite DPDK:perf-tests -t {self.ratio} --test-args="-c 0xff" |tee /root/{self.dut_pathlog}'
+        # config test case list in conf/meson_tests.cfg
+        caselist = self.get_suite_cfg()["perf-tests"]
+        cmds = f'meson test -C x86_64-native-linuxapp-gcc/ --suite DPDK:perf-tests {caselist} -t {self.ratio} --test-args="-c 0xff" |tee /root/{self.dut_pathlog}'
         out = self.dut.send_expect(cmds, "# ", self.execute_wait_time)
         self.logger.info(out)
         self.check_scp_file_valid_between_dut()
-- 
2.25.1


             reply	other threads:[~2022-08-23 10:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-23 10:06 Yu.Jiang [this message]
2022-09-02  1:52 ` lijuan.tu

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=20220823100647.1550726-1-yux.jiang@intel.com \
    --to=yux.jiang@intel.com \
    --cc=dts@dpdk.org \
    --cc=lijuan.tu@intel.com \
    /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).