@@ -47,9 +47,9 @@ dist_odp_classification_SOURCES = classification/odp_classification_tests.c \
odp_crypto_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/crypto
dist_odp_crypto_SOURCES = crypto/odp_crypto_test_inp.c \
odp_crypto.c $(ODP_CU_COMMON)
-dist_odp_init_SOURCES = odp_init.c
-dist_odp_init_abort_SOURCES = odp_init_abort.c
-dist_odp_init_log_SOURCES = odp_init_log.c
+dist_odp_init_SOURCES = init/odp_init.c
+dist_odp_init_abort_SOURCES = init/odp_init_abort.c
+dist_odp_init_log_SOURCES = init/odp_init_log.c
dist_odp_queue_SOURCES = odp_queue.c $(ODP_CU_COMMON)
dist_odp_random_SOURCES = odp_random.c $(ODP_CU_COMMON)
dist_odp_scheduler_SOURCES = odp_scheduler.c $(ODP_CU_COMMON)
similarity index 95%
rename from test/validation/odp_init.c
rename to test/validation/init/odp_init.c
@@ -8,12 +8,13 @@
#include <odp.h>
#include <CUnit/Basic.h>
-#define DEFAULT_MSG_POOL_SIZE (4*1024*1024)
+#define DEFAULT_MSG_POOL_SIZE (4 * 1024 * 1024)
#define DEFAULT_MSG_SIZE (8)
static void test_odp_init_global(void)
{
int status;
+
status = odp_init_global(NULL, NULL);
CU_ASSERT_FATAL(status == 0);
similarity index 100%
rename from test/validation/odp_init_abort.c
rename to test/validation/init/odp_init_abort.c
similarity index 95%
rename from test/validation/odp_init_log.c
rename to test/validation/init/odp_init_log.c
@@ -11,7 +11,7 @@
int replacement_logging_used;
ODP_PRINTF_FORMAT(2, 3)
-static int odp_init_log(odp_log_level_e level , const char *fmt, ...);
+static int odp_init_log(odp_log_level_e level, const char *fmt, ...);
static void test_odp_init_global_replace_log(void)
{
The 3 tests for initialisation still generate 3 executables, but their sources are simply gathered in a single directory called as the module itself, init. And other cosmetic fixes to please check-odp. Signed-off-by: Christophe Milard <christophe.milard@linaro.org> --- test/validation/Makefile.am | 6 +++--- test/validation/{ => init}/odp_init.c | 3 ++- test/validation/{ => init}/odp_init_abort.c | 0 test/validation/{ => init}/odp_init_log.c | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) rename test/validation/{ => init}/odp_init.c (95%) rename test/validation/{ => init}/odp_init_abort.c (100%) rename test/validation/{ => init}/odp_init_log.c (95%)