From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9C990A0093; Tue, 23 Aug 2022 12:07:05 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6F65A406A2; Tue, 23 Aug 2022 12:07:05 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id 34A58400D6 for ; Tue, 23 Aug 2022 12:07:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1661249224; x=1692785224; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=cV8Pasqi4lPv0m6Z4T/JYP9S077/pAlDZqpipnz9ppU=; b=YpYMmIDgE1Rx6FNt/FnrfGRMoTKqnlCJdKUpBXR/kd3KSBU0XPfsgrd6 5jX3Epr/3zpi6s8sEw5KPpv2/lP2cTUOWh5tkBEJ518ESOhd9KYi2WtpG 5WzmU3YcIbMNZtLIb6j1QyqDKq1Vl1fsvxzGGAMDL/bX0no4FBgjLNf9A IeBJXBNg7FT4DtjZGInses4TxUiMzeSecvnu+BtwYRql4U+wK0U2M5amf 07F3QSJTdj7xi1yOvmW9nmL/Yu8a76T5bX40Re1xI9AlA/m2Kx7t832S5 0asV2gL9U9dy7wT+9MbilNgWYBgFvbk2G6i2l92g+xLhETgWAVCBE6arp Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10447"; a="294929313" X-IronPort-AV: E=Sophos;i="5.93,257,1654585200"; d="scan'208";a="294929313" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Aug 2022 03:07:03 -0700 X-IronPort-AV: E=Sophos;i="5.93,257,1654585200"; d="scan'208";a="638591423" Received: from unknown (HELO localhost.localdomain) ([10.239.252.196]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Aug 2022 03:07:01 -0700 From: "Yu.Jiang" To: lijuan.tu@intel.com, dts@dpdk.org Cc: "Yu.Jiang" Subject: [dts][PATCH V1] tests/meson_tests: support config unit test case list Date: Tue, 23 Aug 2022 18:06:47 +0800 Message-Id: <20220823100647.1550726-1-yux.jiang@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org support config unit test case list in conf/meson_tests.cfg Signed-off-by: Yu.Jiang --- 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