test suite reviews and discussions
 help / color / Atom feed
* [dts] [PATCH V1] tests/eal:add base virtaddr for freebsd
@ 2019-07-25  5:48 changqingxwu
  2019-08-07  7:27 ` Tu, Lijuan
  0 siblings, 1 reply; 2+ messages in thread
From: changqingxwu @ 2019-07-25  5:48 UTC (permalink / raw)
  To: dts; +Cc: changqingxwu

Add "base virtaddr" params for freebsd,
and clearing after each case run end, in case affect other cases.

Signed-off-by: changqingxwu <changqingx.wu@intel.com>
---
 tests/TestSuite_unit_tests_eal.py | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/tests/TestSuite_unit_tests_eal.py b/tests/TestSuite_unit_tests_eal.py
index 07d788f..d3475a4 100644
--- a/tests/TestSuite_unit_tests_eal.py
+++ b/tests/TestSuite_unit_tests_eal.py
@@ -370,8 +370,10 @@ class TestUnitTestsEal(TestCase):
         """
         Run multiprocess autotest.
         """
-
-        self.dut.send_expect(self.test_app_cmdline + ' -m 64', "R.*T.*E.*>.*>", self.start_test_time)
+        if self.dut.get_os_type() == "freebsd":
+            self.dut.send_expect(self.test_app_cmdline + ' -m 64 --base-virtaddr=0x1000000000', "R.*T.*E.*>.*>", self.start_test_time)
+        else:
+            self.dut.send_expect(self.test_app_cmdline + ' -m 64', "R.*T.*E.*>.*>", self.start_test_time)
         out = self.dut.send_expect("multiprocess_autotest", "RTE>>", self.run_cmd_time)
         self.dut.send_expect("quit", "# ")
         self.verify("Test OK" in out, "Test failed")
@@ -438,7 +440,7 @@ class TestUnitTestsEal(TestCase):
         """
         Run after each test case.
         """
-        pass
+        self.dut.kill_all()
 
     def tear_down_all(self):
         """
-- 
2.17.2


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

* Re: [dts] [PATCH V1] tests/eal:add base virtaddr for freebsd
  2019-07-25  5:48 [dts] [PATCH V1] tests/eal:add base virtaddr for freebsd changqingxwu
@ 2019-08-07  7:27 ` Tu, Lijuan
  0 siblings, 0 replies; 2+ messages in thread
From: Tu, Lijuan @ 2019-08-07  7:27 UTC (permalink / raw)
  To: Wu, ChangqingX, dts; +Cc: Wu, ChangqingX

Applied, thanks

> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of changqingxwu
> Sent: Thursday, July 25, 2019 1:49 PM
> To: dts@dpdk.org
> Cc: Wu, ChangqingX <changqingx.wu@intel.com>
> Subject: [dts] [PATCH V1] tests/eal:add base virtaddr for freebsd
> 
> Add "base virtaddr" params for freebsd,
> and clearing after each case run end, in case affect other cases.
> 
> Signed-off-by: changqingxwu <changqingx.wu@intel.com>
> ---
>  tests/TestSuite_unit_tests_eal.py | 8 +++++---
>  1 file changed, 5 insertions(+), 3 deletions(-)
> 
> diff --git a/tests/TestSuite_unit_tests_eal.py
> b/tests/TestSuite_unit_tests_eal.py
> index 07d788f..d3475a4 100644
> --- a/tests/TestSuite_unit_tests_eal.py
> +++ b/tests/TestSuite_unit_tests_eal.py
> @@ -370,8 +370,10 @@ class TestUnitTestsEal(TestCase):
>          """
>          Run multiprocess autotest.
>          """
> -
> -        self.dut.send_expect(self.test_app_cmdline + ' -m 64', "R.*T.*E.*>.*>",
> self.start_test_time)
> +        if self.dut.get_os_type() == "freebsd":
> +            self.dut.send_expect(self.test_app_cmdline + ' -m 64 --base-
> virtaddr=0x1000000000', "R.*T.*E.*>.*>", self.start_test_time)
> +        else:
> +            self.dut.send_expect(self.test_app_cmdline + ' -m 64',
> + "R.*T.*E.*>.*>", self.start_test_time)
>          out = self.dut.send_expect("multiprocess_autotest", "RTE>>",
> self.run_cmd_time)
>          self.dut.send_expect("quit", "# ")
>          self.verify("Test OK" in out, "Test failed") @@ -438,7 +440,7 @@ class
> TestUnitTestsEal(TestCase):
>          """
>          Run after each test case.
>          """
> -        pass
> +        self.dut.kill_all()
> 
>      def tear_down_all(self):
>          """
> --
> 2.17.2


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

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-25  5:48 [dts] [PATCH V1] tests/eal:add base virtaddr for freebsd changqingxwu
2019-08-07  7:27 ` Tu, Lijuan

test suite reviews and discussions

Archives are clonable:
	git clone --mirror http://inbox.dpdk.org/dts/0 dts/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dts dts/ http://inbox.dpdk.org/dts \
		dts@dpdk.org
	public-inbox-index dts


Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dts


AGPL code for this site: git clone https://public-inbox.org/ public-inbox