@@ -91,9 +91,15 @@ odp_suiteinfo_t shmem_suites[] = {
ODP_SUITE_INFO_NULL,
};
-int shmem_main(void)
+int shmem_main(int argc, char *argv[])
{
- int ret = odp_cunit_register(shmem_suites);
+ int ret;
+
+ /* parse common options: */
+ if (odp_cunit_parse_options(argc, argv))
+ return -1;
+
+ ret = odp_cunit_register(shmem_suites);
if (ret == 0)
ret = odp_cunit_run();
@@ -19,6 +19,6 @@ extern odp_testinfo_t shmem_suite[];
extern odp_suiteinfo_t shmem_suites[];
/* main test program: */
-int shmem_main(void);
+int shmem_main(int argc, char *argv[]);
#endif
@@ -6,7 +6,7 @@
#include "shmem.h"
-int main(void)
+int main(int argc, char *argv[])
{
- return shmem_main();
+ return shmem_main(argc, argv);
}
As the test itself does not have specific args, it just calls the cunit_common parsing function to pick up cunit_common and helpers arguments. Signed-off-by: Christophe Milard <christophe.milard@linaro.org> --- test/validation/shmem/shmem.c | 10 ++++++++-- test/validation/shmem/shmem.h | 2 +- test/validation/shmem/shmem_main.c | 4 ++-- 3 files changed, 11 insertions(+), 5 deletions(-)