From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 14BB7A04D9; Thu, 3 Sep 2020 10:30:34 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0CCD81C0B9; Thu, 3 Sep 2020 10:30:34 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 74CE0E07 for ; Thu, 3 Sep 2020 10:30:31 +0200 (CEST) IronPort-SDR: j/aq46ECQ1DI0VNuAGZdgvguw+/9j5BW33RPTU8FwNAKb60v+MpDtg+JhDw7QCYQ28v5UH5lXJ /MY0IyBdsrxA== X-IronPort-AV: E=McAfee;i="6000,8403,9732"; a="221753259" X-IronPort-AV: E=Sophos;i="5.76,386,1592895600"; d="scan'208";a="221753259" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Sep 2020 01:30:31 -0700 IronPort-SDR: 1m6jpP+gNMnuv+vAcMo1AKIEwzDcib0lC5ss8FHIS0neb61Ykjf21mJWg6W4VGCxX2Qu7pPbgF QtHZew9PhkLw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,385,1592895600"; d="scan'208";a="315404173" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga002.jf.intel.com with ESMTP; 03 Sep 2020 01:30:30 -0700 From: Chen Linglix To: dts@dpdk.org Cc: Chen Linglix Date: Thu, 3 Sep 2020 16:28:28 +0800 Message-Id: <20200903082839.30213-5-linglix.chen@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200903082839.30213-1-linglix.chen@intel.com> References: <20200903082839.30213-1-linglix.chen@intel.com> Subject: [dts] [dts 04/15] tests/TestSuite_unit_tests_eal:update to support meson build X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 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 Sender: "dts" Signed-off-by: Chen Linglix --- tests/TestSuite_unit_tests_eal.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/TestSuite_unit_tests_eal.py b/tests/TestSuite_unit_tests_eal.py index 9c80663..99710a9 100644 --- a/tests/TestSuite_unit_tests_eal.py +++ b/tests/TestSuite_unit_tests_eal.py @@ -36,7 +36,8 @@ class TestUnitTestsEal(TestCase): self.run_cmd_time = 180 default_cores = '1S/4C/1T' eal_params = self.dut.create_eal_parameters(cores=default_cores) - self.test_app_cmdline = "./%s/app/test %s" % (self.target,eal_params) + app_name = self.dut.apps_name['test'] + self.test_app_cmdline = app_name + eal_params def set_up(self): """ @@ -179,7 +180,7 @@ class TestUnitTestsEal(TestCase): """ eal_params = self.dut.create_eal_parameters() - self.dut.send_expect("./%s/app/test %s" % (self.target,eal_params), + self.dut.send_expect(self.test_app_cmdline, "R.*T.*E.*>.*>", self.start_test_time) out = self.dut.send_expect("hash_readwrite_lf_perf_autotest", "RTE>>", self.run_cmd_time*3) @@ -192,7 +193,7 @@ class TestUnitTestsEal(TestCase): """ eal_params = self.dut.create_eal_parameters(cores='1S/4C/1T') - self.dut.send_expect("./%s/app/test %s" % (self.target,eal_params), + self.dut.send_expect(self.test_app_cmdline, "R.*T.*E.*>.*>", self.start_test_time) out = self.dut.send_expect("hash_readwrite_perf_autotest", "RTE>>", self.run_cmd_time*3) @@ -208,7 +209,8 @@ class TestUnitTestsEal(TestCase): cmdline = self.test_app_cmdline else: # mask cores only on socket 0 - cmdline = "%s ./%s/app/test -n 1 -c 5" % (self.dut.taskset(1), self.target) + app_name = self.dut.apps_name['test'] + cmdline = self.dut.taskset(1)+ ' ' +app_name+' -n 1 -c 5' self.dut.send_expect(cmdline, "R.*T.*E.*>.*>", self.start_test_time) out = self.dut.send_expect("func_reentrancy_autotest", "RTE>>", self.run_cmd_time) self.dut.send_expect("quit", "# ") -- 1.8.3.1