Skip to contentSkip to conversation

test/event: add adapter tests to meson build

PATCH Superseded Nikhil Rao 3 participants 9 messages Sep 5, 2018 – Sep 28, 2018 Arm/Amlogic Meson SoC support

lore
Share & tools
lore

Nikhil Rao

author
#0 lore raw

PATCH 1/1 test/event: add adapter tests to meson build

Add tests for event eth Rx, crypto and timer adapters to meson build

Cc Abhinandan Gujjar <[email protected]>
Cc Erik G. Carrillio <[email protected]>
---
 test/test/meson.build | 7 +++++++
 1 file changed, 7 insertions(+)
test/test/meson.build +7 -0
index b1dd6ec..1b2e8b7 100644
@@ -33,7 +33,10 @@ test_sources = files('commands.c',
 	'test_efd.c',
 	'test_efd_perf.c',
 	'test_errno.c',
+	'test_event_crypto_adapter.c',
+	'test_event_eth_rx_adapter.c',
 	'test_event_ring.c',
+	'test_event_timer_adapter.c',
 	'test_eventdev.c',
 	'test_func_reentrancy.c',
 	'test_flow_classify.c',
@@ -151,7 +154,11 @@ test_names = [
 	'efd_autotest',
 	'efd_perf_autotest',
 	'errno_autotest',
+	'event_crypto_adapter_autotest',
+	'event_eth_rx_adapter_autotest',
+	'event_eth_rx_intr_adapter_autotest',
 	'event_ring_autotest',
+	'event_timer_adapter_autotest',
 	'eventdev_common_autotest',
 	'eventdev_octeontx_autotest',
 	'eventdev_sw_autotest',
Signature · 1 line
1.8.3.1
author
#1 lore raw

PATCH v2 1/1 test/event: add adapter tests to meson build

Add tests for event eth Rx, crypto and timer adapters to meson build

Cc Abhinandan Gujjar <[email protected]>
Cc Erik G. Carrillo <[email protected]>

---

v2:
* fix Erik's email address

 test/test/meson.build | 7 +++++++
 1 file changed, 7 insertions(+)
test/test/meson.build +7 -0
index b1dd6ec..1b2e8b7 100644
@@ -33,7 +33,10 @@ test_sources = files('commands.c',
 	'test_efd.c',
 	'test_efd_perf.c',
 	'test_errno.c',
+	'test_event_crypto_adapter.c',
+	'test_event_eth_rx_adapter.c',
 	'test_event_ring.c',
+	'test_event_timer_adapter.c',
 	'test_eventdev.c',
 	'test_func_reentrancy.c',
 	'test_flow_classify.c',
@@ -151,7 +154,11 @@ test_names = [
 	'efd_autotest',
 	'efd_perf_autotest',
 	'errno_autotest',
+	'event_crypto_adapter_autotest',
+	'event_eth_rx_adapter_autotest',
+	'event_eth_rx_intr_adapter_autotest',
 	'event_ring_autotest',
+	'event_timer_adapter_autotest',
 	'eventdev_common_autotest',
 	'eventdev_octeontx_autotest',
 	'eventdev_sw_autotest',
Signature · 1 line
1.8.3.1
#2 lore raw
Quoted 6 lines · Nikhil Rao

Add tests for event eth Rx, crypto and timer adapters to meson build

Cc Abhinandan Gujjar <[email protected]>
Cc Erik G. Carrillo <[email protected]>
Quoted 8 lines

---

v2:
* fix Erik's email address

 test/test/meson.build | 7 +++++++
 1 file changed, 7 insertions(+)

When running this with test-meson-build.sh, errors are thrown up with the x86-default build. Please investigate.

Regards,
/Bruce

author
#3 lore raw

PATCH v2 1/2 test: fix event timer compiler warning

In reply to Nikhil Rao

Limit the number of objects passed to rte_mempool_put_bulk() to the size of the object table. This fix eliminates a compiler warning (array-bounds) triggered when the march command line parameter to gcc is set to nehalem.

Fixes d1f3385d0076 ("test: add event timer adapter auto-test")

---

v2:
* fix compiler warning in event timer autotest.

 test/test/test_event_timer_adapter.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
test/test/test_event_timer_adapter.c +1 -1
index 93471db..a45b7d1 100644
@@ -792,7 +792,7 @@
 		TEST_ASSERT_EQUAL(n, ret, "Failed to cancel complete burst of "
 				  "event timers");
 		rte_mempool_put_bulk(eventdev_test_mempool, (void **)ev_tim,
-				ret);
+				RTE_MIN(ret, MAX_BURST));
 
 		cancel_count += ret;
 	}
Signature · 1 line
1.8.3.1
author
#4 lore raw

PATCH v2 2/2 test/event: add adapter tests to meson build

Add tests for event eth Rx, crypto and timer adapters to meson build

Cc Abhinandan Gujjar <[email protected]>
Cc Erik G. Carrillo <[email protected]>
---
 test/test/meson.build | 7 +++++++
 1 file changed, 7 insertions(+)
test/test/meson.build +7 -0
index b1dd6ec..1b2e8b7 100644
@@ -33,7 +33,10 @@ test_sources = files('commands.c',
 	'test_efd.c',
 	'test_efd_perf.c',
 	'test_errno.c',
+	'test_event_crypto_adapter.c',
+	'test_event_eth_rx_adapter.c',
 	'test_event_ring.c',
+	'test_event_timer_adapter.c',
 	'test_eventdev.c',
 	'test_func_reentrancy.c',
 	'test_flow_classify.c',
@@ -151,7 +154,11 @@ test_names = [
 	'efd_autotest',
 	'efd_perf_autotest',
 	'errno_autotest',
+	'event_crypto_adapter_autotest',
+	'event_eth_rx_adapter_autotest',
+	'event_eth_rx_intr_adapter_autotest',
 	'event_ring_autotest',
+	'event_timer_adapter_autotest',
 	'eventdev_common_autotest',
 	'eventdev_octeontx_autotest',
 	'eventdev_sw_autotest',
Signature · 1 line
1.8.3.1
Applied
#6 lore raw

-----Original Message-----

Quoted 14 lines

Date: Thu, 27 Sep 2018 12:09:24 +0100
From: Bruce Richardson <[email protected]>
To: Nikhil Rao <[email protected]>
CC: [email protected], [email protected], [email protected],
Abhinandan Gujjar <[email protected]>, "Erik G. Carrillo" <[email protected]>
Subject: Re: [PATCH v2 2/2] test/event: add adapter tests to meson build
User-Agent: Mutt/1.10.1 (2018-07-13)

Quoted 3 lines · Nikhil Rao

Add tests for event eth Rx, crypto and timer adapters to meson build

Quoted 6 lines
Quoted 5 lines
Cc Abhinandan Gujjar <[email protected]>
Cc Erik G. Carrillo <[email protected]>

---

Applied to dpdk-next-eventdev/master. Thanks.

Quoted 1 line
Acked-by on v2 1/2
#7 lore raw

Re: [PATCH v2 1/2] test: fix event timer compiler warning

In reply to Nikhil Rao
Quoted 11 lines · Nikhil Rao

Limit the number of objects passed to rte_mempool_put_bulk() to the size of the object table. This fix eliminates a compiler warning (array-bounds) triggered when the march command line parameter to gcc is set to nehalem.

Fixes d1f3385d0076 ("test: add event timer adapter auto-test")

---

Applied
#8 lore raw

Re: [PATCH v2 1/2] test: fix event timer compiler warning

-----Original Message-----

Quoted 15 lines

Date: Thu, 27 Sep 2018 12:08:56 +0100
From: Bruce Richardson <[email protected]>
To: Nikhil Rao <[email protected]>
CC: [email protected], [email protected], [email protected],
[email protected], [email protected]
Subject: Re: [PATCH v2 1/2] test: fix event timer compiler warning
User-Agent: Mutt/1.10.1 (2018-07-13)

Quoted 5 lines · Nikhil Rao

Limit the number of objects passed to rte_mempool_put_bulk() to the size of the object table. This fix eliminates a compiler warning (array-bounds) triggered when the march command line parameter to gcc is set to nehalem.

Quoted 7 lines
Quoted 6 lines
Fixes d1f3385d0076 ("test: add event timer adapter auto-test")

---

Applied to dpdk-next-eventdev/master. Thanks.