numam-dpdk/app/test
Bernard Iremonger 4ea3801b32 app/test: fix ring unit test
If eth_ring vdevs are created from the command line with the --vdev option,
they create their own rings which are not shared by other vdevs.
Some of tests in this suite require that the vdevs share rings, so some
of the tests fail.

For vdevs to share rings they must be created in the test code with the
rte_eth_from_rings() function using rings created with the rte_ring_create()
function.

Use the command line option --vdev=eth_ring0 to create port 0.
This option is not mandatory for the tests to pass. It allows some additional
functional tests on cmd-line created rings to be executed.

Create two rings and five ethdevs in test_pmd_ring.c for ports 1 to 5,
and then use these to run the unit tests on the pmd ring functionality.

Improve test output by adding the port number to printf statements,
and adding a printf describing each test.

Fixes: 572eb3cd83 ("ring: simplify unit tests")

Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
2015-12-07 04:10:15 +01:00
..
autotest_data.py app/test: increase memory for hash unit tests 2015-11-06 17:43:54 +01:00
autotest_runner.py app/test: return error code on failed tests 2015-06-15 15:17:52 +02:00
autotest_test_funcs.py app: fix whitespace 2015-06-12 11:10:10 +02:00
autotest.py app/test: return error code on failed tests 2015-06-15 15:17:52 +02:00
commands.c tailq: remove unneeded inclusions 2015-03-10 11:47:46 +01:00
Makefile app/test: add cryptodev unit and performance tests 2015-11-25 19:18:04 +01:00
packet_burst_generator.c mbuf: remove packet type from offload flags 2015-09-03 19:22:48 +02:00
packet_burst_generator.h app/test: add unit tests for link bonding mode 6 2015-02-20 23:07:02 +01:00
process.h app: fix whitespace 2015-06-12 11:10:10 +02:00
test_acl.c acl: remove old API 2015-09-03 19:22:48 +02:00
test_acl.h acl: remove old API 2015-09-03 19:22:48 +02:00
test_alarm.c app/test: convert all tests to register system 2014-08-26 17:52:33 +02:00
test_atomic.c tailq: remove unneeded inclusions 2015-03-10 11:47:46 +01:00
test_byteorder.c app/test: convert all tests to register system 2014-08-26 17:52:33 +02:00
test_cmdline_cirbuf.c eal: deprecate rte_snprintf 2014-06-27 02:31:24 +02:00
test_cmdline_etheraddr.c cmdline: fix overflow on bsd 2014-12-05 16:54:53 +01:00
test_cmdline_ipaddr.c cmdline: fix overflow on bsd 2014-12-05 16:54:53 +01:00
test_cmdline_lib.c remove trailing whitespaces 2014-06-11 00:29:34 +02:00
test_cmdline_num.c cmdline: fix overflow on bsd 2014-12-05 16:54:53 +01:00
test_cmdline_portlist.c cmdline: fix overflow on bsd 2014-12-05 16:54:53 +01:00
test_cmdline_string.c cmdline: fix overflow on bsd 2014-12-05 16:54:53 +01:00
test_cmdline.c app/test: only build what has been selected in config 2014-08-26 17:52:34 +02:00
test_cmdline.h remove trailing whitespaces 2014-06-11 00:29:34 +02:00
test_common.c eal: fix type casting of value to align 2015-03-17 00:46:01 +01:00
test_cpuflags.c eal/arm: add CPU flags for ARMv8 2015-11-18 22:44:01 +01:00
test_cryptodev_perf.c app/test: fix build with icc 2015-11-26 22:28:46 +01:00
test_cryptodev.c app/test: add cryptodev unit and performance tests 2015-11-25 19:18:04 +01:00
test_cryptodev.h app/test: add cryptodev unit and performance tests 2015-11-25 19:18:04 +01:00
test_cycles.c app/test: convert all tests to register system 2014-08-26 17:52:33 +02:00
test_debug.c app: no more bare metal environment 2014-11-27 13:09:55 +01:00
test_devargs.c eal: fix C++ build 2015-10-22 17:50:51 +02:00
test_distributor_perf.c apps: fix default mbuf size 2015-05-11 15:51:14 +02:00
test_distributor.c apps: fix default mbuf size 2015-05-11 15:51:14 +02:00
test_eal_flags.c app/test: fix unit test for option -n 2015-11-06 16:32:40 +01:00
test_eal_fs.c eal: factorize common headers 2014-11-25 13:16:24 +01:00
test_errno.c eal: remove useless errno 2015-03-10 12:17:31 +01:00
test_func_reentrancy.c lpm: remove deprecated field 2015-09-03 19:22:48 +02:00
test_hash_functions.c hash: remove deprecated function and macros 2015-09-04 15:56:58 +02:00
test_hash_perf.c hash: remove deprecated function and macros 2015-09-04 15:56:58 +02:00
test_hash_scaling.c hash: fix scaling by reducing contention 2015-11-04 01:04:10 +01:00
test_hash.c hash: use armv8-a CRC32 instructions 2015-11-25 22:13:15 +01:00
test_interrupts.c app: no more bare metal environment 2014-11-27 13:09:55 +01:00
test_ivshmem.c add prefix to cache line macros 2014-11-27 16:21:11 +01:00
test_kni.c app/test: fix kni success code 2015-12-07 04:10:15 +01:00
test_kvargs.c app/test: fix crash after null check 2014-12-17 01:04:06 +01:00
test_link_bonding_mode4.c app/test: add cryptodev unit and performance tests 2015-11-25 19:18:04 +01:00
test_link_bonding_rssconf.c app/test: add cryptodev unit and performance tests 2015-11-25 19:18:04 +01:00
test_link_bonding.c app/test: add cryptodev unit and performance tests 2015-11-25 19:18:04 +01:00
test_logs.c tailq: remove unneeded inclusions 2015-03-10 11:47:46 +01:00
test_lpm6_routes.h remove trailing whitespaces 2014-06-11 00:29:34 +02:00
test_lpm6.c app/test: only build what has been selected in config 2014-08-26 17:52:34 +02:00
test_lpm_routes.h remove trailing whitespaces 2014-06-11 00:29:34 +02:00
test_lpm.c lpm: remove deprecated field 2015-09-03 19:22:48 +02:00
test_malloc.c app/test: update malloc and memzone unit tests 2015-07-16 14:01:04 +02:00
test_mbuf.c eal: add and use unaligned integer types 2015-06-24 12:00:41 +02:00
test_memcpy_perf.c app/test: extend memcpy test coverage 2015-02-25 11:34:23 +01:00
test_memcpy.c app/test: remove unnecessary memcpy test cases 2015-02-25 11:27:44 +01:00
test_memory.c app/test: fix integer overflow in memory unit test 2015-12-07 04:10:15 +01:00
test_mempool_perf.c app/test: decrease size of requested mempool 2015-07-09 17:35:25 +02:00
test_mempool.c app/test: decrease size of requested mempool 2015-07-09 17:35:25 +02:00
test_memzone.c mem: introduce memzone freeing 2015-07-16 14:01:04 +02:00
test_meter.c app/test: only build what has been selected in config 2014-08-26 17:52:34 +02:00
test_mp_secondary.c tailq: remove unneeded inclusions 2015-03-10 11:47:46 +01:00
test_pci.c app/test: fix devargs tests 2015-02-18 12:15:31 +01:00
test_per_lcore.c tailq: remove unneeded inclusions 2015-03-10 11:47:46 +01:00
test_pmd_perf.c app/test: fix crash in performance test 2015-12-07 04:10:15 +01:00
test_pmd_ring_perf.c app/test: add performance test for ring driver 2015-11-03 02:01:58 +01:00
test_pmd_ring.c app/test: fix ring unit test 2015-12-07 04:10:15 +01:00
test_power_acpi_cpufreq.c app/test: vm power management 2014-11-26 17:27:04 +01:00
test_power_kvm_vm.c app/test: vm power management 2014-11-26 17:27:04 +01:00
test_power.c app/test: vm power management 2014-11-26 17:27:04 +01:00
test_prefetch.c app/test: convert all tests to register system 2014-08-26 17:52:33 +02:00
test_red.c app/test: replace x86 fence by multi arch function 2015-09-08 08:51:25 +02:00
test_reorder.c reorder: fix unit test for random starting point 2015-11-12 16:49:00 +01:00
test_ring_perf.c use simple zero initializers 2015-04-20 14:37:36 +02:00
test_ring.c tailq: remove unneeded inclusions 2015-03-10 11:47:46 +01:00
test_rwlock.c tailq: remove unneeded inclusions 2015-03-10 11:47:46 +01:00
test_sched.c app/test: fix sched mempool allocation 2015-08-03 23:44:05 +02:00
test_spinlock.c tailq: remove unneeded inclusions 2015-03-10 11:47:46 +01:00
test_string_fns.c eal: remove rte_snprintf 2014-09-29 15:04:55 +02:00
test_table_acl.c app/test: rename acl function to lowercase 2015-12-07 04:10:15 +01:00
test_table_acl.h app/test: rename acl function to lowercase 2015-12-07 04:10:15 +01:00
test_table_combined.c table: add key mask to 8 and 16-byte hash parameters 2015-11-26 00:45:50 +01:00
test_table_combined.h app/test: packet framework unit tests 2014-06-17 03:34:11 +02:00
test_table_pipeline.c port: move metadata offset reference at mbuf head 2015-10-19 17:00:36 +02:00
test_table_pipeline.h app/test: packet framework unit tests 2014-06-17 03:34:11 +02:00
test_table_ports.c app/test: only build what has been selected in config 2014-08-26 17:52:34 +02:00
test_table_ports.h app/test: packet framework unit tests 2014-06-17 03:34:11 +02:00
test_table_tables.c table: add key mask to 8 and 16-byte hash parameters 2015-11-26 00:45:50 +01:00
test_table_tables.h app/test: packet framework unit tests 2014-06-17 03:34:11 +02:00
test_table.c app/test: rename acl function to lowercase 2015-12-07 04:10:15 +01:00
test_table.h port: move metadata offset reference at mbuf head 2015-10-19 17:00:36 +02:00
test_tailq.c tailq: introduce dynamic register system 2015-03-10 11:58:02 +01:00
test_thash.c hash: add unit test for thash 2015-07-01 23:26:10 +02:00
test_timer_perf.c app/test: only build what has been selected in config 2014-08-26 17:52:34 +02:00
test_timer_racecond.c timer: add race condition test 2015-08-03 12:43:01 +02:00
test_timer.c timer: fix synchronization in stress test 2015-08-03 12:43:01 +02:00
test_version.c app/test: convert all tests to register system 2014-08-26 17:52:33 +02:00
test.c app/test: add cryptodev unit and performance tests 2015-11-25 19:18:04 +01:00
test.h app/test: add cryptodev unit and performance tests 2015-11-25 19:18:04 +01:00
virtual_pmd.c pci: make device id tables const 2015-04-20 19:58:54 +02:00
virtual_pmd.h app/test: add unit tests for link bonding mode 6 2015-02-20 23:07:02 +01:00