@@ -9,6 +9,7 @@ SUBDIRS = @platform_with_platform@ \
helper/test \
doc \
example . \
+ test_common \
test
@DX_RULES@
@@ -1,7 +1 @@
-SUBDIRS =
-
-if cunit_support
-SUBDIRS += common
-endif
-
-SUBDIRS += performance miscellaneous validation
+SUBDIRS = performance miscellaneous validation
@@ -2,8 +2,8 @@ m4_include([test/common_plat/m4/miscellaneous.m4])
m4_include([test/common_plat/m4/performance.m4])
m4_include([test/common_plat/m4/validation.m4])
-AC_CONFIG_FILES([test/common_plat/Makefile
- test/common_plat/common/Makefile
+AC_CONFIG_FILES([test_common/Makefile
+ test/common_plat/Makefile
test/common_plat/miscellaneous/Makefile
test/common_plat/performance/Makefile
test/common_plat/validation/Makefile
@@ -1,8 +1,8 @@
include $(top_srcdir)/test/Makefile.inc
-COMMON_DIR = $(top_builddir)/test/common_plat/common
+COMMON_DIR = $(top_builddir)/test_common
-AM_CFLAGS += -I$(top_srcdir)/test/common_plat/common
+AM_CFLAGS += -I$(top_srcdir)/test_common
AM_LDFLAGS += $(DPDK_PMDS)
AM_CFLAGS += $(CUNIT_CFLAGS)
@@ -6,11 +6,11 @@ AM_LDFLAGS = -static
AM_CFLAGS = $(CUNIT_CFLAGS)
-LIBCUNIT_COMMON = $(top_builddir)/test/common_plat/common/libcunit_common.la
+LIBCUNIT_COMMON = $(top_builddir)/test_common/libcunit_common.la
LIB = $(top_builddir)/lib
LIBODP = $(LIB)/libodphelper.la $(LIB)/libodp-linux.la $(DPDK_PMDS)
-INCCUNIT_COMMON = -I$(top_srcdir)/test/common_plat/common
+INCCUNIT_COMMON = -I$(top_srcdir)/test_common
INCODP = \
-I$(top_builddir)/include \
-I$(top_builddir)/platform/@with_platform@/include \
similarity index 94%
rename from test/common_plat/common/Makefile.am
rename to test_common/Makefile.am
@@ -1,3 +1,5 @@
+if cunit_support
+
include $(top_srcdir)/test/Makefile.inc
noinst_LTLIBRARIES = libcunit_common.la libcpumask_common.la libthrmask_common.la
@@ -9,3 +11,5 @@ libcpumask_common_la_SOURCES = mask_common.c mask_common.h
libthrmask_common_la_SOURCES = mask_common.c mask_common.h
libthrmask_common_la_CFLAGS = $(AM_CFLAGS) -DTEST_THRMASK
+
+endif
similarity index 100%
rename from test/common_plat/common/mask_common.c
rename to test_common/mask_common.c
similarity index 100%
rename from test/common_plat/common/mask_common.h
rename to test_common/mask_common.h
similarity index 100%
rename from test/common_plat/common/odp_cunit_common.c
rename to test_common/odp_cunit_common.c
similarity index 100%
rename from test/common_plat/common/odp_cunit_common.h
rename to test_common/odp_cunit_common.h