aboutsummaryrefslogtreecommitdiff
path: root/test/validation/pool/pool.c
diff options
context:
space:
mode:
authorChristophe Milard <christophe.milard@linaro.org>2016-04-11 10:56:13 +0200
committerMaxim Uvarov <maxim.uvarov@linaro.org>2016-05-23 15:06:58 +0300
commit151c3e8ece6e62d35b48ea24ac16f05956fa40df (patch)
tree04833ecc8a86686b1c644fdf353ebd3ceaa6e6ef /test/validation/pool/pool.c
parent9e8ec9775d577768f651fac4e1de362ffbd6dcbb (diff)
validation: most tests: adding command line argument parsing
As the tests themselves do not have specific args, they just call the cunit_common parsing function to pick up cunit_common and helpers arguments. This was originally many patches, now squashed on maintener's request. init and pktio tests are still separated as they have specificities Signed-off-by: Christophe Milard <christophe.milard@linaro.org> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com> Reviewed-by: Brian Brooks <brian.brooks@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'test/validation/pool/pool.c')
-rw-r--r--test/validation/pool/pool.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/test/validation/pool/pool.c b/test/validation/pool/pool.c
index 7f3299113..d48ac2a34 100644
--- a/test/validation/pool/pool.c
+++ b/test/validation/pool/pool.c
@@ -114,9 +114,15 @@ odp_suiteinfo_t pool_suites[] = {
ODP_SUITE_INFO_NULL,
};
-int pool_main(void)
+int pool_main(int argc, char *argv[])
{
- int ret = odp_cunit_register(pool_suites);
+ int ret;
+
+ /* parse common options: */
+ if (odp_cunit_parse_options(argc, argv))
+ return -1;
+
+ ret = odp_cunit_register(pool_suites);
if (ret == 0)
ret = odp_cunit_run();