[dpdk-dev] [PATCH 11/11] kvargs: add test case in app/test
Richardson, Bruce
bruce.richardson at intel.com
Thu Jan 30 12:35:22 CET 2014
> -----Original Message-----
> From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Olivier Matz
> Sent: Tuesday, January 28, 2014 4:07 PM
> To: dev at dpdk.org
> Subject: [dpdk-dev] [PATCH 11/11] kvargs: add test case in app/test
>
> Add a file app/test/test_kvargs.c that checks the rte_kvargs API.
> The test passes:
>
> RTE>>kvargs
> == test valid case ==
> == test invalid case ==
> PMD: Error parsing device, invalid key <wrong-key>
> Test OK
>
> I also tested that rte_eth_pcap runs with the following arguments:
>
> ./app/testpmd -c 0x15 -n 3 --proc-type=primary --huge-dir=/mnt/huge \
> --use-device="eth_pcap0;iface=ixgbe0" \
> -- -i --port-topology=chained
>
> ./app/testpmd -c 0x15 -n 3 --proc-type=primary --huge-dir=/mnt/huge \
> --use-
> device="eth_pcap0;rx_iface=ixgbe0;rx_iface=ixgbe1;tx_iface=ixgbe0" \
> -- -i --port-topology=chained
>
> Signed-off-by: Olivier Matz <olivier.matz at 6wind.com>
> ---
> app/test/Makefile | 1 +
> app/test/commands.c | 8 ++
> app/test/test.h | 1 +
> app/test/test_kvargs.c | 235
> +++++++++++++++++++++++++++++++++++++++++++++++++
> 4 files changed, 245 insertions(+)
> create mode 100644 app/test/test_kvargs.c
Acked-by: Bruce Richardson <bruce.richardson at intel.com>
More information about the dev
mailing list