@@ -4,12 +4,13 @@ AM_DISTCHECK_CONFIGURE_FLAGS = --enable-user-guides \
--with-testdir
#@with_platform@ works alone in subdir but not as part of a path???
-SUBDIRS = @platform_with_platform@ \
+SUBDIRS = \
+ test_common \
helper \
+ @platform_with_platform@ \
helper/test \
doc \
example . \
- test_common \
test
@DX_RULES@
@@ -170,7 +170,6 @@ IMPLEMENTATION_NAME=""
if test "${with_platform}" = "linux-generic";
then
m4_include([./platform/linux-generic/m4/configure.m4])
- m4_include([./test/linux-generic/m4/configure.m4])
IMPLEMENTATION_NAME="odp-linux"
else
echo "UNSUPPORTED PLATFORM: ${with_platform}"
@@ -3,6 +3,8 @@
include $(top_srcdir)/platform/Makefile.inc
+SUBDIRS = . test
+
AM_CPPFLAGS = -I$(srcdir)/include
AM_CPPFLAGS += -I$(top_srcdir)/include
AM_CPPFLAGS += -I$(top_srcdir)/include/odp/arch/@ARCH_ABI@
@@ -9,5 +9,14 @@ m4_include([platform/linux-generic/m4/odp_netmap.m4])
m4_include([platform/linux-generic/m4/odp_dpdk.m4])
m4_include([platform/linux-generic/m4/odp_schedule.m4])
+m4_include([platform/linux-generic/m4/performance.m4])
+
AC_CONFIG_FILES([platform/linux-generic/Makefile
- platform/linux-generic/include/odp/api/plat/static_inline.h])
+ platform/linux-generic/include/odp/api/plat/static_inline.h
+ platform/linux-generic/test/Makefile
+ platform/linux-generic/test/validation/api/shmem/Makefile
+ platform/linux-generic/test/validation/api/pktio/Makefile
+ platform/linux-generic/test/mmap_vlan_ins/Makefile
+ platform/linux-generic/test/pktio_ipc/Makefile
+ platform/linux-generic/test/ring/Makefile
+ platform/linux-generic/test/performance/Makefile])
similarity index 100%
rename from test/linux-generic/m4/performance.m4
rename to platform/linux-generic/m4/performance.m4
similarity index 100%
rename from test/linux-generic/.gitignore
rename to platform/linux-generic/test/.gitignore
similarity index 100%
rename from test/linux-generic/Makefile.am
rename to platform/linux-generic/test/Makefile.am
similarity index 100%
rename from test/linux-generic/Makefile.inc
rename to platform/linux-generic/test/Makefile.inc
similarity index 100%
rename from test/linux-generic/mmap_vlan_ins/.gitignore
rename to platform/linux-generic/test/mmap_vlan_ins/.gitignore
similarity index 100%
rename from test/linux-generic/mmap_vlan_ins/Makefile.am
rename to platform/linux-generic/test/mmap_vlan_ins/Makefile.am
similarity index 100%
rename from test/linux-generic/mmap_vlan_ins/mmap_vlan_ins.c
rename to platform/linux-generic/test/mmap_vlan_ins/mmap_vlan_ins.c
similarity index 100%
rename from test/linux-generic/mmap_vlan_ins/mmap_vlan_ins.sh
rename to platform/linux-generic/test/mmap_vlan_ins/mmap_vlan_ins.sh
similarity index 100%
rename from test/linux-generic/mmap_vlan_ins/pktio_env
rename to platform/linux-generic/test/mmap_vlan_ins/pktio_env
similarity index 100%
rename from test/linux-generic/mmap_vlan_ins/vlan.pcap
rename to platform/linux-generic/test/mmap_vlan_ins/vlan.pcap
similarity index 100%
rename from test/linux-generic/performance/.gitignore
rename to platform/linux-generic/test/performance/.gitignore
similarity index 100%
rename from test/linux-generic/performance/Makefile.am
rename to platform/linux-generic/test/performance/Makefile.am
similarity index 88%
rename from test/linux-generic/performance/odp_scheduling_run_proc.sh
rename to platform/linux-generic/test/performance/odp_scheduling_run_proc.sh
@@ -9,7 +9,7 @@
# launched by 'make check'
TEST_DIR="${TEST_DIR:-$(dirname $0)}"
-PERFORMANCE="$TEST_DIR/../../common_plat/performance"
+PERFORMANCE="$TEST_DIR/../../../../test/common_plat/performance"
ret=0
ALL=0
similarity index 100%
rename from test/linux-generic/pktio_ipc/.gitignore
rename to platform/linux-generic/test/pktio_ipc/.gitignore
similarity index 100%
rename from test/linux-generic/pktio_ipc/Makefile.am
rename to platform/linux-generic/test/pktio_ipc/Makefile.am
similarity index 100%
rename from test/linux-generic/pktio_ipc/ipc_common.c
rename to platform/linux-generic/test/pktio_ipc/ipc_common.c
similarity index 100%
rename from test/linux-generic/pktio_ipc/ipc_common.h
rename to platform/linux-generic/test/pktio_ipc/ipc_common.h
similarity index 100%
rename from test/linux-generic/pktio_ipc/pktio_ipc1.c
rename to platform/linux-generic/test/pktio_ipc/pktio_ipc1.c
similarity index 100%
rename from test/linux-generic/pktio_ipc/pktio_ipc2.c
rename to platform/linux-generic/test/pktio_ipc/pktio_ipc2.c
similarity index 100%
rename from test/linux-generic/pktio_ipc/pktio_ipc_run.sh
rename to platform/linux-generic/test/pktio_ipc/pktio_ipc_run.sh
similarity index 100%
rename from test/linux-generic/ring/.gitignore
rename to platform/linux-generic/test/ring/.gitignore
similarity index 100%
rename from test/linux-generic/ring/Makefile.am
rename to platform/linux-generic/test/ring/Makefile.am
similarity index 100%
rename from test/linux-generic/ring/ring_basic.c
rename to platform/linux-generic/test/ring/ring_basic.c
similarity index 100%
rename from test/linux-generic/ring/ring_main.c
rename to platform/linux-generic/test/ring/ring_main.c
similarity index 100%
rename from test/linux-generic/ring/ring_stress.c
rename to platform/linux-generic/test/ring/ring_stress.c
similarity index 100%
rename from test/linux-generic/ring/ring_suites.c
rename to platform/linux-generic/test/ring/ring_suites.c
similarity index 100%
rename from test/linux-generic/ring/ring_suites.h
rename to platform/linux-generic/test/ring/ring_suites.h
new file mode 100644
@@ -0,0 +1 @@
+include $(top_srcdir)/platform/linux-generic/test/Makefile.inc
new file mode 100644
@@ -0,0 +1 @@
+include $(top_srcdir)/platform/linux-generic/test/validation/Makefile.inc
similarity index 100%
rename from test/linux-generic/validation/api/pktio/.gitignore
rename to platform/linux-generic/test/validation/api/pktio/.gitignore
similarity index 100%
rename from test/linux-generic/validation/api/pktio/Makefile.am
rename to platform/linux-generic/test/validation/api/pktio/Makefile.am
similarity index 100%
rename from test/linux-generic/validation/api/pktio/pktio_env
rename to platform/linux-generic/test/validation/api/pktio/pktio_env
similarity index 97%
rename from test/linux-generic/validation/api/pktio/pktio_run.sh
rename to platform/linux-generic/test/validation/api/pktio/pktio_run.sh
@@ -23,7 +23,7 @@
# running stand alone out of tree requires setting PATH
PATH=${TEST_DIR}/api/pktio:$PATH
PATH=$(dirname $0):$PATH
-PATH=$(dirname $0)/../../../../common_plat/validation/api/pktio:$PATH
+PATH=$(dirname $0)/../../../../../../test/common_plat/validation/api/pktio:$PATH
PATH=.:$PATH
pktio_main_path=$(which pktio_main${EXEEXT})
similarity index 96%
rename from test/linux-generic/validation/api/pktio/pktio_run_dpdk.sh
rename to platform/linux-generic/test/validation/api/pktio/pktio_run_dpdk.sh
@@ -23,7 +23,7 @@
# running stand alone out of tree requires setting PATH
PATH=${TEST_DIR}/api/pktio:$PATH
PATH=$(dirname $0):$PATH
-PATH=$(dirname $0)/../../../../common_plat/validation/api/pktio:$PATH
+PATH=$(dirname $0)/../../../../../../test/common_plat/validation/api/pktio:$PATH
PATH=.:$PATH
pktio_main_path=$(which pktio_main${EXEEXT})
similarity index 96%
rename from test/linux-generic/validation/api/pktio/pktio_run_netmap.sh
rename to platform/linux-generic/test/validation/api/pktio/pktio_run_netmap.sh
@@ -17,7 +17,7 @@
# running stand alone out of tree requires setting PATH
PATH=${TEST_DIR}/api/pktio:$PATH
PATH=$(dirname $0):$PATH
-PATH=$(dirname $0)/../../../../common_plat/validation/api/pktio:$PATH
+PATH=$(dirname $0)/../../../../../../test/common_plat/validation/api/pktio:$PATH
PATH=.:$PATH
pktio_main_path=$(which pktio_main${EXEEXT})
similarity index 92%
rename from test/linux-generic/validation/api/pktio/pktio_run_pcap.sh
rename to platform/linux-generic/test/validation/api/pktio/pktio_run_pcap.sh
@@ -17,7 +17,7 @@
# running stand alone out of tree requires setting PATH
PATH=${TEST_DIR}/api/pktio:$PATH
PATH=$(dirname $0):$PATH
-PATH=$(dirname $0)/../../../../common_plat/validation/api/pktio:$PATH
+PATH=$(dirname $0)/../../../../../../test/common_plat/validation/api/pktio:$PATH
PATH=.:$PATH
pktio_main_path=$(which pktio_main${EXEEXT})
similarity index 96%
rename from test/linux-generic/validation/api/pktio/pktio_run_tap.sh
rename to platform/linux-generic/test/validation/api/pktio/pktio_run_tap.sh
@@ -18,7 +18,7 @@
# running stand alone out of tree requires setting PATH
PATH=${TEST_DIR}/api/pktio:$PATH
PATH=$(dirname $0):$PATH
-PATH=$(dirname $0)/../../../../common_plat/validation/api/pktio:$PATH
+PATH=$(dirname $0)/../../../../../../test/common_plat/validation/api/pktio:$PATH
PATH=.:$PATH
pktio_main_path=$(which pktio_main${EXEEXT})
similarity index 100%
rename from test/linux-generic/validation/api/shmem/.gitignore
rename to platform/linux-generic/test/validation/api/shmem/.gitignore
similarity index 100%
rename from test/linux-generic/validation/api/shmem/Makefile.am
rename to platform/linux-generic/test/validation/api/shmem/Makefile.am
similarity index 100%
rename from test/linux-generic/validation/api/shmem/shmem_common.h
rename to platform/linux-generic/test/validation/api/shmem/shmem_common.h
similarity index 100%
rename from test/linux-generic/validation/api/shmem/shmem_linux.c
rename to platform/linux-generic/test/validation/api/shmem/shmem_linux.c
similarity index 100%
rename from test/linux-generic/validation/api/shmem/shmem_linux.h
rename to platform/linux-generic/test/validation/api/shmem/shmem_linux.h
similarity index 100%
rename from test/linux-generic/validation/api/shmem/shmem_odp1.c
rename to platform/linux-generic/test/validation/api/shmem/shmem_odp1.c
similarity index 100%
rename from test/linux-generic/validation/api/shmem/shmem_odp1.h
rename to platform/linux-generic/test/validation/api/shmem/shmem_odp1.h
similarity index 100%
rename from test/linux-generic/validation/api/shmem/shmem_odp2.c
rename to platform/linux-generic/test/validation/api/shmem/shmem_odp2.c
similarity index 100%
rename from test/linux-generic/validation/api/shmem/shmem_odp2.h
rename to platform/linux-generic/test/validation/api/shmem/shmem_odp2.h
@@ -1 +1 @@
-SUBDIRS = common_plat @with_platform@
+SUBDIRS = common_plat
@@ -30,7 +30,7 @@ PATH=$TEST_DIR:$TEST_DIR/../../../example/generator:$PATH
# exit codes expected by automake for skipped tests
TEST_SKIPPED=77
-PLATFORM_VALIDATION=${TEST_SRC_DIR}/../../$ODP_PLATFORM/validation
+PLATFORM_VALIDATION=${TEST_SRC_DIR}/../../../platform/$ODP_PLATFORM/test/validation
FLOOD_MODE=0
deleted file mode 100644
@@ -1,9 +0,0 @@
-m4_include([test/linux-generic/m4/performance.m4])
-
-AC_CONFIG_FILES([test/linux-generic/Makefile
- test/linux-generic/validation/api/shmem/Makefile
- test/linux-generic/validation/api/pktio/Makefile
- test/linux-generic/mmap_vlan_ins/Makefile
- test/linux-generic/pktio_ipc/Makefile
- test/linux-generic/ring/Makefile
- test/linux-generic/performance/Makefile])
deleted file mode 100644
@@ -1 +0,0 @@
-include $(top_srcdir)/test/linux-generic/Makefile.inc
deleted file mode 100644
@@ -1 +0,0 @@
-include $(top_srcdir)/test/linux-generic/validation/Makefile.inc
@@ -1,6 +1,16 @@
if cunit_support
-include $(top_srcdir)/test/Makefile.inc
+AM_CPPFLAGS = \
+ -I$(top_builddir)/platform/@with_platform@/include \
+ -I$(top_srcdir)/helper/include \
+ -I$(top_srcdir)/include \
+ -I$(top_srcdir)/include/odp/arch/@ARCH_ABI@ \
+ -I$(top_srcdir)/platform/@with_platform@/include \
+ -I$(top_srcdir)/platform/@with_platform@/arch/@ARCH_DIR@ \
+ -I$(top_builddir)/include \
+ -I$(top_srcdir)/helper
+
+AM_CFLAGS = $(CUNIT_CFLAGS)
noinst_LTLIBRARIES = libcunit_common.la libcpumask_common.la libthrmask_common.la