* [dts] [00/12] add test start time
@ 2015-10-27 7:36 xu,huilong
2015-10-27 7:36 ` [dts] [01/12] add test start time and exec cmd time for cmdline unit test xu,huilong
` (13 more replies)
0 siblings, 14 replies; 28+ messages in thread
From: xu,huilong @ 2015-10-27 7:36 UTC (permalink / raw)
To: dts
*** BLURB HERE ***
in our test suite, test app start time only 10 seconds, so dts raise timeout when start test.
add start time to 60 seconds.
xu,huilong (12):
add test start time and exec cmd time for cmdline unit test
add test start time and exec cmd time for eal unit test
add test start time and exec cmd time for dump unit test
add test start time for ivshmem unit test
add test start time for kni unit test
add test start time for lpm unit test
add test start time for mbuf unit test
add test start time for mempool unit test
add test start time and exec cmd time for power unit test
add test start time and exec cmd time for pmd_perf unit test
add test start time for ring unit test
add test start time for timer unit test
tests/TestSuite_unit_tests_cmdline.py | 4 +-
tests/TestSuite_unit_tests_dump.py | 34 ++++----
tests/TestSuite_unit_tests_eal.py | 138 +++++++++++++++++----------------
tests/TestSuite_unit_tests_ivshmem.py | 2 +-
tests/TestSuite_unit_tests_kni.py | 2 +-
tests/TestSuite_unit_tests_lpm.py | 4 +-
tests/TestSuite_unit_tests_mbuf.py | 2 +-
tests/TestSuite_unit_tests_mempool.py | 4 +-
tests/TestSuite_unit_tests_pmd_perf.py | 18 ++---
tests/TestSuite_unit_tests_power.py | 8 +-
tests/TestSuite_unit_tests_ring.py | 4 +-
tests/TestSuite_unit_tests_timer.py | 4 +-
12 files changed, 114 insertions(+), 110 deletions(-)
--
1.9.3
^ permalink raw reply [flat|nested] 28+ messages in thread
* [dts] [01/12] add test start time and exec cmd time for cmdline unit test
2015-10-27 7:36 [dts] [00/12] add test start time xu,huilong
@ 2015-10-27 7:36 ` xu,huilong
2015-10-27 8:28 ` Tu, LijuanX A
2015-10-27 8:29 ` Tu, LijuanX A
2015-10-27 7:36 ` [dts] [02/12] add test start time and exec cmd time for eal " xu,huilong
` (12 subsequent siblings)
13 siblings, 2 replies; 28+ messages in thread
From: xu,huilong @ 2015-10-27 7:36 UTC (permalink / raw)
To: dts
Signed-off-by: xu,huilong <huilongx.xu@intel.com>
---
tests/TestSuite_unit_tests_cmdline.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/TestSuite_unit_tests_cmdline.py b/tests/TestSuite_unit_tests_cmdline.py
index b3a1769..3ece175 100644
--- a/tests/TestSuite_unit_tests_cmdline.py
+++ b/tests/TestSuite_unit_tests_cmdline.py
@@ -70,8 +70,8 @@ class TestUnitTestsCmdline(TestCase):
Run cmdline autotests in RTE comand line.
"""
- self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 10)
- out = self.dut.send_expect("cmdline_autotest", "RTE>>", 10)
+ self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 60)
+ out = self.dut.send_expect("cmdline_autotest", "RTE>>", 60)
self.dut.send_expect("quit", "# ")
self.verify("Test OK" in out, "Test failed")
return 'SUCCESS'
--
1.9.3
^ permalink raw reply [flat|nested] 28+ messages in thread
* [dts] [02/12] add test start time and exec cmd time for eal unit test
2015-10-27 7:36 [dts] [00/12] add test start time xu,huilong
2015-10-27 7:36 ` [dts] [01/12] add test start time and exec cmd time for cmdline unit test xu,huilong
@ 2015-10-27 7:36 ` xu,huilong
2015-10-27 8:31 ` Tu, LijuanX A
2015-10-27 7:36 ` [dts] [03/12] add test start time and exec cmd time for dump " xu,huilong
` (11 subsequent siblings)
13 siblings, 1 reply; 28+ messages in thread
From: xu,huilong @ 2015-10-27 7:36 UTC (permalink / raw)
To: dts
Signed-off-by: xu,huilong <huilongx.xu@intel.com>
---
tests/TestSuite_unit_tests_eal.py | 138 +++++++++++++++++++-------------------
1 file changed, 70 insertions(+), 68 deletions(-)
diff --git a/tests/TestSuite_unit_tests_eal.py b/tests/TestSuite_unit_tests_eal.py
index b8bd5a3..0945cd6 100644
--- a/tests/TestSuite_unit_tests_eal.py
+++ b/tests/TestSuite_unit_tests_eal.py
@@ -33,6 +33,8 @@ class TestUnitTestsEal(TestCase):
out = self.dut.build_dpdk_apps('./app/test/')
self.verify('make: Leaving directory' in out, "Compilation failed")
[arch, machine, self.env, toolchain] = self.target.split('-')
+ self.start_test_time = 60
+ self.run_cmd_time = 60
def set_up(self):
"""
@@ -46,8 +48,8 @@ class TestUnitTestsEal(TestCase):
"""
self.dut.send_expect("%s ./app/test/test -n 1 -c ffff" % self.dut.taskset(1),
- "R.*T.*E.*>.*>", 10)
- out = self.dut.send_expect("version_autotest", "RTE>>", 30)
+ "R.*T.*E.*>.*>", self.start_test_time)
+ out = self.dut.send_expect("version_autotest", "RTE>>", self.run_cmd_time)
self.dut.send_expect("quit", "# ")
self.verify("Test OK" in out, "Test failed")
@@ -57,8 +59,8 @@ class TestUnitTestsEal(TestCase):
"""
self.dut.send_expect("%s ./app/test/test -n 1 -c ffff" % self.dut.taskset(1),
- "R.*T.*E.*>.*>", 10)
- out = self.dut.send_expect("memcpy_autotest", "RTE>>", 30)
+ "R.*T.*E.*>.*>", self.start_test_time)
+ out = self.dut.send_expect("memcpy_autotest", "RTE>>", self.run_cmd_time)
self.dut.send_expect("quit", "# ")
self.verify("Test OK" in out, "Test failed")
@@ -68,8 +70,8 @@ class TestUnitTestsEal(TestCase):
"""
self.dut.send_expect("%s ./app/test/test -n 1 -c ffff" % self.dut.taskset(1),
- "R.*T.*E.*>.*>", 10)
- out = self.dut.send_expect("common_autotest", "RTE>>", 30)
+ "R.*T.*E.*>.*>", self.start_test_time)
+ out = self.dut.send_expect("common_autotest", "RTE>>", self.run_cmd_time)
self.dut.send_expect("quit", "# ")
self.verify("Test OK" in out, "Test failed")
@@ -79,8 +81,8 @@ class TestUnitTestsEal(TestCase):
"""
self.dut.send_expect("%s ./app/test/test -n 1 -c ffff" % self.dut.taskset(1),
- "R.*T.*E.*>.*>", 10)
- out = self.dut.send_expect("eal_fs_autotest", "RTE>>", 30)
+ "R.*T.*E.*>.*>", self.start_test_time)
+ out = self.dut.send_expect("eal_fs_autotest", "RTE>>", self.run_cmd_time)
self.dut.send_expect("quit", "# ")
self.verify("Test OK" in out, "Test failed")
@@ -90,8 +92,8 @@ class TestUnitTestsEal(TestCase):
"""
self.dut.send_expect("%s ./app/test/test -n 1 -c ffff" % self.dut.taskset(1),
- "R.*T.*E.*>.*>", 10)
- out = self.dut.send_expect("memcpy_autotest", "RTE>>", 30)
+ "R.*T.*E.*>.*>", self.start_test_time)
+ out = self.dut.send_expect("memcpy_autotest", "RTE>>", self.run_cmd_time)
self.dut.send_expect("quit", "# ")
self.verify("Test OK" in out, "Test failed")
@@ -100,8 +102,8 @@ class TestUnitTestsEal(TestCase):
Run memcopy performance autotest.
"""
self.dut.send_expect("%s ./app/test/test -n 1 -c ffff" % self.dut.taskset(1),
- "R.*T.*E.*>.*>", 10)
- out = self.dut.send_expect("memcpy_perf_autotest", "RTE>>", 240)
+ "R.*T.*E.*>.*>", self.start_test_time)
+ out = self.dut.send_expect("memcpy_perf_autotest", "RTE>>", self.run_cmd_time * 4)
self.dut.send_expect("quit", "# ")
self.verify("Test OK" in out, "Test failed")
@@ -110,8 +112,8 @@ class TestUnitTestsEal(TestCase):
Run hash autotest.
"""
- self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 10)
- out = self.dut.send_expect("hash_autotest", "RTE>>", 40)
+ self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", self.start_test_time)
+ out = self.dut.send_expect("hash_autotest", "RTE>>", self.run_cmd_time)
self.dut.send_expect("quit", "# ")
self.verify("Test OK" in out, "Test failed")
@@ -121,8 +123,8 @@ class TestUnitTestsEal(TestCase):
"""
self.dut.send_expect("%s ./app/test/test -n 1 -c fffe" % self.dut.taskset(1),
- "R.*T.*E.*>.*>", 10)
- out = self.dut.send_expect("hash_perf_autotest", "RTE>>", 600)
+ "R.*T.*E.*>.*>", self.start_test_time)
+ out = self.dut.send_expect("hash_perf_autotest", "RTE>>", self.run_cmd_time * 10)
self.dut.send_expect("quit", "# ")
self.verify("Test OK" in out, "Test failed")
@@ -131,8 +133,8 @@ class TestUnitTestsEal(TestCase):
Run malloc autotest.
"""
- self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 10)
- out = self.dut.send_expect("malloc_autotest", "RTE>>", 30)
+ self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", self.start_test_time)
+ out = self.dut.send_expect("malloc_autotest", "RTE>>", self.run_cmd_time)
self.dut.send_expect("quit", "# ")
self.verify("Test OK" in out, "Test failed")
@@ -146,8 +148,8 @@ class TestUnitTestsEal(TestCase):
else:
# mask cores only on socket 0
cmdline = "%s ./app/test/test -n 1 -c 5555" % self.dut.taskset(1)
- self.dut.send_expect(cmdline, "R.*T.*E.*>.*>", 10)
- out = self.dut.send_expect("func_reentrancy_autotest", "RTE>>", 30)
+ 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", "# ")
self.verify("Test OK" in out, "Test failed")
@@ -156,8 +158,8 @@ class TestUnitTestsEal(TestCase):
Run pci autotest.
"""
- self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 10)
- out = self.dut.send_expect("pci_autotest", "RTE>>", 30)
+ self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", self.start_test_time)
+ out = self.dut.send_expect("pci_autotest", "RTE>>", self.run_cmd_time)
self.dut.send_expect("quit", "# ")
self.verify("Test OK" in out, "Test failed")
@@ -166,8 +168,8 @@ class TestUnitTestsEal(TestCase):
Run atomic autotest.
"""
- self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 10)
- out = self.dut.send_expect("atomic_autotest", "RTE>>", 30)
+ self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", self.start_test_time)
+ out = self.dut.send_expect("atomic_autotest", "RTE>>", self.run_cmd_time)
self.dut.send_expect("quit", "# ")
self.verify("Test OK" in out, "Test failed")
@@ -176,8 +178,8 @@ class TestUnitTestsEal(TestCase):
Run memory autotest.
"""
- self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 10)
- out = self.dut.send_expect('memory_autotest', "RTE>>", 20)
+ self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", self.start_test_time)
+ out = self.dut.send_expect('memory_autotest', "RTE>>", self.run_cmd_time)
regexp = "phys:0x[0-9a-f]*, len:([0-9a-f]*), virt:0x[0-9a-f]*, socket_id:[0-9]*"
match = dts.regexp(out, regexp)
size = int(match, 16)
@@ -189,8 +191,8 @@ class TestUnitTestsEal(TestCase):
Run lcore autotest.
"""
- self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 10)
- out = self.dut.send_expect("per_lcore_autotest", "RTE>>", 20)
+ self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", self.start_test_time)
+ out = self.dut.send_expect("per_lcore_autotest", "RTE>>", self.run_cmd_time)
self.dut.send_expect("quit", "# ")
self.verify("Test OK" in out, "Test failed")
@@ -199,8 +201,8 @@ class TestUnitTestsEal(TestCase):
Run spinlock autotest.
"""
- self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 10)
- out = self.dut.send_expect("spinlock_autotest", "RTE>>", 120)
+ self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", self.start_test_time)
+ out = self.dut.send_expect("spinlock_autotest", "RTE>>", self.run_cmd_time * 2)
self.dut.send_expect("quit", "# ")
self.verify("Test OK" in out, "Test failed")
@@ -209,8 +211,8 @@ class TestUnitTestsEal(TestCase):
Run rwlock autotest.
"""
- self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 10)
- out = self.dut.send_expect("rwlock_autotest", "RTE>>", 20)
+ self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", self.start_test_time)
+ out = self.dut.send_expect("rwlock_autotest", "RTE>>", self.run_cmd_time)
self.dut.send_expect("quit", "# ")
self.verify("Test OK" in out, "Test failed")
@@ -219,8 +221,8 @@ class TestUnitTestsEal(TestCase):
Run prefetch autotest.
"""
- self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 10)
- out = self.dut.send_expect("prefetch_autotest", "RTE>>", 20)
+ self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", self.start_test_time)
+ out = self.dut.send_expect("prefetch_autotest", "RTE>>", self.run_cmd_time)
self.dut.send_expect("quit", "# ")
self.verify("Test OK" in out, "Test failed")
@@ -229,8 +231,8 @@ class TestUnitTestsEal(TestCase):
Run byte order autotest.
"""
- self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 10)
- out = self.dut.send_expect("byteorder_autotest", "RTE>>", 10)
+ self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", self.start_test_time)
+ out = self.dut.send_expect("byteorder_autotest", "RTE>>", self.run_cmd_time)
self.dut.send_expect("quit", "# ")
self.verify("Test OK" in out, "Test failed")
@@ -239,8 +241,8 @@ class TestUnitTestsEal(TestCase):
Run cycles autotest.
"""
- self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 10)
- out = self.dut.send_expect("cycles_autotest", "RTE>>", 20)
+ self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", self.start_test_time)
+ out = self.dut.send_expect("cycles_autotest", "RTE>>", self.run_cmd_time)
self.dut.send_expect("quit", "# ")
self.verify("Test OK" in out, "Test failed")
@@ -249,8 +251,8 @@ class TestUnitTestsEal(TestCase):
Run logs autotest.
"""
- self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 10)
- out = self.dut.send_expect("logs_autotest", "RTE>>", 10)
+ self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", self.start_test_time)
+ out = self.dut.send_expect("logs_autotest", "RTE>>", self.run_cmd_time)
self.dut.send_expect("quit", "# ")
self.verify("Test OK" in out, "Test failed")
@@ -259,8 +261,8 @@ class TestUnitTestsEal(TestCase):
Run memzone autotest.
"""
- self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 10)
- out = self.dut.send_expect("memzone_autotest", "RTE>>", 10)
+ self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", self.start_test_time)
+ out = self.dut.send_expect("memzone_autotest", "RTE>>", self.run_cmd_time)
self.dut.send_expect("quit", "# ")
self.verify("Test OK" in out, "Test failed")
@@ -269,8 +271,8 @@ class TestUnitTestsEal(TestCase):
Run debug autotest.
"""
- self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 10)
- out = self.dut.send_expect("debug_autotest", "RTE>>", 10)
+ self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", self.start_test_time)
+ out = self.dut.send_expect("debug_autotest", "RTE>>", self.run_cmd_time)
self.dut.send_expect("quit", "# ")
self.verify("Test OK" in out, "Test failed")
@@ -279,8 +281,8 @@ class TestUnitTestsEal(TestCase):
Run eal flags autotest.
"""
- self.dut.send_expect("./app/test/test -n 1 -c ffff -m 64", "R.*T.*E.*>.*>", 10)
- out = self.dut.send_expect("eal_flags_autotest", "RTE>>", 40)
+ self.dut.send_expect("./app/test/test -n 1 -c ffff -m 64", "R.*T.*E.*>.*>", self.start_test_time)
+ out = self.dut.send_expect("eal_flags_autotest", "RTE>>", self.run_cmd_time)
self.dut.send_expect("quit", "# ")
self.verify("Test OK" in out, "Test failed")
@@ -290,8 +292,8 @@ class TestUnitTestsEal(TestCase):
"""
self.verify(self.env == "linuxapp", "Alarm only supported in linux env")
- self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 10)
- out = self.dut.send_expect("alarm_autotest", "RTE>>", 60)
+ self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", self.start_test_time)
+ out = self.dut.send_expect("alarm_autotest", "RTE>>", self.run_cmd_time)
self.dut.send_expect("quit", "# ")
self.verify("Test OK" in out, "Test failed")
@@ -300,8 +302,8 @@ class TestUnitTestsEal(TestCase):
Run CPU flags autotest.
"""
- self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 10)
- out = self.dut.send_expect("cpuflags_autotest", "RTE>>", 60)
+ self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", self.start_test_time)
+ out = self.dut.send_expect("cpuflags_autotest", "RTE>>", self.run_cmd_time)
self.dut.send_expect("quit", "# ")
self.verify("Test OK" in out, "Test failed")
@@ -310,8 +312,8 @@ class TestUnitTestsEal(TestCase):
Run errno autotest.
"""
- self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*TE>>|RT.*E>>|RTE.*>>|RTE>.*>", 20)
- out = self.dut.send_expect("errno_autotest", "RTE>>", 60)
+ self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*TE>>|RT.*E>>|RTE.*>>|RTE>.*>", self.start_test_time)
+ out = self.dut.send_expect("errno_autotest", "RTE>>", self.run_cmd_time)
self.dut.send_expect("quit", "# ")
self.verify("Test OK" in out, "Test failed")
@@ -321,8 +323,8 @@ class TestUnitTestsEal(TestCase):
"""
self.verify(self.env == "linuxapp", "Interrupt only supported in linux env")
- self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*TE>>|RT.*E>>|RTE.*>>|RTE>.*>", 20)
- out = self.dut.send_expect("interrupt_autotest", "RTE>>", 60)
+ self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*TE>>|RT.*E>>|RTE.*>>|RTE>.*>", self.start_test_time)
+ out = self.dut.send_expect("interrupt_autotest", "RTE>>", self.run_cmd_time)
self.dut.send_expect("quit", "# ")
self.verify("Test OK" in out, "Test failed")
@@ -331,8 +333,8 @@ class TestUnitTestsEal(TestCase):
Run multiprocess autotest.
"""
- self.dut.send_expect("./app/test/test -n 1 -c ffff -m 64", "R.*T.*E.*>.*>", 10)
- out = self.dut.send_expect("multiprocess_autotest", "RTE>>", 60)
+ self.dut.send_expect("./app/test/test -n 1 -c ffff -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")
@@ -341,8 +343,8 @@ class TestUnitTestsEal(TestCase):
Run string autotest.
"""
- self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 10)
- out = self.dut.send_expect("string_autotest", "RTE>>", 60)
+ self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", self.start_test_time)
+ out = self.dut.send_expect("string_autotest", "RTE>>", self.run_cmd_time)
self.dut.send_expect("quit", "# ")
self.verify("Test OK" in out, "Test failed")
@@ -351,8 +353,8 @@ class TestUnitTestsEal(TestCase):
Run tailq autotest.
"""
- self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 10)
- out = self.dut.send_expect("tailq_autotest", "RTE>>", 60)
+ self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", self.start_test_time)
+ out = self.dut.send_expect("tailq_autotest", "RTE>>", self.run_cmd_time)
self.dut.send_expect("quit", "# ")
self.verify("Test OK" in out, "Test failed")
@@ -361,8 +363,8 @@ class TestUnitTestsEal(TestCase):
Run devargs autotest.
"""
- self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 10)
- out = self.dut.send_expect("devargs_autotest", "RTE>>", 60)
+ self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", self.start_test_time)
+ out = self.dut.send_expect("devargs_autotest", "RTE>>", self.run_cmd_time)
self.dut.send_expect("quit", "# ")
self.verify("Test OK" in out, "Test failed")
@@ -371,8 +373,8 @@ class TestUnitTestsEal(TestCase):
Run kvargs autotest.
"""
- self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 10)
- out = self.dut.send_expect("kvargs_autotest", "RTE>>", 60)
+ self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", self.start_test_time)
+ out = self.dut.send_expect("kvargs_autotest", "RTE>>", self.run_cmd_time)
self.dut.send_expect("quit", "# ")
self.verify("Test OK" in out, "Test failed")
@@ -381,8 +383,8 @@ class TestUnitTestsEal(TestCase):
Run acl autotest.
"""
- self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 10)
- out = self.dut.send_expect("acl_autotest", "RTE>>", 60)
+ self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", self.start_test_time)
+ out = self.dut.send_expect("acl_autotest", "RTE>>", self.run_cmd_time)
self.dut.send_expect("quit", "# ")
self.verify("Test OK" in out, "Test failed")
@@ -391,8 +393,8 @@ class TestUnitTestsEal(TestCase):
Run acl autotest.
"""
- self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 10)
- out = self.dut.send_expect("link_bonding_autotest", "RTE>>", 60)
+ self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", self.start_test_time)
+ out = self.dut.send_expect("link_bonding_autotest", "RTE>>", self.run_cmd_time)
self.dut.send_expect("quit", "# ")
self.verify("Test OK" in out, "Test failed")
--
1.9.3
^ permalink raw reply [flat|nested] 28+ messages in thread
* [dts] [03/12] add test start time and exec cmd time for dump unit test
2015-10-27 7:36 [dts] [00/12] add test start time xu,huilong
2015-10-27 7:36 ` [dts] [01/12] add test start time and exec cmd time for cmdline unit test xu,huilong
2015-10-27 7:36 ` [dts] [02/12] add test start time and exec cmd time for eal " xu,huilong
@ 2015-10-27 7:36 ` xu,huilong
2015-10-27 8:33 ` Tu, LijuanX A
2015-10-27 7:36 ` [dts] [04/12] add test start time for ivshmem " xu,huilong
` (10 subsequent siblings)
13 siblings, 1 reply; 28+ messages in thread
From: xu,huilong @ 2015-10-27 7:36 UTC (permalink / raw)
To: dts
Signed-off-by: xu,huilong <huilongx.xu@intel.com>
---
tests/TestSuite_unit_tests_dump.py | 34 ++++++++++++++++++----------------
1 file changed, 18 insertions(+), 16 deletions(-)
diff --git a/tests/TestSuite_unit_tests_dump.py b/tests/TestSuite_unit_tests_dump.py
index ce04439..2052cb4 100644
--- a/tests/TestSuite_unit_tests_dump.py
+++ b/tests/TestSuite_unit_tests_dump.py
@@ -62,6 +62,8 @@ class TestUnitTestsDump(TestCase):
# Based on h/w type, choose how many ports to use
self.dut_ports = self.dut.get_ports(self.nic)
self.verify(len(self.dut_ports) >= 1, "Insufficient ports for testing")
+ self.start_test_time = 60
+ self.run_cmd_time = 60
def set_up(self):
"""
@@ -74,8 +76,8 @@ class TestUnitTestsDump(TestCase):
"""
Run history log dump test case.
"""
- self.dut.send_expect("./%s/app/test -n 1 -c ffff" % (self.target), "R.*T.*E.*>.*>", 10)
- out = self.dut.send_expect("dump_log_history", "RTE>>", 120)
+ self.dut.send_expect("./%s/app/test -n 1 -c ffff" % (self.target), "R.*T.*E.*>.*>", self.start_test_time)
+ out = self.dut.send_expect("dump_log_history", "RTE>>", self.run_cmd_time * 2)
self.dut.send_expect("quit", "# ")
self.verify("EAL" in out, "Test failed")
@@ -83,8 +85,8 @@ class TestUnitTestsDump(TestCase):
"""
Run history log dump test case.
"""
- self.dut.send_expect("./%s/app/test -n 1 -c ffff" % (self.target), "R.*T.*E.*>.*>", 10)
- out = self.dut.send_expect("dump_ring", "RTE>>", 120)
+ self.dut.send_expect("./%s/app/test -n 1 -c ffff" % (self.target), "R.*T.*E.*>.*>", self.start_test_time)
+ out = self.dut.send_expect("dump_ring", "RTE>>", self.run_cmd_time)
self.dut.send_expect("quit", "# ")
elements = ['ring', 'address', 'flags', 'size', 'ct', 'ch', 'pt', 'ph', 'used', 'avail', 'watermark']
match_regex = "ring <(.*?)>@0x(.*)\r\n"
@@ -100,8 +102,8 @@ class TestUnitTestsDump(TestCase):
"""
Run mempool dump test case.
"""
- self.dut.send_expect("./%s/app/test -n 1 -c ffff" % (self.target), "R.*T.*E.*>.*>", 10)
- out = self.dut.send_expect("dump_mempool", "RTE>>", 120)
+ self.dut.send_expect("./%s/app/test -n 1 -c ffff" % (self.target), "R.*T.*E.*>.*>", self.start_test_time)
+ out = self.dut.send_expect("dump_mempool", "RTE>>", self.run_cmd_time * 2)
self.dut.send_expect("quit", "# ")
elements = ['mempool', 'address', 'flags', 'ring', 'phys_addr', 'size', 'header_size', 'elt_size',
'trailer_size', 'total_obj_size', 'private_data_size', 'pg_num', 'pg_shift', 'pg_mask',
@@ -120,8 +122,8 @@ class TestUnitTestsDump(TestCase):
"""
Run physical memory dump test case.
"""
- self.dut.send_expect("./%s/app/test -n 1 -c ffff" % (self.target), "R.*T.*E.*>.*>", 10)
- out = self.dut.send_expect("dump_physmem", "RTE>>", 120)
+ self.dut.send_expect("./%s/app/test -n 1 -c ffff" % (self.target), "R.*T.*E.*>.*>", self.start_test_time)
+ out = self.dut.send_expect("dump_physmem", "RTE>>", self.run_cmd_time * 2)
self.dut.send_expect("quit", "# ")
elements = ['Segment', 'phys', 'len', 'virt', 'socket_id', 'hugepage_sz', 'nchannel', 'nrank']
match_regex = "Segment (\d)+:"
@@ -140,8 +142,8 @@ class TestUnitTestsDump(TestCase):
"""
Run memzone dump test case.
"""
- self.dut.send_expect("./%s/app/test -n 1 -c ffff" % (self.target), "R.*T.*E.*>.*>", 10)
- out = self.dut.send_expect("dump_memzone", "RTE>>", 120)
+ self.dut.send_expect("./%s/app/test -n 1 -c ffff" % (self.target), "R.*T.*E.*>.*>", self.start_test_time)
+ out = self.dut.send_expect("dump_memzone", "RTE>>", self.run_cmd_time * 2)
self.dut.send_expect("quit", "# ")
elements = ['Zone', 'name', 'phys', 'len', 'virt', 'socket_id', 'flags']
@@ -162,8 +164,8 @@ class TestUnitTestsDump(TestCase):
"""
Run struct size dump test case.
"""
- self.dut.send_expect("./%s/app/test -n 1 -c ffff" % (self.target), "R.*T.*E.*>.*>", 10)
- out = self.dut.send_expect("dump_struct_sizes", "RTE>>", 120)
+ self.dut.send_expect("./%s/app/test -n 1 -c ffff" % (self.target), "R.*T.*E.*>.*>", self.start_test_time)
+ out = self.dut.send_expect("dump_struct_sizes", "RTE>>", self.run_cmd_time * 2)
self.dut.send_expect("quit", "# ")
elements = ['struct rte_mbuf', 'struct rte_mempool', 'struct rte_ring']
@@ -181,15 +183,15 @@ class TestUnitTestsDump(TestCase):
"""
test_port = self.dut_ports[0]
self.dut.send_expect("./%s/app/test -n 1 -c ffff -b 0000:%s"
- % (self.target, self.dut.ports_info[test_port]['pci']), "R.*T.*E.*>.*>", 10)
- out = self.dut.send_expect("dump_devargs", "RTE>>", 120)
+ % (self.target, self.dut.ports_info[test_port]['pci']), "R.*T.*E.*>.*>", self.start_test_time)
+ out = self.dut.send_expect("dump_devargs", "RTE>>", self.run_cmd_time * 2)
self.dut.send_expect("quit", "# ")
black_str = "PCI blacklist 0000:%s" % self.dut.ports_info[test_port]['pci']
self.verify(black_str in out, "Dump black list failed")
self.dut.send_expect("./%s/app/test -n 1 -c ffff -w 0000:%s"
- % (self.target, self.dut.ports_info[test_port]['pci']), "R.*T.*E.*>.*>", 10)
- out = self.dut.send_expect("dump_devargs", "RTE>>", 120)
+ % (self.target, self.dut.ports_info[test_port]['pci']), "R.*T.*E.*>.*>", self.start_test_time)
+ out = self.dut.send_expect("dump_devargs", "RTE>>", self.run_cmd_time * 2)
self.dut.send_expect("quit", "# ")
white_str = "PCI whitelist 0000:%s" % self.dut.ports_info[test_port]['pci']
--
1.9.3
^ permalink raw reply [flat|nested] 28+ messages in thread
* [dts] [04/12] add test start time for ivshmem unit test
2015-10-27 7:36 [dts] [00/12] add test start time xu,huilong
` (2 preceding siblings ...)
2015-10-27 7:36 ` [dts] [03/12] add test start time and exec cmd time for dump " xu,huilong
@ 2015-10-27 7:36 ` xu,huilong
2015-10-27 8:34 ` Tu, LijuanX A
2015-10-27 7:36 ` [dts] [05/12] add test start time for kni " xu,huilong
` (9 subsequent siblings)
13 siblings, 1 reply; 28+ messages in thread
From: xu,huilong @ 2015-10-27 7:36 UTC (permalink / raw)
To: dts
Signed-off-by: xu,huilong <huilongx.xu@intel.com>
---
tests/TestSuite_unit_tests_ivshmem.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/TestSuite_unit_tests_ivshmem.py b/tests/TestSuite_unit_tests_ivshmem.py
index 637d2cc..31e8902 100644
--- a/tests/TestSuite_unit_tests_ivshmem.py
+++ b/tests/TestSuite_unit_tests_ivshmem.py
@@ -72,7 +72,7 @@ class TestUnitTestsIvshmem(TestCase):
"""
Run Inter-VM share memory test.
"""
- self.dut.send_expect("./%s/app/test -n 1 -c ffff" % (self.target), "R.*T.*E.*>.*>", 20)
+ self.dut.send_expect("./%s/app/test -n 1 -c ffff" % (self.target), "R.*T.*E.*>.*>", 60)
out = self.dut.send_expect("ivshmem_autotest", "RTE>>", 120)
self.dut.send_expect("quit", "# ")
self.verify("Test OK" in out, "Test failed")
--
1.9.3
^ permalink raw reply [flat|nested] 28+ messages in thread
* [dts] [05/12] add test start time for kni unit test
2015-10-27 7:36 [dts] [00/12] add test start time xu,huilong
` (3 preceding siblings ...)
2015-10-27 7:36 ` [dts] [04/12] add test start time for ivshmem " xu,huilong
@ 2015-10-27 7:36 ` xu,huilong
2015-10-27 8:35 ` Tu, LijuanX A
2015-10-27 7:36 ` [dts] [06/12] add test start time for lpm " xu,huilong
` (8 subsequent siblings)
13 siblings, 1 reply; 28+ messages in thread
From: xu,huilong @ 2015-10-27 7:36 UTC (permalink / raw)
To: dts
Signed-off-by: xu,huilong <huilongx.xu@intel.com>
---
tests/TestSuite_unit_tests_kni.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/TestSuite_unit_tests_kni.py b/tests/TestSuite_unit_tests_kni.py
index ec5f3e0..20df8cc 100644
--- a/tests/TestSuite_unit_tests_kni.py
+++ b/tests/TestSuite_unit_tests_kni.py
@@ -87,7 +87,7 @@ class TestUnitTestsKni(TestCase):
"""
Run kni autotest.
"""
- self.dut.send_expect("./app/test/test -n 1 -c fffe", "R.*T.*E.*>.*>", 30)
+ self.dut.send_expect("./app/test/test -n 1 -c fffe", "R.*T.*E.*>.*>", 60)
out = self.dut.send_expect("kni_autotest", "RTE>>", 60)
self.dut.send_expect("quit", "# ")
--
1.9.3
^ permalink raw reply [flat|nested] 28+ messages in thread
* [dts] [06/12] add test start time for lpm unit test
2015-10-27 7:36 [dts] [00/12] add test start time xu,huilong
` (4 preceding siblings ...)
2015-10-27 7:36 ` [dts] [05/12] add test start time for kni " xu,huilong
@ 2015-10-27 7:36 ` xu,huilong
2015-10-27 8:42 ` Tu, LijuanX A
2015-10-27 7:36 ` [dts] [07/12] add test start time for mbuf " xu,huilong
` (7 subsequent siblings)
13 siblings, 1 reply; 28+ messages in thread
From: xu,huilong @ 2015-10-27 7:36 UTC (permalink / raw)
To: dts
Signed-off-by: xu,huilong <huilongx.xu@intel.com>
---
tests/TestSuite_unit_tests_lpm.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/TestSuite_unit_tests_lpm.py b/tests/TestSuite_unit_tests_lpm.py
index b638195..dadb492 100644
--- a/tests/TestSuite_unit_tests_lpm.py
+++ b/tests/TestSuite_unit_tests_lpm.py
@@ -72,7 +72,7 @@ class TestUnitTestsLpmIpv6(TestCase):
"""
Run lpm for IPv6 autotest.
"""
- self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 30)
+ self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 60)
out = self.dut.send_expect("lpm_autotest", "RTE>>", 120)
self.dut.send_expect("quit", "# ")
self.verify("Test OK" in out, "Test failed")
@@ -89,7 +89,7 @@ class TestUnitTestsLpmIpv6(TestCase):
hugepage_num = self.dut.get_total_huge_pages()
self.verify(hugepage_num >= 4096, "failed to request huge memory")
- self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 30)
+ self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 60)
out = self.dut.send_expect("lpm6_autotest", "RTE>>", 3600)
self.dut.send_expect("quit", "# ")
self.dut.set_huge_pages(hugepage_ori)
--
1.9.3
^ permalink raw reply [flat|nested] 28+ messages in thread
* [dts] [07/12] add test start time for mbuf unit test
2015-10-27 7:36 [dts] [00/12] add test start time xu,huilong
` (5 preceding siblings ...)
2015-10-27 7:36 ` [dts] [06/12] add test start time for lpm " xu,huilong
@ 2015-10-27 7:36 ` xu,huilong
2015-10-27 8:43 ` Tu, LijuanX A
2015-10-27 7:36 ` [dts] [08/12] add test start time for mempool " xu,huilong
` (6 subsequent siblings)
13 siblings, 1 reply; 28+ messages in thread
From: xu,huilong @ 2015-10-27 7:36 UTC (permalink / raw)
To: dts
Signed-off-by: xu,huilong <huilongx.xu@intel.com>
---
tests/TestSuite_unit_tests_mbuf.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/TestSuite_unit_tests_mbuf.py b/tests/TestSuite_unit_tests_mbuf.py
index bc7ea3b..c4dfaab 100644
--- a/tests/TestSuite_unit_tests_mbuf.py
+++ b/tests/TestSuite_unit_tests_mbuf.py
@@ -70,7 +70,7 @@ class TestUnitTestsMbuf(TestCase):
Run mbuf autotest.
"""
- self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 10)
+ self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 60)
out = self.dut.send_expect("mbuf_autotest", "RTE>>", 60)
self.dut.send_expect("quit", "# ")
self.verify("Test OK" in out, "Test failed")
--
1.9.3
^ permalink raw reply [flat|nested] 28+ messages in thread
* [dts] [08/12] add test start time for mempool unit test
2015-10-27 7:36 [dts] [00/12] add test start time xu,huilong
` (6 preceding siblings ...)
2015-10-27 7:36 ` [dts] [07/12] add test start time for mbuf " xu,huilong
@ 2015-10-27 7:36 ` xu,huilong
2015-10-27 8:42 ` Tu, LijuanX A
2015-10-27 7:36 ` [dts] [09/12] add test start time and exec cmd time for power " xu,huilong
` (5 subsequent siblings)
13 siblings, 1 reply; 28+ messages in thread
From: xu,huilong @ 2015-10-27 7:36 UTC (permalink / raw)
To: dts
Signed-off-by: xu,huilong <huilongx.xu@intel.com>
---
tests/TestSuite_unit_tests_mempool.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/TestSuite_unit_tests_mempool.py b/tests/TestSuite_unit_tests_mempool.py
index e88795b..0e4c211 100644
--- a/tests/TestSuite_unit_tests_mempool.py
+++ b/tests/TestSuite_unit_tests_mempool.py
@@ -70,7 +70,7 @@ class TestUnitTestsMempool(TestCase):
Run memory pool autotest.
"""
- self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 10)
+ self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 60)
out = self.dut.send_expect("mempool_autotest", "RTE>>", 120)
self.dut.send_expect("quit", "# ")
self.verify("Test OK" in out, "Test failed")
@@ -79,7 +79,7 @@ class TestUnitTestsMempool(TestCase):
"""
Run memory pool performance autotest.
"""
- self.dut.send_expect("./app/test/test -n 1 -c fffe", "R.*T.*E.*>.*>", 10)
+ self.dut.send_expect("./app/test/test -n 1 -c fffe", "R.*T.*E.*>.*>", 60)
out = self.dut.send_expect("mempool_perf_autotest", "RTE>>", 700)
self.dut.send_expect("quit", "# ")
self.verify("Test OK" in out, "Test failed")
--
1.9.3
^ permalink raw reply [flat|nested] 28+ messages in thread
* [dts] [09/12] add test start time and exec cmd time for power unit test
2015-10-27 7:36 [dts] [00/12] add test start time xu,huilong
` (7 preceding siblings ...)
2015-10-27 7:36 ` [dts] [08/12] add test start time for mempool " xu,huilong
@ 2015-10-27 7:36 ` xu,huilong
2015-10-27 8:38 ` Tu, LijuanX A
2015-10-27 7:36 ` [dts] [10/12] add test start time and exec cmd time for pmd_perf " xu,huilong
` (4 subsequent siblings)
13 siblings, 1 reply; 28+ messages in thread
From: xu,huilong @ 2015-10-27 7:36 UTC (permalink / raw)
To: dts
Signed-off-by: xu,huilong <huilongx.xu@intel.com>
---
tests/TestSuite_unit_tests_power.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/tests/TestSuite_unit_tests_power.py b/tests/TestSuite_unit_tests_power.py
index 3c0c230..c4075a7 100644
--- a/tests/TestSuite_unit_tests_power.py
+++ b/tests/TestSuite_unit_tests_power.py
@@ -71,8 +71,8 @@ class TestUnitTestsPower(TestCase):
Run power autotest.
"""
- self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 30)
- out = self.dut.send_expect("power_autotest", "RTE>>", 5)
+ self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 60)
+ out = self.dut.send_expect("power_autotest", "RTE>>", 60)
self.dut.send_expect("quit", "# ")
self.verify("Test OK" in out, "Test failed")
@@ -81,8 +81,8 @@ class TestUnitTestsPower(TestCase):
Run power acpi cpu frequency autotest.
"""
- self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 30)
- out = self.dut.send_expect("power_acpi_cpufreq_autotest", "RTE>>", 5)
+ self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 60)
+ out = self.dut.send_expect("power_acpi_cpufreq_autotest", "RTE>>", 60)
self.dut.send_expect("quit", "# ")
self.verify("Test OK" in out, "Test failed")
--
1.9.3
^ permalink raw reply [flat|nested] 28+ messages in thread
* [dts] [10/12] add test start time and exec cmd time for pmd_perf unit test
2015-10-27 7:36 [dts] [00/12] add test start time xu,huilong
` (8 preceding siblings ...)
2015-10-27 7:36 ` [dts] [09/12] add test start time and exec cmd time for power " xu,huilong
@ 2015-10-27 7:36 ` xu,huilong
2015-10-27 8:39 ` Tu, LijuanX A
2015-10-27 7:36 ` [dts] [11/12] add test start time for ring " xu,huilong
` (3 subsequent siblings)
13 siblings, 1 reply; 28+ messages in thread
From: xu,huilong @ 2015-10-27 7:36 UTC (permalink / raw)
To: dts
Signed-off-by: xu,huilong <huilongx.xu@intel.com>
---
tests/TestSuite_unit_tests_pmd_perf.py | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/tests/TestSuite_unit_tests_pmd_perf.py b/tests/TestSuite_unit_tests_pmd_perf.py
index 8745227..3be47f9 100644
--- a/tests/TestSuite_unit_tests_pmd_perf.py
+++ b/tests/TestSuite_unit_tests_pmd_perf.py
@@ -90,10 +90,10 @@ class TestUnitTestsPmdPerf(TestCase):
Run pmd stream control mode burst test case.
"""
- self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 30)
+ self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 60)
for mode in self.burst_ctlmodes:
- self.dut.send_expect("set_rxtx_sc %s" % mode, "RTE>>", 5)
- out = self.dut.send_expect("pmd_perf_autotest", "RTE>>", 60)
+ self.dut.send_expect("set_rxtx_sc %s" % mode, "RTE>>", 10)
+ out = self.dut.send_expect("pmd_perf_autotest", "RTE>>", 120)
match_regex = "Result: (\d+) cycles per packet"
m = re.compile(r"%s" % match_regex, re.S)
result = m.search(out)
@@ -113,16 +113,16 @@ class TestUnitTestsPmdPerf(TestCase):
for mode in self.rxtx_modes:
if mode is "scalar":
- self.dut.send_expect("./app/test/test_scalar -n 1 -c ffff", "R.*T.*E.*>.*>", 30)
+ self.dut.send_expect("./app/test/test_scalar -n 1 -c ffff", "R.*T.*E.*>.*>", 60)
else:
- self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 30)
+ self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 60)
table_row = [mode]
- self.dut.send_expect("set_rxtx_sc continuous", "RTE>>", 5)
- self.dut.send_expect("set_rxtx_mode %s" % mode, "RTE>>", 5)
+ self.dut.send_expect("set_rxtx_sc continuous", "RTE>>", 10)
+ self.dut.send_expect("set_rxtx_mode %s" % mode, "RTE>>",10)
for anchor in self.anchors:
- self.dut.send_expect("set_rxtx_anchor %s" % anchor, "RTE>>", 5)
- out = self.dut.send_expect("pmd_perf_autotest", "RTE>>", 60)
+ self.dut.send_expect("set_rxtx_anchor %s" % anchor, "RTE>>", 10)
+ out = self.dut.send_expect("pmd_perf_autotest", "RTE>>", 120)
match_regex = "Result: (\d+) cycles per packet"
m = re.compile(r"%s" % match_regex, re.S)
result = m.search(out)
--
1.9.3
^ permalink raw reply [flat|nested] 28+ messages in thread
* [dts] [11/12] add test start time for ring unit test
2015-10-27 7:36 [dts] [00/12] add test start time xu,huilong
` (9 preceding siblings ...)
2015-10-27 7:36 ` [dts] [10/12] add test start time and exec cmd time for pmd_perf " xu,huilong
@ 2015-10-27 7:36 ` xu,huilong
2015-10-27 8:40 ` Tu, LijuanX A
2015-10-27 7:36 ` [dts] [12/12] add test start time for timer " xu,huilong
` (2 subsequent siblings)
13 siblings, 1 reply; 28+ messages in thread
From: xu,huilong @ 2015-10-27 7:36 UTC (permalink / raw)
To: dts
Signed-off-by: xu,huilong <huilongx.xu@intel.com>
---
tests/TestSuite_unit_tests_ring.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/TestSuite_unit_tests_ring.py b/tests/TestSuite_unit_tests_ring.py
index cae07ef..d542539 100644
--- a/tests/TestSuite_unit_tests_ring.py
+++ b/tests/TestSuite_unit_tests_ring.py
@@ -70,7 +70,7 @@ class TestUnitTestsRing(TestCase):
Run ring autotest.
"""
- self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 10)
+ self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 60)
out = self.dut.send_expect("ring_autotest", "RTE>>", 36000)
self.verify("Test OK" in out, "Test failed")
self.dut.send_expect("set_watermark test 100", "RTE>>")
@@ -83,7 +83,7 @@ class TestUnitTestsRing(TestCase):
Run ring performance autotest.
"""
- self.dut.send_expect("./app/test/test -n 1 -c fffe", "R.*T.*E.*>.*>", 30)
+ self.dut.send_expect("./app/test/test -n 1 -c fffe", "R.*T.*E.*>.*>", 60)
out = self.dut.send_expect("ring_perf_autotest", "RTE>>", 210)
self.dut.send_expect("quit", "# ")
self.verify("Test OK" in out, "Test failed")
--
1.9.3
^ permalink raw reply [flat|nested] 28+ messages in thread
* [dts] [12/12] add test start time for timer unit test
2015-10-27 7:36 [dts] [00/12] add test start time xu,huilong
` (10 preceding siblings ...)
2015-10-27 7:36 ` [dts] [11/12] add test start time for ring " xu,huilong
@ 2015-10-27 7:36 ` xu,huilong
2015-10-27 8:21 ` [dts] [00/12] add test start time Tu, LijuanX A
2015-10-27 8:54 ` Liu, Yong
13 siblings, 0 replies; 28+ messages in thread
From: xu,huilong @ 2015-10-27 7:36 UTC (permalink / raw)
To: dts
Signed-off-by: xu,huilong <huilongx.xu@intel.com>
---
tests/TestSuite_unit_tests_timer.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/TestSuite_unit_tests_timer.py b/tests/TestSuite_unit_tests_timer.py
index 70d26b2..774de5d 100644
--- a/tests/TestSuite_unit_tests_timer.py
+++ b/tests/TestSuite_unit_tests_timer.py
@@ -69,7 +69,7 @@ class TestUnitTestsTimer(TestCase):
"""
Run timer autotest.
"""
- self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 10)
+ self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 60)
out = self.dut.send_expect("timer_autotest", "RTE>>", 60)
self.dut.send_expect("quit", "# ")
self.verify("Test OK" in out, "Test failed")
@@ -78,7 +78,7 @@ class TestUnitTestsTimer(TestCase):
"""
Run timer autotest.
"""
- self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 10)
+ self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 60)
out = self.dut.send_expect("timer_perf_autotest", "RTE>>", 60)
self.dut.send_expect("quit", "# ")
self.verify("Test OK" in out, "Test failed")
--
1.9.3
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [dts] [00/12] add test start time
2015-10-27 7:36 [dts] [00/12] add test start time xu,huilong
` (11 preceding siblings ...)
2015-10-27 7:36 ` [dts] [12/12] add test start time for timer " xu,huilong
@ 2015-10-27 8:21 ` Tu, LijuanX A
2015-10-27 8:43 ` Liu, Yong
2015-10-27 8:54 ` Liu, Yong
13 siblings, 1 reply; 28+ messages in thread
From: Tu, LijuanX A @ 2015-10-27 8:21 UTC (permalink / raw)
To: Xu, HuilongX, dts
Acked by tu,lijuan <lijuan.a.tu@intel.com>
> *** BLURB HERE ***
>
> in our test suite, test app start time only 10 seconds, so dts raise timeout when start test.
> add start time to 60 seconds.
> xu,huilong (12):
> add test start time and exec cmd time for cmdline unit test
> add test start time and exec cmd time for eal unit test
> add test start time and exec cmd time for dump unit test
> add test start time for ivshmem unit test
> add test start time for kni unit test
> add test start time for lpm unit test
> add test start time for mbuf unit test
> add test start time for mempool unit test
> add test start time and exec cmd time for power unit test
> add test start time and exec cmd time for pmd_perf unit test
> add test start time for ring unit test
> add test start time for timer unit test
>
> tests/TestSuite_unit_tests_cmdline.py | 4 +-
> tests/TestSuite_unit_tests_dump.py | 34 ++++----
> tests/TestSuite_unit_tests_eal.py | 138 +++++++++++++++++----------------
> tests/TestSuite_unit_tests_ivshmem.py | 2 +-
> tests/TestSuite_unit_tests_kni.py | 2 +-
> tests/TestSuite_unit_tests_lpm.py | 4 +-
> tests/TestSuite_unit_tests_mbuf.py | 2 +-
> tests/TestSuite_unit_tests_mempool.py | 4 +-
> tests/TestSuite_unit_tests_pmd_perf.py | 18 ++---
> tests/TestSuite_unit_tests_power.py | 8 +-
> tests/TestSuite_unit_tests_ring.py | 4 +-
> tests/TestSuite_unit_tests_timer.py | 4 +-
> 12 files changed, 114 insertions(+), 110 deletions(-)
>
> --
> 1.9.3
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [dts] [01/12] add test start time and exec cmd time for cmdline unit test
2015-10-27 7:36 ` [dts] [01/12] add test start time and exec cmd time for cmdline unit test xu,huilong
@ 2015-10-27 8:28 ` Tu, LijuanX A
2015-10-27 8:29 ` Tu, LijuanX A
1 sibling, 0 replies; 28+ messages in thread
From: Tu, LijuanX A @ 2015-10-27 8:28 UTC (permalink / raw)
To: Xu, HuilongX, dts
Acked by tu,lijuan <lijuanx.a.tu@intel.com>
> Signed-off-by: xu,huilong <huilongx.xu@intel.com>
> ---
> tests/TestSuite_unit_tests_cmdline.py | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/tests/TestSuite_unit_tests_cmdline.py b/tests/TestSuite_unit_tests_cmdline.py
> index b3a1769..3ece175 100644
> --- a/tests/TestSuite_unit_tests_cmdline.py
> +++ b/tests/TestSuite_unit_tests_cmdline.py
> @@ -70,8 +70,8 @@ class TestUnitTestsCmdline(TestCase):
> Run cmdline autotests in RTE comand line.
> """
>
> - self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 10)
> - out = self.dut.send_expect("cmdline_autotest", "RTE>>", 10)
> + self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 60)
> + out = self.dut.send_expect("cmdline_autotest", "RTE>>", 60)
> self.dut.send_expect("quit", "# ")
> self.verify("Test OK" in out, "Test failed")
> return 'SUCCESS'
> --
> 1.9.3
>
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [dts] [01/12] add test start time and exec cmd time for cmdline unit test
2015-10-27 7:36 ` [dts] [01/12] add test start time and exec cmd time for cmdline unit test xu,huilong
2015-10-27 8:28 ` Tu, LijuanX A
@ 2015-10-27 8:29 ` Tu, LijuanX A
1 sibling, 0 replies; 28+ messages in thread
From: Tu, LijuanX A @ 2015-10-27 8:29 UTC (permalink / raw)
To: Xu, HuilongX, dts
Acked by tu,lijuan <lijuanx.a.tu@intel.com>
> Signed-off-by: xu,huilong <huilongx.xu@intel.com>
> ---
> tests/TestSuite_unit_tests_cmdline.py | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/tests/TestSuite_unit_tests_cmdline.py b/tests/TestSuite_unit_tests_cmdline.py
> index b3a1769..3ece175 100644
> --- a/tests/TestSuite_unit_tests_cmdline.py
> +++ b/tests/TestSuite_unit_tests_cmdline.py
> @@ -70,8 +70,8 @@ class TestUnitTestsCmdline(TestCase):
> Run cmdline autotests in RTE comand line.
> """
>
> - self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 10)
> - out = self.dut.send_expect("cmdline_autotest", "RTE>>", 10)
> + self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 60)
> + out = self.dut.send_expect("cmdline_autotest", "RTE>>", 60)
> self.dut.send_expect("quit", "# ")
> self.verify("Test OK" in out, "Test failed")
> return 'SUCCESS'
> --
>
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [dts] [02/12] add test start time and exec cmd time for eal unit test
2015-10-27 7:36 ` [dts] [02/12] add test start time and exec cmd time for eal " xu,huilong
@ 2015-10-27 8:31 ` Tu, LijuanX A
0 siblings, 0 replies; 28+ messages in thread
From: Tu, LijuanX A @ 2015-10-27 8:31 UTC (permalink / raw)
To: Xu, HuilongX, dts
Acked by tu,lijuan <lijuanx.a.tu@intel.com>
> Signed-off-by: xu,huilong <huilongx.xu@intel.com>
> ---
> tests/TestSuite_unit_tests_eal.py | 138 +++++++++++++++++++-------------------
> 1 file changed, 70 insertions(+), 68 deletions(-)
>
> diff --git a/tests/TestSuite_unit_tests_eal.py b/tests/TestSuite_unit_tests_eal.py
> index b8bd5a3..0945cd6 100644
> --- a/tests/TestSuite_unit_tests_eal.py
> +++ b/tests/TestSuite_unit_tests_eal.py
> @@ -33,6 +33,8 @@ class TestUnitTestsEal(TestCase):
> out = self.dut.build_dpdk_apps('./app/test/')
> self.verify('make: Leaving directory' in out, "Compilation failed")
> [arch, machine, self.env, toolchain] = self.target.split('-')
> + self.start_test_time = 60
> + self.run_cmd_time = 60
>
> def set_up(self):
> """
> @@ -46,8 +48,8 @@ class TestUnitTestsEal(TestCase):
> """
>
> self.dut.send_expect("%s ./app/test/test -n 1 -c ffff" % self.dut.taskset(1),
> - "R.*T.*E.*>.*>", 10)
> - out = self.dut.send_expect("version_autotest", "RTE>>", 30)
> + "R.*T.*E.*>.*>", self.start_test_time)
> + out = self.dut.send_expect("version_autotest", "RTE>>", self.run_cmd_time)
> self.dut.send_expect("quit", "# ")
> self.verify("Test OK" in out, "Test failed")
>
> @@ -57,8 +59,8 @@ class TestUnitTestsEal(TestCase):
> """
>
> self.dut.send_expect("%s ./app/test/test -n 1 -c ffff" % self.dut.taskset(1),
> - "R.*T.*E.*>.*>", 10)
> - out = self.dut.send_expect("memcpy_autotest", "RTE>>", 30)
> + "R.*T.*E.*>.*>", self.start_test_time)
> + out = self.dut.send_expect("memcpy_autotest", "RTE>>", self.run_cmd_time)
> self.dut.send_expect("quit", "# ")
> self.verify("Test OK" in out, "Test failed")
>
> @@ -68,8 +70,8 @@ class TestUnitTestsEal(TestCase):
> """
>
> self.dut.send_expect("%s ./app/test/test -n 1 -c ffff" % self.dut.taskset(1),
> - "R.*T.*E.*>.*>", 10)
> - out = self.dut.send_expect("common_autotest", "RTE>>", 30)
> + "R.*T.*E.*>.*>", self.start_test_time)
> + out = self.dut.send_expect("common_autotest", "RTE>>", self.run_cmd_time)
> self.dut.send_expect("quit", "# ")
> self.verify("Test OK" in out, "Test failed")
>
> @@ -79,8 +81,8 @@ class TestUnitTestsEal(TestCase):
> """
>
> self.dut.send_expect("%s ./app/test/test -n 1 -c ffff" % self.dut.taskset(1),
> - "R.*T.*E.*>.*>", 10)
> - out = self.dut.send_expect("eal_fs_autotest", "RTE>>", 30)
> + "R.*T.*E.*>.*>", self.start_test_time)
> + out = self.dut.send_expect("eal_fs_autotest", "RTE>>", self.run_cmd_time)
> self.dut.send_expect("quit", "# ")
> self.verify("Test OK" in out, "Test failed")
>
> @@ -90,8 +92,8 @@ class TestUnitTestsEal(TestCase):
> """
>
> self.dut.send_expect("%s ./app/test/test -n 1 -c ffff" % self.dut.taskset(1),
> - "R.*T.*E.*>.*>", 10)
> - out = self.dut.send_expect("memcpy_autotest", "RTE>>", 30)
> + "R.*T.*E.*>.*>", self.start_test_time)
> + out = self.dut.send_expect("memcpy_autotest", "RTE>>", self.run_cmd_time)
> self.dut.send_expect("quit", "# ")
> self.verify("Test OK" in out, "Test failed")
>
> @@ -100,8 +102,8 @@ class TestUnitTestsEal(TestCase):
> Run memcopy performance autotest.
> """
> self.dut.send_expect("%s ./app/test/test -n 1 -c ffff" % self.dut.taskset(1),
> - "R.*T.*E.*>.*>", 10)
> - out = self.dut.send_expect("memcpy_perf_autotest", "RTE>>", 240)
> + "R.*T.*E.*>.*>", self.start_test_time)
> + out = self.dut.send_expect("memcpy_perf_autotest", "RTE>>", self.run_cmd_time * 4)
> self.dut.send_expect("quit", "# ")
> self.verify("Test OK" in out, "Test failed")
>
> @@ -110,8 +112,8 @@ class TestUnitTestsEal(TestCase):
> Run hash autotest.
> """
>
> - self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 10)
> - out = self.dut.send_expect("hash_autotest", "RTE>>", 40)
> + self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", self.start_test_time)
> + out = self.dut.send_expect("hash_autotest", "RTE>>", self.run_cmd_time)
> self.dut.send_expect("quit", "# ")
> self.verify("Test OK" in out, "Test failed")
>
> @@ -121,8 +123,8 @@ class TestUnitTestsEal(TestCase):
> """
>
> self.dut.send_expect("%s ./app/test/test -n 1 -c fffe" % self.dut.taskset(1),
> - "R.*T.*E.*>.*>", 10)
> - out = self.dut.send_expect("hash_perf_autotest", "RTE>>", 600)
> + "R.*T.*E.*>.*>", self.start_test_time)
> + out = self.dut.send_expect("hash_perf_autotest", "RTE>>", self.run_cmd_time * 10)
> self.dut.send_expect("quit", "# ")
> self.verify("Test OK" in out, "Test failed")
>
> @@ -131,8 +133,8 @@ class TestUnitTestsEal(TestCase):
> Run malloc autotest.
> """
>
> - self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 10)
> - out = self.dut.send_expect("malloc_autotest", "RTE>>", 30)
> + self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", self.start_test_time)
> + out = self.dut.send_expect("malloc_autotest", "RTE>>", self.run_cmd_time)
> self.dut.send_expect("quit", "# ")
> self.verify("Test OK" in out, "Test failed")
>
> @@ -146,8 +148,8 @@ class TestUnitTestsEal(TestCase):
> else:
> # mask cores only on socket 0
> cmdline = "%s ./app/test/test -n 1 -c 5555" % self.dut.taskset(1)
> - self.dut.send_expect(cmdline, "R.*T.*E.*>.*>", 10)
> - out = self.dut.send_expect("func_reentrancy_autotest", "RTE>>", 30)
> + 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", "# ")
> self.verify("Test OK" in out, "Test failed")
>
> @@ -156,8 +158,8 @@ class TestUnitTestsEal(TestCase):
> Run pci autotest.
> """
>
> - self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 10)
> - out = self.dut.send_expect("pci_autotest", "RTE>>", 30)
> + self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", self.start_test_time)
> + out = self.dut.send_expect("pci_autotest", "RTE>>", self.run_cmd_time)
> self.dut.send_expect("quit", "# ")
> self.verify("Test OK" in out, "Test failed")
>
> @@ -166,8 +168,8 @@ class TestUnitTestsEal(TestCase):
> Run atomic autotest.
> """
>
> - self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 10)
> - out = self.dut.send_expect("atomic_autotest", "RTE>>", 30)
> + self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", self.start_test_time)
> + out = self.dut.send_expect("atomic_autotest", "RTE>>", self.run_cmd_time)
> self.dut.send_expect("quit", "# ")
> self.verify("Test OK" in out, "Test failed")
>
> @@ -176,8 +178,8 @@ class TestUnitTestsEal(TestCase):
> Run memory autotest.
> """
>
> - self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 10)
> - out = self.dut.send_expect('memory_autotest', "RTE>>", 20)
> + self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", self.start_test_time)
> + out = self.dut.send_expect('memory_autotest', "RTE>>", self.run_cmd_time)
> regexp = "phys:0x[0-9a-f]*, len:([0-9a-f]*), virt:0x[0-9a-f]*, socket_id:[0-9]*"
> match = dts.regexp(out, regexp)
> size = int(match, 16)
> @@ -189,8 +191,8 @@ class TestUnitTestsEal(TestCase):
> Run lcore autotest.
> """
>
> - self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 10)
> - out = self.dut.send_expect("per_lcore_autotest", "RTE>>", 20)
> + self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", self.start_test_time)
> + out = self.dut.send_expect("per_lcore_autotest", "RTE>>", self.run_cmd_time)
> self.dut.send_expect("quit", "# ")
> self.verify("Test OK" in out, "Test failed")
>
> @@ -199,8 +201,8 @@ class TestUnitTestsEal(TestCase):
> Run spinlock autotest.
> """
>
> - self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 10)
> - out = self.dut.send_expect("spinlock_autotest", "RTE>>", 120)
> + self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", self.start_test_time)
> + out = self.dut.send_expect("spinlock_autotest", "RTE>>", self.run_cmd_time * 2)
> self.dut.send_expect("quit", "# ")
> self.verify("Test OK" in out, "Test failed")
>
> @@ -209,8 +211,8 @@ class TestUnitTestsEal(TestCase):
> Run rwlock autotest.
> """
>
> - self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 10)
> - out = self.dut.send_expect("rwlock_autotest", "RTE>>", 20)
> + self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", self.start_test_time)
> + out = self.dut.send_expect("rwlock_autotest", "RTE>>", self.run_cmd_time)
> self.dut.send_expect("quit", "# ")
> self.verify("Test OK" in out, "Test failed")
>
> @@ -219,8 +221,8 @@ class TestUnitTestsEal(TestCase):
> Run prefetch autotest.
> """
>
> - self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 10)
> - out = self.dut.send_expect("prefetch_autotest", "RTE>>", 20)
> + self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", self.start_test_time)
> + out = self.dut.send_expect("prefetch_autotest", "RTE>>", self.run_cmd_time)
> self.dut.send_expect("quit", "# ")
> self.verify("Test OK" in out, "Test failed")
>
> @@ -229,8 +231,8 @@ class TestUnitTestsEal(TestCase):
> Run byte order autotest.
> """
>
> - self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 10)
> - out = self.dut.send_expect("byteorder_autotest", "RTE>>", 10)
> + self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", self.start_test_time)
> + out = self.dut.send_expect("byteorder_autotest", "RTE>>", self.run_cmd_time)
> self.dut.send_expect("quit", "# ")
> self.verify("Test OK" in out, "Test failed")
>
> @@ -239,8 +241,8 @@ class TestUnitTestsEal(TestCase):
> Run cycles autotest.
> """
>
> - self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 10)
> - out = self.dut.send_expect("cycles_autotest", "RTE>>", 20)
> + self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", self.start_test_time)
> + out = self.dut.send_expect("cycles_autotest", "RTE>>", self.run_cmd_time)
> self.dut.send_expect("quit", "# ")
> self.verify("Test OK" in out, "Test failed")
>
> @@ -249,8 +251,8 @@ class TestUnitTestsEal(TestCase):
> Run logs autotest.
> """
>
> - self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 10)
> - out = self.dut.send_expect("logs_autotest", "RTE>>", 10)
> + self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", self.start_test_time)
> + out = self.dut.send_expect("logs_autotest", "RTE>>", self.run_cmd_time)
> self.dut.send_expect("quit", "# ")
> self.verify("Test OK" in out, "Test failed")
>
> @@ -259,8 +261,8 @@ class TestUnitTestsEal(TestCase):
> Run memzone autotest.
> """
>
> - self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 10)
> - out = self.dut.send_expect("memzone_autotest", "RTE>>", 10)
> + self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", self.start_test_time)
> + out = self.dut.send_expect("memzone_autotest", "RTE>>", self.run_cmd_time)
> self.dut.send_expect("quit", "# ")
> self.verify("Test OK" in out, "Test failed")
>
> @@ -269,8 +271,8 @@ class TestUnitTestsEal(TestCase):
> Run debug autotest.
> """
>
> - self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 10)
> - out = self.dut.send_expect("debug_autotest", "RTE>>", 10)
> + self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", self.start_test_time)
> + out = self.dut.send_expect("debug_autotest", "RTE>>", self.run_cmd_time)
> self.dut.send_expect("quit", "# ")
> self.verify("Test OK" in out, "Test failed")
>
> @@ -279,8 +281,8 @@ class TestUnitTestsEal(TestCase):
> Run eal flags autotest.
> """
>
> - self.dut.send_expect("./app/test/test -n 1 -c ffff -m 64", "R.*T.*E.*>.*>", 10)
> - out = self.dut.send_expect("eal_flags_autotest", "RTE>>", 40)
> + self.dut.send_expect("./app/test/test -n 1 -c ffff -m 64", "R.*T.*E.*>.*>", self.start_test_time)
> + out = self.dut.send_expect("eal_flags_autotest", "RTE>>", self.run_cmd_time)
> self.dut.send_expect("quit", "# ")
> self.verify("Test OK" in out, "Test failed")
>
> @@ -290,8 +292,8 @@ class TestUnitTestsEal(TestCase):
> """
>
> self.verify(self.env == "linuxapp", "Alarm only supported in linux env")
> - self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 10)
> - out = self.dut.send_expect("alarm_autotest", "RTE>>", 60)
> + self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", self.start_test_time)
> + out = self.dut.send_expect("alarm_autotest", "RTE>>", self.run_cmd_time)
> self.dut.send_expect("quit", "# ")
> self.verify("Test OK" in out, "Test failed")
>
> @@ -300,8 +302,8 @@ class TestUnitTestsEal(TestCase):
> Run CPU flags autotest.
> """
>
> - self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 10)
> - out = self.dut.send_expect("cpuflags_autotest", "RTE>>", 60)
> + self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", self.start_test_time)
> + out = self.dut.send_expect("cpuflags_autotest", "RTE>>", self.run_cmd_time)
> self.dut.send_expect("quit", "# ")
> self.verify("Test OK" in out, "Test failed")
>
> @@ -310,8 +312,8 @@ class TestUnitTestsEal(TestCase):
> Run errno autotest.
> """
>
> - self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*TE>>|RT.*E>>|RTE.*>>|RTE>.*>", 20)
> - out = self.dut.send_expect("errno_autotest", "RTE>>", 60)
> + self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*TE>>|RT.*E>>|RTE.*>>|RTE>.*>", self.start_test_time)
> + out = self.dut.send_expect("errno_autotest", "RTE>>", self.run_cmd_time)
> self.dut.send_expect("quit", "# ")
> self.verify("Test OK" in out, "Test failed")
>
> @@ -321,8 +323,8 @@ class TestUnitTestsEal(TestCase):
> """
>
> self.verify(self.env == "linuxapp", "Interrupt only supported in linux env")
> - self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*TE>>|RT.*E>>|RTE.*>>|RTE>.*>", 20)
> - out = self.dut.send_expect("interrupt_autotest", "RTE>>", 60)
> + self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*TE>>|RT.*E>>|RTE.*>>|RTE>.*>", self.start_test_time)
> + out = self.dut.send_expect("interrupt_autotest", "RTE>>", self.run_cmd_time)
> self.dut.send_expect("quit", "# ")
> self.verify("Test OK" in out, "Test failed")
>
> @@ -331,8 +333,8 @@ class TestUnitTestsEal(TestCase):
> Run multiprocess autotest.
> """
>
> - self.dut.send_expect("./app/test/test -n 1 -c ffff -m 64", "R.*T.*E.*>.*>", 10)
> - out = self.dut.send_expect("multiprocess_autotest", "RTE>>", 60)
> + self.dut.send_expect("./app/test/test -n 1 -c ffff -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")
>
> @@ -341,8 +343,8 @@ class TestUnitTestsEal(TestCase):
> Run string autotest.
> """
>
> - self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 10)
> - out = self.dut.send_expect("string_autotest", "RTE>>", 60)
> + self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", self.start_test_time)
> + out = self.dut.send_expect("string_autotest", "RTE>>", self.run_cmd_time)
> self.dut.send_expect("quit", "# ")
> self.verify("Test OK" in out, "Test failed")
>
> @@ -351,8 +353,8 @@ class TestUnitTestsEal(TestCase):
> Run tailq autotest.
> """
>
> - self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 10)
> - out = self.dut.send_expect("tailq_autotest", "RTE>>", 60)
> + self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", self.start_test_time)
> + out = self.dut.send_expect("tailq_autotest", "RTE>>", self.run_cmd_time)
> self.dut.send_expect("quit", "# ")
> self.verify("Test OK" in out, "Test failed")
>
> @@ -361,8 +363,8 @@ class TestUnitTestsEal(TestCase):
> Run devargs autotest.
> """
>
> - self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 10)
> - out = self.dut.send_expect("devargs_autotest", "RTE>>", 60)
> + self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", self.start_test_time)
> + out = self.dut.send_expect("devargs_autotest", "RTE>>", self.run_cmd_time)
> self.dut.send_expect("quit", "# ")
> self.verify("Test OK" in out, "Test failed")
>
> @@ -371,8 +373,8 @@ class TestUnitTestsEal(TestCase):
> Run kvargs autotest.
> """
>
> - self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 10)
> - out = self.dut.send_expect("kvargs_autotest", "RTE>>", 60)
> + self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", self.start_test_time)
> + out = self.dut.send_expect("kvargs_autotest", "RTE>>", self.run_cmd_time)
> self.dut.send_expect("quit", "# ")
> self.verify("Test OK" in out, "Test failed")
>
> @@ -381,8 +383,8 @@ class TestUnitTestsEal(TestCase):
> Run acl autotest.
> """
>
> - self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 10)
> - out = self.dut.send_expect("acl_autotest", "RTE>>", 60)
> + self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", self.start_test_time)
> + out = self.dut.send_expect("acl_autotest", "RTE>>", self.run_cmd_time)
> self.dut.send_expect("quit", "# ")
> self.verify("Test OK" in out, "Test failed")
>
> @@ -391,8 +393,8 @@ class TestUnitTestsEal(TestCase):
> Run acl autotest.
> """
>
> - self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 10)
> - out = self.dut.send_expect("link_bonding_autotest", "RTE>>", 60)
> + self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", self.start_test_time)
> + out = self.dut.send_expect("link_bonding_autotest", "RTE>>", self.run_cmd_time)
> self.dut.send_expect("quit", "# ")
> self.verify("Test OK" in out, "Test failed")
>
> --
> 1.9.3
>
>
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [dts] [03/12] add test start time and exec cmd time for dump unit test
2015-10-27 7:36 ` [dts] [03/12] add test start time and exec cmd time for dump " xu,huilong
@ 2015-10-27 8:33 ` Tu, LijuanX A
0 siblings, 0 replies; 28+ messages in thread
From: Tu, LijuanX A @ 2015-10-27 8:33 UTC (permalink / raw)
To: Xu, HuilongX, dts
Acked by tu,lijuan <lijuanx.a.tu@intel.com>
> Signed-off-by: xu,huilong <huilongx.xu@intel.com>
> ---
> tests/TestSuite_unit_tests_dump.py | 34 ++++++++++++++++++----------------
> 1 file changed, 18 insertions(+), 16 deletions(-)
>
> diff --git a/tests/TestSuite_unit_tests_dump.py b/tests/TestSuite_unit_tests_dump.py
> index ce04439..2052cb4 100644
> --- a/tests/TestSuite_unit_tests_dump.py
> +++ b/tests/TestSuite_unit_tests_dump.py
> @@ -62,6 +62,8 @@ class TestUnitTestsDump(TestCase):
> # Based on h/w type, choose how many ports to use
> self.dut_ports = self.dut.get_ports(self.nic)
> self.verify(len(self.dut_ports) >= 1, "Insufficient ports for testing")
> + self.start_test_time = 60
> + self.run_cmd_time = 60
>
> def set_up(self):
> """
> @@ -74,8 +76,8 @@ class TestUnitTestsDump(TestCase):
> """
> Run history log dump test case.
> """
> - self.dut.send_expect("./%s/app/test -n 1 -c ffff" % (self.target), "R.*T.*E.*>.*>", 10)
> - out = self.dut.send_expect("dump_log_history", "RTE>>", 120)
> + self.dut.send_expect("./%s/app/test -n 1 -c ffff" % (self.target), "R.*T.*E.*>.*>", self.start_test_time)
> + out = self.dut.send_expect("dump_log_history", "RTE>>",
> + self.run_cmd_time * 2)
> self.dut.send_expect("quit", "# ")
> self.verify("EAL" in out, "Test failed")
>
> @@ -83,8 +85,8 @@ class TestUnitTestsDump(TestCase):
> """
> Run history log dump test case.
> """
> - self.dut.send_expect("./%s/app/test -n 1 -c ffff" % (self.target), "R.*T.*E.*>.*>", 10)
> - out = self.dut.send_expect("dump_ring", "RTE>>", 120)
> + self.dut.send_expect("./%s/app/test -n 1 -c ffff" % (self.target), "R.*T.*E.*>.*>", self.start_test_time)
> + out = self.dut.send_expect("dump_ring", "RTE>>",
> + self.run_cmd_time)
> self.dut.send_expect("quit", "# ")
> elements = ['ring', 'address', 'flags', 'size', 'ct', 'ch', 'pt', 'ph', 'used', 'avail', 'watermark']
> match_regex = "ring <(.*?)>@0x(.*)\r\n"
> @@ -100,8 +102,8 @@ class TestUnitTestsDump(TestCase):
> """
> Run mempool dump test case.
> """
> - self.dut.send_expect("./%s/app/test -n 1 -c ffff" % (self.target), "R.*T.*E.*>.*>", 10)
> - out = self.dut.send_expect("dump_mempool", "RTE>>", 120)
> + self.dut.send_expect("./%s/app/test -n 1 -c ffff" % (self.target), "R.*T.*E.*>.*>", self.start_test_time)
> + out = self.dut.send_expect("dump_mempool", "RTE>>",
> + self.run_cmd_time * 2)
> self.dut.send_expect("quit", "# ")
> elements = ['mempool', 'address', 'flags', 'ring', 'phys_addr', 'size', 'header_size', 'elt_size',
> 'trailer_size', 'total_obj_size', 'private_data_size', 'pg_num', 'pg_shift', 'pg_mask', @@ -120,8 +122,8 @@ class TestUnitTestsDump(TestCase):
> """
> Run physical memory dump test case.
> """
> - self.dut.send_expect("./%s/app/test -n 1 -c ffff" % (self.target), "R.*T.*E.*>.*>", 10)
> - out = self.dut.send_expect("dump_physmem", "RTE>>", 120)
> + self.dut.send_expect("./%s/app/test -n 1 -c ffff" % (self.target), "R.*T.*E.*>.*>", self.start_test_time)
> + out = self.dut.send_expect("dump_physmem", "RTE>>",
> + self.run_cmd_time * 2)
> self.dut.send_expect("quit", "# ")
> elements = ['Segment', 'phys', 'len', 'virt', 'socket_id', 'hugepage_sz', 'nchannel', 'nrank']
> match_regex = "Segment (\d)+:"
> @@ -140,8 +142,8 @@ class TestUnitTestsDump(TestCase):
> """
> Run memzone dump test case.
> """
> - self.dut.send_expect("./%s/app/test -n 1 -c ffff" % (self.target), "R.*T.*E.*>.*>", 10)
> - out = self.dut.send_expect("dump_memzone", "RTE>>", 120)
> + self.dut.send_expect("./%s/app/test -n 1 -c ffff" % (self.target), "R.*T.*E.*>.*>", self.start_test_time)
> + out = self.dut.send_expect("dump_memzone", "RTE>>",
> + self.run_cmd_time * 2)
> self.dut.send_expect("quit", "# ")
>
> elements = ['Zone', 'name', 'phys', 'len', 'virt', 'socket_id', 'flags'] @@ -162,8 +164,8 @@ class TestUnitTestsDump(TestCase):
> """
> Run struct size dump test case.
> """
> - self.dut.send_expect("./%s/app/test -n 1 -c ffff" % (self.target), "R.*T.*E.*>.*>", 10)
> - out = self.dut.send_expect("dump_struct_sizes", "RTE>>", 120)
> + self.dut.send_expect("./%s/app/test -n 1 -c ffff" % (self.target), "R.*T.*E.*>.*>", self.start_test_time)
> + out = self.dut.send_expect("dump_struct_sizes", "RTE>>",
> + self.run_cmd_time * 2)
> self.dut.send_expect("quit", "# ")
>
> elements = ['struct rte_mbuf', 'struct rte_mempool', 'struct rte_ring'] @@ -181,15 +183,15 @@ class TestUnitTestsDump(TestCase):
> """
> test_port = self.dut_ports[0]
> self.dut.send_expect("./%s/app/test -n 1 -c ffff -b 0000:%s"
> - % (self.target, self.dut.ports_info[test_port]['pci']), "R.*T.*E.*>.*>", 10)
> - out = self.dut.send_expect("dump_devargs", "RTE>>", 120)
> + % (self.target, self.dut.ports_info[test_port]['pci']), "R.*T.*E.*>.*>", self.start_test_time)
> + out = self.dut.send_expect("dump_devargs", "RTE>>",
> + self.run_cmd_time * 2)
> self.dut.send_expect("quit", "# ")
> black_str = "PCI blacklist 0000:%s" % self.dut.ports_info[test_port]['pci']
> self.verify(black_str in out, "Dump black list failed")
>
> self.dut.send_expect("./%s/app/test -n 1 -c ffff -w 0000:%s"
> - % (self.target, self.dut.ports_info[test_port]['pci']), "R.*T.*E.*>.*>", 10)
> - out = self.dut.send_expect("dump_devargs", "RTE>>", 120)
> + % (self.target, self.dut.ports_info[test_port]['pci']), "R.*T.*E.*>.*>", self.start_test_time)
> + out = self.dut.send_expect("dump_devargs", "RTE>>",
> + self.run_cmd_time * 2)
> self.dut.send_expect("quit", "# ")
>
> white_str = "PCI whitelist 0000:%s" % self.dut.ports_info[test_port]['pci']
> --
> 1.9.3
>
>
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [dts] [04/12] add test start time for ivshmem unit test
2015-10-27 7:36 ` [dts] [04/12] add test start time for ivshmem " xu,huilong
@ 2015-10-27 8:34 ` Tu, LijuanX A
0 siblings, 0 replies; 28+ messages in thread
From: Tu, LijuanX A @ 2015-10-27 8:34 UTC (permalink / raw)
To: Xu, HuilongX, dts
Acked by tu,lijuan <lijuanx.a.tu@intel.com>
> Signed-off-by: xu,huilong <huilongx.xu@intel.com>
> ---
> tests/TestSuite_unit_tests_ivshmem.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/TestSuite_unit_tests_ivshmem.py b/tests/TestSuite_unit_tests_ivshmem.py
> index 637d2cc..31e8902 100644
> --- a/tests/TestSuite_unit_tests_ivshmem.py
> +++ b/tests/TestSuite_unit_tests_ivshmem.py
> @@ -72,7 +72,7 @@ class TestUnitTestsIvshmem(TestCase):
> """
> Run Inter-VM share memory test.
> """
> - self.dut.send_expect("./%s/app/test -n 1 -c ffff" % (self.target), "R.*T.*E.*>.*>", 20)
> + self.dut.send_expect("./%s/app/test -n 1 -c ffff" % (self.target), "R.*T.*E.*>.*>", 60)
> out = self.dut.send_expect("ivshmem_autotest", "RTE>>", 120)
> self.dut.send_expect("quit", "# ")
> self.verify("Test OK" in out, "Test failed")
> --
> 1.9.3
>
>
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [dts] [05/12] add test start time for kni unit test
2015-10-27 7:36 ` [dts] [05/12] add test start time for kni " xu,huilong
@ 2015-10-27 8:35 ` Tu, LijuanX A
0 siblings, 0 replies; 28+ messages in thread
From: Tu, LijuanX A @ 2015-10-27 8:35 UTC (permalink / raw)
To: Xu, HuilongX, dts
Acked by tu,lijuan <lijuanx.a.tu@intel.com>
> Signed-off-by: xu,huilong <huilongx.xu@intel.com>
> ---
> tests/TestSuite_unit_tests_kni.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/TestSuite_unit_tests_kni.py b/tests/TestSuite_unit_tests_kni.py
> index ec5f3e0..20df8cc 100644
> --- a/tests/TestSuite_unit_tests_kni.py
> +++ b/tests/TestSuite_unit_tests_kni.py
> @@ -87,7 +87,7 @@ class TestUnitTestsKni(TestCase):
> """
> Run kni autotest.
> """
> - self.dut.send_expect("./app/test/test -n 1 -c fffe", "R.*T.*E.*>.*>", 30)
> + self.dut.send_expect("./app/test/test -n 1 -c fffe", "R.*T.*E.*>.*>", 60)
> out = self.dut.send_expect("kni_autotest", "RTE>>", 60)
> self.dut.send_expect("quit", "# ")
>
> --
> 1.9.3
>
>
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [dts] [09/12] add test start time and exec cmd time for power unit test
2015-10-27 7:36 ` [dts] [09/12] add test start time and exec cmd time for power " xu,huilong
@ 2015-10-27 8:38 ` Tu, LijuanX A
0 siblings, 0 replies; 28+ messages in thread
From: Tu, LijuanX A @ 2015-10-27 8:38 UTC (permalink / raw)
To: Xu, HuilongX, dts
Acked by tu,lijuan <lijuanx.a.tu@intel.com>
> Signed-off-by: xu,huilong <huilongx.xu@intel.com>
> ---
> tests/TestSuite_unit_tests_power.py | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/tests/TestSuite_unit_tests_power.py b/tests/TestSuite_unit_tests_power.py
> index 3c0c230..c4075a7 100644
> --- a/tests/TestSuite_unit_tests_power.py
> +++ b/tests/TestSuite_unit_tests_power.py
> @@ -71,8 +71,8 @@ class TestUnitTestsPower(TestCase):
> Run power autotest.
> """
>
> - self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 30)
> - out = self.dut.send_expect("power_autotest", "RTE>>", 5)
> + self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 60)
> + out = self.dut.send_expect("power_autotest", "RTE>>", 60)
> self.dut.send_expect("quit", "# ")
> self.verify("Test OK" in out, "Test failed")
>
> @@ -81,8 +81,8 @@ class TestUnitTestsPower(TestCase):
> Run power acpi cpu frequency autotest.
> """
>
> - self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 30)
> - out = self.dut.send_expect("power_acpi_cpufreq_autotest", "RTE>>", 5)
> + self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 60)
> + out = self.dut.send_expect("power_acpi_cpufreq_autotest", "RTE>>", 60)
> self.dut.send_expect("quit", "# ")
> self.verify("Test OK" in out, "Test failed")
>
> --
> 1.9.3
>
>
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [dts] [10/12] add test start time and exec cmd time for pmd_perf unit test
2015-10-27 7:36 ` [dts] [10/12] add test start time and exec cmd time for pmd_perf " xu,huilong
@ 2015-10-27 8:39 ` Tu, LijuanX A
0 siblings, 0 replies; 28+ messages in thread
From: Tu, LijuanX A @ 2015-10-27 8:39 UTC (permalink / raw)
To: Xu, HuilongX, dts
Acked by tu,lijuan <lijuanx.a.tu@intel.com>
> Signed-off-by: xu,huilong <huilongx.xu@intel.com>
> ---
> tests/TestSuite_unit_tests_pmd_perf.py | 18 +++++++++---------
> 1 file changed, 9 insertions(+), 9 deletions(-)
>
> diff --git a/tests/TestSuite_unit_tests_pmd_perf.py b/tests/TestSuite_unit_tests_pmd_perf.py
> index 8745227..3be47f9 100644
> --- a/tests/TestSuite_unit_tests_pmd_perf.py
> +++ b/tests/TestSuite_unit_tests_pmd_perf.py
> @@ -90,10 +90,10 @@ class TestUnitTestsPmdPerf(TestCase):
> Run pmd stream control mode burst test case.
> """
>
> - self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 30)
> + self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 60)
> for mode in self.burst_ctlmodes:
> - self.dut.send_expect("set_rxtx_sc %s" % mode, "RTE>>", 5)
> - out = self.dut.send_expect("pmd_perf_autotest", "RTE>>", 60)
> + self.dut.send_expect("set_rxtx_sc %s" % mode, "RTE>>", 10)
> + out = self.dut.send_expect("pmd_perf_autotest", "RTE>>", 120)
> match_regex = "Result: (\d+) cycles per packet"
> m = re.compile(r"%s" % match_regex, re.S)
> result = m.search(out)
> @@ -113,16 +113,16 @@ class TestUnitTestsPmdPerf(TestCase):
>
> for mode in self.rxtx_modes:
> if mode is "scalar":
> - self.dut.send_expect("./app/test/test_scalar -n 1 -c ffff", "R.*T.*E.*>.*>", 30)
> + self.dut.send_expect("./app/test/test_scalar -n 1 -c ffff", "R.*T.*E.*>.*>", 60)
> else:
> - self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 30)
> + self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 60)
>
> table_row = [mode]
> - self.dut.send_expect("set_rxtx_sc continuous", "RTE>>", 5)
> - self.dut.send_expect("set_rxtx_mode %s" % mode, "RTE>>", 5)
> + self.dut.send_expect("set_rxtx_sc continuous", "RTE>>", 10)
> + self.dut.send_expect("set_rxtx_mode %s" % mode, "RTE>>",10)
> for anchor in self.anchors:
> - self.dut.send_expect("set_rxtx_anchor %s" % anchor, "RTE>>", 5)
> - out = self.dut.send_expect("pmd_perf_autotest", "RTE>>", 60)
> + self.dut.send_expect("set_rxtx_anchor %s" % anchor, "RTE>>", 10)
> + out = self.dut.send_expect("pmd_perf_autotest", "RTE>>", 120)
> match_regex = "Result: (\d+) cycles per packet"
> m = re.compile(r"%s" % match_regex, re.S)
> result = m.search(out)
> --
> 1.9.3
>
>
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [dts] [11/12] add test start time for ring unit test
2015-10-27 7:36 ` [dts] [11/12] add test start time for ring " xu,huilong
@ 2015-10-27 8:40 ` Tu, LijuanX A
0 siblings, 0 replies; 28+ messages in thread
From: Tu, LijuanX A @ 2015-10-27 8:40 UTC (permalink / raw)
To: Xu, HuilongX, dts
Acked by tu,lijuan <lijuanx.a.tu@intel.com>
> Signed-off-by: xu,huilong <huilongx.xu@intel.com>
> ---
> tests/TestSuite_unit_tests_ring.py | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/tests/TestSuite_unit_tests_ring.py b/tests/TestSuite_unit_tests_ring.py
> index cae07ef..d542539 100644
> --- a/tests/TestSuite_unit_tests_ring.py
> +++ b/tests/TestSuite_unit_tests_ring.py
> @@ -70,7 +70,7 @@ class TestUnitTestsRing(TestCase):
> Run ring autotest.
> """
>
> - self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 10)
> + self.dut.send_expect("./app/test/test -n 1 -c ffff",
> + "R.*T.*E.*>.*>", 60)
> out = self.dut.send_expect("ring_autotest", "RTE>>", 36000)
> self.verify("Test OK" in out, "Test failed")
> self.dut.send_expect("set_watermark test 100", "RTE>>") @@ -83,7 +83,7 @@ class TestUnitTestsRing(TestCase):
> Run ring performance autotest.
> """
>
> - self.dut.send_expect("./app/test/test -n 1 -c fffe", "R.*T.*E.*>.*>", 30)
> + self.dut.send_expect("./app/test/test -n 1 -c fffe",
> + "R.*T.*E.*>.*>", 60)
> out = self.dut.send_expect("ring_perf_autotest", "RTE>>", 210)
> self.dut.send_expect("quit", "# ")
> self.verify("Test OK" in out, "Test failed")
> --
> 1.9.3
>
>
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [dts] [08/12] add test start time for mempool unit test
2015-10-27 7:36 ` [dts] [08/12] add test start time for mempool " xu,huilong
@ 2015-10-27 8:42 ` Tu, LijuanX A
0 siblings, 0 replies; 28+ messages in thread
From: Tu, LijuanX A @ 2015-10-27 8:42 UTC (permalink / raw)
To: Xu, HuilongX, dts
Acked by tu,lijuan <lijuanx.a.tu@intel.com>
> Signed-off-by: xu,huilong <huilongx.xu@intel.com>
> ---
> tests/TestSuite_unit_tests_lpm.py | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/tests/TestSuite_unit_tests_lpm.py
> b/tests/TestSuite_unit_tests_lpm.py
> index b638195..dadb492 100644
> --- a/tests/TestSuite_unit_tests_lpm.py
> +++ b/tests/TestSuite_unit_tests_lpm.py
> @@ -72,7 +72,7 @@ class TestUnitTestsLpmIpv6(TestCase):
> """
> Run lpm for IPv6 autotest.
> """
> - self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 30)
> + self.dut.send_expect("./app/test/test -n 1 -c ffff",
> + "R.*T.*E.*>.*>", 60)
> out = self.dut.send_expect("lpm_autotest", "RTE>>", 120)
> self.dut.send_expect("quit", "# ")
> self.verify("Test OK" in out, "Test failed") @@ -89,7 +89,7 @@ class TestUnitTestsLpmIpv6(TestCase):
> hugepage_num = self.dut.get_total_huge_pages()
> self.verify(hugepage_num >= 4096, "failed to request huge
> memory")
>
> - self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 30)
> + self.dut.send_expect("./app/test/test -n 1 -c ffff",
> + "R.*T.*E.*>.*>", 60)
> out = self.dut.send_expect("lpm6_autotest", "RTE>>", 3600)
> self.dut.send_expect("quit", "# ")
> self.dut.set_huge_pages(hugepage_ori)
> --
> 1.9.3
>
>
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [dts] [06/12] add test start time for lpm unit test
2015-10-27 7:36 ` [dts] [06/12] add test start time for lpm " xu,huilong
@ 2015-10-27 8:42 ` Tu, LijuanX A
0 siblings, 0 replies; 28+ messages in thread
From: Tu, LijuanX A @ 2015-10-27 8:42 UTC (permalink / raw)
To: Xu, HuilongX, dts
Acked by tu,lijuan <lijuanx.a.tu@intel.com>
> Signed-off-by: xu,huilong <huilongx.xu@intel.com>
> ---
> tests/TestSuite_unit_tests_lpm.py | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/tests/TestSuite_unit_tests_lpm.py b/tests/TestSuite_unit_tests_lpm.py
> index b638195..dadb492 100644
> --- a/tests/TestSuite_unit_tests_lpm.py
> +++ b/tests/TestSuite_unit_tests_lpm.py
> @@ -72,7 +72,7 @@ class TestUnitTestsLpmIpv6(TestCase):
> """
> Run lpm for IPv6 autotest.
> """
> - self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 30)
> + self.dut.send_expect("./app/test/test -n 1 -c ffff",
> + "R.*T.*E.*>.*>", 60)
> out = self.dut.send_expect("lpm_autotest", "RTE>>", 120)
> self.dut.send_expect("quit", "# ")
> self.verify("Test OK" in out, "Test failed") @@ -89,7 +89,7 @@ class TestUnitTestsLpmIpv6(TestCase):
> hugepage_num = self.dut.get_total_huge_pages()
> self.verify(hugepage_num >= 4096, "failed to request huge memory")
>
> - self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 30)
> + self.dut.send_expect("./app/test/test -n 1 -c ffff",
> + "R.*T.*E.*>.*>", 60)
> out = self.dut.send_expect("lpm6_autotest", "RTE>>", 3600)
> self.dut.send_expect("quit", "# ")
> self.dut.set_huge_pages(hugepage_ori)
> --
> 1.9.3
>
>
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [dts] [00/12] add test start time
2015-10-27 8:21 ` [dts] [00/12] add test start time Tu, LijuanX A
@ 2015-10-27 8:43 ` Liu, Yong
0 siblings, 0 replies; 28+ messages in thread
From: Liu, Yong @ 2015-10-27 8:43 UTC (permalink / raw)
To: Tu, LijuanX A, Xu, HuilongX, dts
Hi Lijuan,
Acked with the cover-letter is enough for whole patch set. You do not need to ack each one of them.
> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Tu, LijuanX A
> Sent: Tuesday, October 27, 2015 4:21 PM
> To: Xu, HuilongX; dts@dpdk.org
> Subject: Re: [dts] [00/12] add test start time
>
> Acked by tu,lijuan <lijuan.a.tu@intel.com>
>
> > *** BLURB HERE ***
> >
> > in our test suite, test app start time only 10 seconds, so dts raise
> timeout when start test.
> > add start time to 60 seconds.
> > xu,huilong (12):
> > add test start time and exec cmd time for cmdline unit test
> > add test start time and exec cmd time for eal unit test
> > add test start time and exec cmd time for dump unit test
> > add test start time for ivshmem unit test
> > add test start time for kni unit test
> > add test start time for lpm unit test
> > add test start time for mbuf unit test
> > add test start time for mempool unit test
> > add test start time and exec cmd time for power unit test
> > add test start time and exec cmd time for pmd_perf unit test
> > add test start time for ring unit test
> > add test start time for timer unit test
> >
> > tests/TestSuite_unit_tests_cmdline.py | 4 +-
> > tests/TestSuite_unit_tests_dump.py | 34 ++++----
> > tests/TestSuite_unit_tests_eal.py | 138 +++++++++++++++++---------
> -------
> > tests/TestSuite_unit_tests_ivshmem.py | 2 +-
> > tests/TestSuite_unit_tests_kni.py | 2 +-
> > tests/TestSuite_unit_tests_lpm.py | 4 +-
> > tests/TestSuite_unit_tests_mbuf.py | 2 +-
> > tests/TestSuite_unit_tests_mempool.py | 4 +-
> > tests/TestSuite_unit_tests_pmd_perf.py | 18 ++---
> > tests/TestSuite_unit_tests_power.py | 8 +-
> > tests/TestSuite_unit_tests_ring.py | 4 +-
> > tests/TestSuite_unit_tests_timer.py | 4 +-
> > 12 files changed, 114 insertions(+), 110 deletions(-)
> >
> > --
> > 1.9.3
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [dts] [07/12] add test start time for mbuf unit test
2015-10-27 7:36 ` [dts] [07/12] add test start time for mbuf " xu,huilong
@ 2015-10-27 8:43 ` Tu, LijuanX A
0 siblings, 0 replies; 28+ messages in thread
From: Tu, LijuanX A @ 2015-10-27 8:43 UTC (permalink / raw)
To: Xu, HuilongX, dts
Acked by tu,lijuan <lijuanx.a.tu@intel.com>
> Signed-off-by: xu,huilong <huilongx.xu@intel.com>
> ---
> tests/TestSuite_unit_tests_mbuf.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/TestSuite_unit_tests_mbuf.py b/tests/TestSuite_unit_tests_mbuf.py
> index bc7ea3b..c4dfaab 100644
> --- a/tests/TestSuite_unit_tests_mbuf.py
> +++ b/tests/TestSuite_unit_tests_mbuf.py
> @@ -70,7 +70,7 @@ class TestUnitTestsMbuf(TestCase):
> Run mbuf autotest.
> """
>
> - self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 10)
> + self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 60)
> out = self.dut.send_expect("mbuf_autotest", "RTE>>", 60)
> self.dut.send_expect("quit", "# ")
> self.verify("Test OK" in out, "Test failed")
> --
> 1.9.3
>
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [dts] [00/12] add test start time
2015-10-27 7:36 [dts] [00/12] add test start time xu,huilong
` (12 preceding siblings ...)
2015-10-27 8:21 ` [dts] [00/12] add test start time Tu, LijuanX A
@ 2015-10-27 8:54 ` Liu, Yong
13 siblings, 0 replies; 28+ messages in thread
From: Liu, Yong @ 2015-10-27 8:54 UTC (permalink / raw)
To: Xu, HuilongX, dts
Thanks Huilong. Applied with few comments modification.
> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of xu,huilong
> Sent: Tuesday, October 27, 2015 3:37 PM
> To: dts@dpdk.org
> Subject: [dts] [00/12] add test start time
>
> *** BLURB HERE ***
>
> in our test suite, test app start time only 10 seconds, so dts raise
> timeout when start test.
> add start time to 60 seconds.
> xu,huilong (12):
> add test start time and exec cmd time for cmdline unit test
> add test start time and exec cmd time for eal unit test
> add test start time and exec cmd time for dump unit test
> add test start time for ivshmem unit test
> add test start time for kni unit test
> add test start time for lpm unit test
> add test start time for mbuf unit test
> add test start time for mempool unit test
> add test start time and exec cmd time for power unit test
> add test start time and exec cmd time for pmd_perf unit test
> add test start time for ring unit test
> add test start time for timer unit test
>
> tests/TestSuite_unit_tests_cmdline.py | 4 +-
> tests/TestSuite_unit_tests_dump.py | 34 ++++----
> tests/TestSuite_unit_tests_eal.py | 138 +++++++++++++++++-----------
> -----
> tests/TestSuite_unit_tests_ivshmem.py | 2 +-
> tests/TestSuite_unit_tests_kni.py | 2 +-
> tests/TestSuite_unit_tests_lpm.py | 4 +-
> tests/TestSuite_unit_tests_mbuf.py | 2 +-
> tests/TestSuite_unit_tests_mempool.py | 4 +-
> tests/TestSuite_unit_tests_pmd_perf.py | 18 ++---
> tests/TestSuite_unit_tests_power.py | 8 +-
> tests/TestSuite_unit_tests_ring.py | 4 +-
> tests/TestSuite_unit_tests_timer.py | 4 +-
> 12 files changed, 114 insertions(+), 110 deletions(-)
>
> --
> 1.9.3
^ permalink raw reply [flat|nested] 28+ messages in thread
end of thread, other threads:[~2015-10-27 8:54 UTC | newest]
Thread overview: 28+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-27 7:36 [dts] [00/12] add test start time xu,huilong
2015-10-27 7:36 ` [dts] [01/12] add test start time and exec cmd time for cmdline unit test xu,huilong
2015-10-27 8:28 ` Tu, LijuanX A
2015-10-27 8:29 ` Tu, LijuanX A
2015-10-27 7:36 ` [dts] [02/12] add test start time and exec cmd time for eal " xu,huilong
2015-10-27 8:31 ` Tu, LijuanX A
2015-10-27 7:36 ` [dts] [03/12] add test start time and exec cmd time for dump " xu,huilong
2015-10-27 8:33 ` Tu, LijuanX A
2015-10-27 7:36 ` [dts] [04/12] add test start time for ivshmem " xu,huilong
2015-10-27 8:34 ` Tu, LijuanX A
2015-10-27 7:36 ` [dts] [05/12] add test start time for kni " xu,huilong
2015-10-27 8:35 ` Tu, LijuanX A
2015-10-27 7:36 ` [dts] [06/12] add test start time for lpm " xu,huilong
2015-10-27 8:42 ` Tu, LijuanX A
2015-10-27 7:36 ` [dts] [07/12] add test start time for mbuf " xu,huilong
2015-10-27 8:43 ` Tu, LijuanX A
2015-10-27 7:36 ` [dts] [08/12] add test start time for mempool " xu,huilong
2015-10-27 8:42 ` Tu, LijuanX A
2015-10-27 7:36 ` [dts] [09/12] add test start time and exec cmd time for power " xu,huilong
2015-10-27 8:38 ` Tu, LijuanX A
2015-10-27 7:36 ` [dts] [10/12] add test start time and exec cmd time for pmd_perf " xu,huilong
2015-10-27 8:39 ` Tu, LijuanX A
2015-10-27 7:36 ` [dts] [11/12] add test start time for ring " xu,huilong
2015-10-27 8:40 ` Tu, LijuanX A
2015-10-27 7:36 ` [dts] [12/12] add test start time for timer " xu,huilong
2015-10-27 8:21 ` [dts] [00/12] add test start time Tu, LijuanX A
2015-10-27 8:43 ` Liu, Yong
2015-10-27 8:54 ` Liu, Yong
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).