@@ -308,6 +308,7 @@ AC_CONFIG_FILES([Makefile
test/validation/crypto/Makefile
test/validation/init/Makefile
test/validation/pktio/Makefile
+ test/validation/pool/Makefile
test/validation/queue/Makefile
test/validation/random/Makefile
test/validation/system/Makefile
@@ -4,7 +4,6 @@ odp_ver_abt_log_dbg
odp_buffer
odp_cpumask
odp_packet
-odp_pool
odp_scheduler
odp_shared_memory
odp_synchronizers
@@ -7,7 +7,6 @@ AM_LDFLAGS += -static
EXECUTABLES = odp_buffer \
odp_cpumask \
odp_packet \
- odp_pool \
odp_scheduler \
odp_shared_memory \
odp_synchronizers \
@@ -16,7 +15,8 @@ EXECUTABLES = odp_buffer \
odp_ver_abt_log_dbg
if test_vald
-TESTS = $(EXECUTABLES)
+TESTS = $(EXECUTABLES) \
+ pool/pool_main
endif
bin_PROGRAMS = $(EXECUTABLES) $(COMPILE_ONLY)
@@ -33,9 +33,6 @@ dist_odp_shared_memory_SOURCES = odp_shared_memory.c
dist_odp_synchronizers_SOURCES = odp_synchronizers.c
dist_odp_timer_SOURCES = odp_timer.c
dist_odp_packet_SOURCES = odp_packet.c
-odp_pool_LDADD = $(top_builddir)/test/validation/common/libcunit_common.a \
- $(LIB)/libodp.la
-dist_odp_pool_SOURCES = odp_pool.c
dist_odp_cpumask_SOURCES = odp_cpumask.c
dist_odp_thread_SOURCES = odp_thread.c
odp_ver_abt_log_dbg_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/ver_abt_log_dbg
@@ -48,6 +45,7 @@ ODP_MODULES = classification \
init \
queue \
pktio \
+ pool \
random \
system
new file mode 100644
@@ -0,0 +1,2 @@
+libpool.a
+pool_main
new file mode 100644
@@ -0,0 +1,8 @@
+include ../Makefile.inc
+
+noinst_LIBRARIES = libpool.a
+libpool_a_SOURCES = pool.c
+
+bin_PROGRAMS = pool_main
+dist_pool_main_SOURCES = pool_main.c
+pool_main_LDADD = libpool.a $(LIBCUNIT_COMMON) $(LIBODP)
similarity index 96%
rename from test/validation/odp_pool.c
rename to test/validation/pool/pool.c
@@ -6,6 +6,7 @@
#include <odp.h>
#include "odp_cunit_common.h"
+#include "pool.h"
static int pool_name_number = 1;
static const int default_buffer_size = 1500;
@@ -143,13 +144,7 @@ static CU_SuiteInfo pool_suites[] = {
CU_SUITE_INFO_NULL,
};
-static int pool_main(void)
+int pool_main(void)
{
return odp_cunit_run(pool_suites);
}
-
-/* the following main function will be separated when lib is created */
-int main(void)
-{
- return pool_main();
-}
new file mode 100644
@@ -0,0 +1,7 @@
+/* Copyright (c) 2015, Linaro Limited
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+int pool_main(void);
new file mode 100644
@@ -0,0 +1,12 @@
+/* Copyright (c) 2015, Linaro Limited
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#include "pool.h"
+
+int main(void)
+{
+ return pool_main();
+}
Module poll now gets its own directory and create its own lib (currentely only containing its executable) Signed-off-by: Christophe Milard <christophe.milard@linaro.org> --- configure.ac | 1 + test/validation/.gitignore | 1 - test/validation/Makefile.am | 8 +++----- test/validation/pool/.gitignore | 2 ++ test/validation/pool/Makefile.am | 8 ++++++++ test/validation/{odp_pool.c => pool/pool.c} | 9 ++------- test/validation/pool/pool.h | 7 +++++++ test/validation/pool/pool_main.c | 12 ++++++++++++ 8 files changed, 35 insertions(+), 13 deletions(-) create mode 100644 test/validation/pool/.gitignore create mode 100644 test/validation/pool/Makefile.am rename test/validation/{odp_pool.c => pool/pool.c} (96%) create mode 100644 test/validation/pool/pool.h create mode 100644 test/validation/pool/pool_main.c