test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts][PATCH V1] tests/meson_tests: support config unit test case list
@ 2022-08-23 10:06 Yu.Jiang
  2022-09-02  1:52 ` lijuan.tu
  0 siblings, 1 reply; 2+ messages in thread
From: Yu.Jiang @ 2022-08-23 10:06 UTC (permalink / raw)
  To: lijuan.tu, dts; +Cc: Yu.Jiang

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [dts][PATCH V1] tests/meson_tests: support config unit test case list
  2022-08-23 10:06 [dts][PATCH V1] tests/meson_tests: support config unit test case list Yu.Jiang
@ 2022-09-02  1:52 ` lijuan.tu
  0 siblings, 0 replies; 2+ messages in thread
From: lijuan.tu @ 2022-09-02  1:52 UTC (permalink / raw)
  To: lijuan.tu, dts, Yu.Jiang; +Cc: Yu.Jiang

On Tue, 23 Aug 2022 18:06:47 +0800, "Yu.Jiang" <yux.jiang@intel.com> wrote:
> support config unit test case list in conf/meson_tests.cfg
> 
> Signed-off-by: Yu.Jiang <yux.jiang@intel.com>

Acked-by: Lijuan Tu <lijuan.tu@intel.com>
Applied, thanks

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-09-02  1:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-23 10:06 [dts][PATCH V1] tests/meson_tests: support config unit test case list Yu.Jiang
2022-09-02  1:52 ` lijuan.tu

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).