* [dpdk-dev] [PATCH] app/test: fix build switches to enable cmdline tests
@ 2014-06-27 9:46 Thomas Monjalon
2014-06-27 10:12 ` De Lara Guarch, Pablo
0 siblings, 1 reply; 4+ messages in thread
From: Thomas Monjalon @ 2014-06-27 9:46 UTC (permalink / raw)
To: dev
There were 2 typos since these commits (in 1.6.0 releases):
21a7f4e264 fix build without librte_cmdline
cac6d08c8b replace --use-device option by --pci-whitelist and --vdev
In makefiles, the build options are prefixed with CONFIG_RTE_
but in .c file, it is only RTE_.
These typos were disabling cmdline unit tests and test of "--vdev eth_ring" option.
Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
---
app/test/test_cmdline.c | 2 +-
app/test/test_eal_flags.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/app/test/test_cmdline.c b/app/test/test_cmdline.c
index 77475c4..10a3f77 100644
--- a/app/test/test_cmdline.c
+++ b/app/test/test_cmdline.c
@@ -39,7 +39,7 @@
int
test_cmdline(void)
{
-#ifdef CONFIG_RTE_LIBRTE_CMDLINE
+#ifdef RTE_LIBRTE_CMDLINE
printf("Testind parsing ethernet addresses...\n");
if (test_parse_etheraddr_valid() < 0)
return -1;
diff --git a/app/test/test_eal_flags.c b/app/test/test_eal_flags.c
index a862654..1b80b80 100644
--- a/app/test/test_eal_flags.c
+++ b/app/test/test_eal_flags.c
@@ -317,7 +317,7 @@ test_whitelist_flag(void)
const char *wlval3[] = {prgname, prefix, mp_flag, "-n", "1", "-c", "1",
pci_whitelist, "09:0B.3,type=test",
pci_whitelist, "08:00.1,type=normal",
-#ifdef CONFIG_RTE_LIBRTE_PMD_RING
+#ifdef RTE_LIBRTE_PMD_RING
vdev, "eth_ring,arg=test",
#endif
};
--
2.0.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dpdk-dev] [PATCH] app/test: fix build switches to enable cmdline tests
2014-06-27 9:46 [dpdk-dev] [PATCH] app/test: fix build switches to enable cmdline tests Thomas Monjalon
@ 2014-06-27 10:12 ` De Lara Guarch, Pablo
2014-06-30 10:19 ` De Lara Guarch, Pablo
2014-07-01 22:07 ` Thomas Monjalon
0 siblings, 2 replies; 4+ messages in thread
From: De Lara Guarch, Pablo @ 2014-06-27 10:12 UTC (permalink / raw)
To: Thomas Monjalon, dev
> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Thomas Monjalon
> Sent: Friday, June 27, 2014 10:47 AM
> To: dev@dpdk.org
> Subject: [dpdk-dev] [PATCH] app/test: fix build switches to enable cmdline
> tests
>
> There were 2 typos since these commits (in 1.6.0 releases):
> 21a7f4e264 fix build without librte_cmdline
> cac6d08c8b replace --use-device option by --pci-whitelist and --vdev
> In makefiles, the build options are prefixed with CONFIG_RTE_
> but in .c file, it is only RTE_.
>
> These typos were disabling cmdline unit tests and test of "--vdev eth_ring"
> option.
>
> Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
> ---
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dpdk-dev] [PATCH] app/test: fix build switches to enable cmdline tests
2014-06-27 10:12 ` De Lara Guarch, Pablo
@ 2014-06-30 10:19 ` De Lara Guarch, Pablo
2014-07-01 22:07 ` Thomas Monjalon
1 sibling, 0 replies; 4+ messages in thread
From: De Lara Guarch, Pablo @ 2014-06-30 10:19 UTC (permalink / raw)
To: Thomas Monjalon, dev
> > -----Original Message-----
> > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Thomas Monjalon
> > Sent: Friday, June 27, 2014 10:47 AM
> > To: dev@dpdk.org
> > Subject: [dpdk-dev] [PATCH] app/test: fix build switches to enable cmdline
> > tests
> >
> > There were 2 typos since these commits (in 1.6.0 releases):
> > 21a7f4e264 fix build without librte_cmdline
> > cac6d08c8b replace --use-device option by --pci-whitelist and --vdev
> > In makefiles, the build options are prefixed with CONFIG_RTE_
> > but in .c file, it is only RTE_.
> >
> > These typos were disabling cmdline unit tests and test of "--vdev eth_ring"
> > option.
> >
> > Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
> > ---
>
> Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Actually, I am thinking of removing the vdev eth_ring test. It doesn't work, as a secondary process
cannot allocate memzone, if I am not wrong, so it cannot create an the ethdev. Any objections on this?
Thanks,
Pablo
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dpdk-dev] [PATCH] app/test: fix build switches to enable cmdline tests
2014-06-27 10:12 ` De Lara Guarch, Pablo
2014-06-30 10:19 ` De Lara Guarch, Pablo
@ 2014-07-01 22:07 ` Thomas Monjalon
1 sibling, 0 replies; 4+ messages in thread
From: Thomas Monjalon @ 2014-07-01 22:07 UTC (permalink / raw)
To: De Lara Guarch, Pablo; +Cc: dev
> > There were 2 typos since these commits (in 1.6.0 releases):
> > 21a7f4e264 fix build without librte_cmdline
> > cac6d08c8b replace --use-device option by --pci-whitelist and --vdev
> >
> > In makefiles, the build options are prefixed with CONFIG_RTE_
> > but in .c file, it is only RTE_.
> >
> > These typos were disabling cmdline unit tests and test of "--vdev
> > eth_ring"
> > option.
> >
> > Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
>
> Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Applied for version 1.7.0.
--
Thomas
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-07-01 22:07 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-27 9:46 [dpdk-dev] [PATCH] app/test: fix build switches to enable cmdline tests Thomas Monjalon
2014-06-27 10:12 ` De Lara Guarch, Pablo
2014-06-30 10:19 ` De Lara Guarch, Pablo
2014-07-01 22:07 ` Thomas Monjalon
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).