DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Burakov, Anatoly" <anatoly.burakov@intel.com>
To: Pallantla Poornima <pallantlax.poornima@intel.com>, dev@dpdk.org
Cc: reshma.pattan@intel.com
Subject: Re: [dpdk-dev] [PATCH] test/eal: add ut cases for in-memory and single-file-segment
Date: Tue, 25 Jun 2019 11:22:55 +0100	[thread overview]
Message-ID: <ad0978a6-99e8-6bcc-f967-8d6e0747f03d@intel.com> (raw)
In-Reply-To: <1560519475-9666-1-git-send-email-pallantlax.poornima@intel.com>

On 14-Jun-19 2:37 PM, Pallantla Poornima wrote:
> Added unit test case for eal command line 'in-memory' option
> which will cover below functions.
> get_seg_memfd()
> test_memfd_create()
> pagesz_flags()
> 
> Added unit test case for eal command line 'single-file-segments' option
> which will cover resize_hugefile().
> 
> Signed-off-by: Pallantla Poornima <pallantlax.poornima@intel.com>
> ---
>   app/test/test_eal_flags.c | 69 +++++++++++++++++++++++++++++++++++++++
>   1 file changed, 69 insertions(+)
> 
> diff --git a/app/test/test_eal_flags.c b/app/test/test_eal_flags.c
> index 9112c96d0..2b2cccaec 100644
> --- a/app/test/test_eal_flags.c
> +++ b/app/test/test_eal_flags.c
> @@ -978,6 +978,7 @@ test_file_prefix(void)
>   	 *    mem mode
>   	 */
>   	char prefix[PATH_MAX] = "";
> +	char tmp[PATH_MAX];
>   
>   #ifdef RTE_EXEC_ENV_FREEBSD
>   	return 0;
> @@ -1010,6 +1011,26 @@ test_file_prefix(void)
>   	const char *argv4[] = {prgname, "-c", "1", "-n", "2", "-m",
>   			DEFAULT_MEM_SIZE, "--file-prefix=" memtest2 };
>   
> +	/* primary process with inmemory mode */
> +	const char * const argv5[] = {prgname, "-c", "1", "-n", "2", "-m",
> +		DEFAULT_MEM_SIZE, "--in-memory" };
> +
> +	/* primary process with memtest1 and inmemory mode */
> +	const char * const argv6[] = {prgname, "-c", "1", "-n", "2", "-m",
> +		DEFAULT_MEM_SIZE, "--in-memory",
> +		"--file-prefix=" memtest1 };
> +
> +	snprintf(tmp, PATH_MAX, "--file-prefix=%s", prefix);

No need to do this, you can just add `"--file-prefix", prefix` into 
below line and it'll work. The syntax is either "--flag=param" or 
"--flag param" - both are valid.

Otherwise,

Reviewed-by: Anatoly Burakov <anatoly.burakov@intel.com>

-- 
Thanks,
Anatoly

  reply	other threads:[~2019-06-25 10:23 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-14 13:37 Pallantla Poornima
2019-06-25 10:22 ` Burakov, Anatoly [this message]
2019-06-26 13:45 ` [dpdk-dev] [PATCH v2] " Pallantla Poornima
2019-06-26 13:54   ` David Marchand
2019-06-27 13:07   ` [dpdk-dev] [PATCH v3] " Pallantla Poornima
2019-07-02  7:48     ` David Marchand
2019-07-03  7:13     ` [dpdk-dev] [PATCH v4] " Pallantla Poornima
2019-07-04 21:35       ` Thomas Monjalon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ad0978a6-99e8-6bcc-f967-8d6e0747f03d@intel.com \
    --to=anatoly.burakov@intel.com \
    --cc=dev@dpdk.org \
    --cc=pallantlax.poornima@intel.com \
    --cc=reshma.pattan@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).