test/stub: require -i shm_id parameter
Change-Id: I8ae709876f7b189a8acfbf638108c1c555e92259 Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-on: https://review.gerrithub.io/365053 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
3b3ab8696c
commit
1f5bbe02cf
@ -43,7 +43,7 @@ usage(char *executable_name)
|
|||||||
{
|
{
|
||||||
printf("%s [options]\n", executable_name);
|
printf("%s [options]\n", executable_name);
|
||||||
printf("options:\n");
|
printf("options:\n");
|
||||||
printf(" -i shared memory ID\n");
|
printf(" -i shared memory ID [required]\n");
|
||||||
printf(" -m mask core mask for DPDK\n");
|
printf(" -m mask core mask for DPDK\n");
|
||||||
printf(" -n channel number of memory channels used for DPDK\n");
|
printf(" -n channel number of memory channels used for DPDK\n");
|
||||||
printf(" -p core master (primary) core for DPDK\n");
|
printf(" -p core master (primary) core for DPDK\n");
|
||||||
@ -99,6 +99,12 @@ main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (opts.shm_id < 0) {
|
||||||
|
fprintf(stderr, "%s: -i shared memory ID must be specified\n", argv[0]);
|
||||||
|
usage(argv[0]);
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
optind = 1; /* reset the optind */
|
optind = 1; /* reset the optind */
|
||||||
|
|
||||||
spdk_env_init(&opts);
|
spdk_env_init(&opts);
|
||||||
|
Loading…
Reference in New Issue
Block a user