diff mbox

[PATCHv3,1/2] validation: init src files in single directory

Message ID 1432138289-26907-2-git-send-email-christophe.milard@linaro.org
State New
Headers show

Commit Message

Christophe Milard May 20, 2015, 4:11 p.m. UTC
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%)
diff mbox

Patch

diff --git a/test/validation/Makefile.am b/test/validation/Makefile.am
index 7470d9d..814873c 100644
--- a/test/validation/Makefile.am
+++ b/test/validation/Makefile.am
@@ -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)
diff --git a/test/validation/odp_init.c b/test/validation/init/odp_init.c
similarity index 95%
rename from test/validation/odp_init.c
rename to test/validation/init/odp_init.c
index 82f8849..1332757 100644
--- a/test/validation/odp_init.c
+++ b/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);
 
diff --git a/test/validation/odp_init_abort.c b/test/validation/init/odp_init_abort.c
similarity index 100%
rename from test/validation/odp_init_abort.c
rename to test/validation/init/odp_init_abort.c
diff --git a/test/validation/odp_init_log.c b/test/validation/init/odp_init_log.c
similarity index 95%
rename from test/validation/odp_init_log.c
rename to test/validation/init/odp_init_log.c
index 275d343..98cc059 100644
--- a/test/validation/odp_init_log.c
+++ b/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)
 {