@@ -118,7 +118,7 @@ IMPLEMENTATION_NAME=""
if test "${with_platform}" == "linux-generic";
then
m4_include([./platform/linux-generic/m4/configure.m4])
- m4_include([./test/platform/linux-generic/m4/configure.m4])
+ m4_include([./test/linux-generic/m4/configure.m4])
IMPLEMENTATION_NAME="odp-linux"
else
echo "UNSUPPORTED PLATFORM: ${with_platform}"
@@ -1,5 +1 @@
-SUBDIRS = common_plat
-
-if cunit_support
- SUBDIRS += @platform_with_platform@
-endif
+SUBDIRS = common_plat @with_platform@
@@ -30,6 +30,8 @@ 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
+
# Use installed pktio env or for make check take it from platform directory
if [ -f "./pktio_env" ]; then
. ./pktio_env
@@ -37,8 +39,8 @@ elif [ "$ODP_PLATFORM" = "" ]; then
echo "$0: error: ODP_PLATFORM must be defined"
# not skipped as this should never happen via "make check"
exit 1
-elif [ -f ${TEST_SRC_DIR}/../../platform/$ODP_PLATFORM/pktio/pktio_env ]; then
- . ${TEST_SRC_DIR}/../../platform/$ODP_PLATFORM/pktio/pktio_env
+elif [ -f ${PLATFORM_VALIDATION}/api/pktio/pktio_env ]; then
+ . ${PLATFORM_VALIDATION}/api/pktio/pktio_env
else
echo "BUG: unable to find pktio_env!"
echo "pktio_env has to be in current directory or in platform/\$ODP_PLATFORM/test."
similarity index 100%
rename from test/platform/linux-generic/.gitignore
rename to test/linux-generic/.gitignore
similarity index 81%
rename from test/platform/linux-generic/Makefile.am
rename to test/linux-generic/Makefile.am
@@ -1,17 +1,14 @@
include $(top_srcdir)/test/Makefile.inc
TESTS_ENVIRONMENT += TEST_DIR=${top_builddir}/test/common_plat/validation
-ODP_MODULES = pktio \
- ring \
- shmem
-
ALL_API_VALIDATION_DIR = ${top_builddir}/test/common_plat/validation/api
+SUBDIRS =
+
if test_vald
-TESTS = pktio/pktio_run.sh \
- pktio/pktio_run_tap.sh \
- ring/ring_main$(EXEEXT) \
- shmem/shmem_linux \
+TESTS = validation/api/pktio/pktio_run.sh \
+ validation/api/pktio/pktio_run_tap.sh \
+ validation/api/shmem/shmem_linux \
$(ALL_API_VALIDATION_DIR)/atomic/atomic_main$(EXEEXT) \
$(ALL_API_VALIDATION_DIR)/barrier/barrier_main$(EXEEXT) \
$(ALL_API_VALIDATION_DIR)/buffer/buffer_main$(EXEEXT) \
@@ -35,22 +32,32 @@ TESTS = pktio/pktio_run.sh \
$(ALL_API_VALIDATION_DIR)/timer/timer_main$(EXEEXT) \
$(ALL_API_VALIDATION_DIR)/traffic_mngr/traffic_mngr_main$(EXEEXT) \
$(ALL_API_VALIDATION_DIR)/shmem/shmem_main$(EXEEXT) \
- $(ALL_API_VALIDATION_DIR)/system/system_main$(EXEEXT)
+ $(ALL_API_VALIDATION_DIR)/system/system_main$(EXEEXT) \
+ ring/ring_main$(EXEEXT)
-SUBDIRS = $(ODP_MODULES)
+SUBDIRS += validation/api/pktio\
+ validation/api/shmem\
+ pktio_ipc\
+ ring
if HAVE_PCAP
-TESTS += pktio/pktio_run_pcap.sh
+TESTS += validation/api/pktio/pktio_run_pcap.sh
+endif
+if netmap_support
+TESTS += validation/api/pktio/pktio_run_netmap.sh
endif
+if PKTIO_DPDK
+TESTS += validation/api/pktio/pktio_run_dpdk.sh
+endif
+
if PKTIO_IPC
TESTS += pktio_ipc/pktio_ipc_run.sh
SUBDIRS += pktio_ipc
endif
-if netmap_support
-TESTS += pktio/pktio_run_netmap.sh
-endif
-if PKTIO_DPDK
-TESTS += pktio/pktio_run_dpdk.sh
+else
+#performance tests refer to pktio_env
+if test_perf
+SUBDIRS += validation/api/pktio
endif
endif
@@ -70,7 +77,3 @@ installcheck-local:
$(DESTDIR)/$(testdir)/run-test
endif
-#performance tests refer to pktio_env
-if test_perf
-SUBDIRS = pktio
-endif
similarity index 100%
rename from test/platform/linux-generic/Makefile.inc
rename to test/linux-generic/Makefile.inc
new file mode 100644
@@ -0,0 +1,5 @@
+AC_CONFIG_FILES([test/linux-generic/Makefile
+ test/linux-generic/validation/api/shmem/Makefile
+ test/linux-generic/validation/api/pktio/Makefile
+ test/linux-generic/pktio_ipc/Makefile
+ test/linux-generic/ring/Makefile])
similarity index 100%
rename from test/platform/linux-generic/pktio_ipc/.gitignore
rename to test/linux-generic/pktio_ipc/.gitignore
similarity index 100%
rename from test/platform/linux-generic/pktio_ipc/Makefile.am
rename to test/linux-generic/pktio_ipc/Makefile.am
similarity index 100%
rename from test/platform/linux-generic/pktio_ipc/ipc_common.c
rename to test/linux-generic/pktio_ipc/ipc_common.c
similarity index 100%
rename from test/platform/linux-generic/pktio_ipc/ipc_common.h
rename to test/linux-generic/pktio_ipc/ipc_common.h
similarity index 100%
rename from test/platform/linux-generic/pktio_ipc/pktio_ipc1.c
rename to test/linux-generic/pktio_ipc/pktio_ipc1.c
similarity index 100%
rename from test/platform/linux-generic/pktio_ipc/pktio_ipc2.c
rename to test/linux-generic/pktio_ipc/pktio_ipc2.c
similarity index 100%
rename from test/platform/linux-generic/pktio_ipc/pktio_ipc_run.sh
rename to test/linux-generic/pktio_ipc/pktio_ipc_run.sh
similarity index 100%
rename from test/platform/linux-generic/ring/.gitignore
rename to test/linux-generic/ring/.gitignore
similarity index 100%
rename from test/platform/linux-generic/ring/Makefile.am
rename to test/linux-generic/ring/Makefile.am
similarity index 100%
rename from test/platform/linux-generic/ring/ring_basic.c
rename to test/linux-generic/ring/ring_basic.c
similarity index 100%
rename from test/platform/linux-generic/ring/ring_main.c
rename to test/linux-generic/ring/ring_main.c
similarity index 100%
rename from test/platform/linux-generic/ring/ring_stress.c
rename to test/linux-generic/ring/ring_stress.c
similarity index 100%
rename from test/platform/linux-generic/ring/ring_suites.c
rename to test/linux-generic/ring/ring_suites.c
similarity index 100%
rename from test/platform/linux-generic/ring/ring_suites.h
rename to test/linux-generic/ring/ring_suites.h
similarity index 100%
rename from test/platform/linux-generic/run-test
rename to test/linux-generic/run-test
new file mode 100644
@@ -0,0 +1 @@
+include $(top_srcdir)/test/linux-generic/Makefile.inc
new file mode 100644
@@ -0,0 +1 @@
+include $(top_srcdir)/test/linux-generic/validation/Makefile.inc
similarity index 100%
rename from test/platform/linux-generic/pktio/.gitignore
rename to test/linux-generic/validation/api/pktio/.gitignore
similarity index 100%
rename from test/platform/linux-generic/pktio/Makefile.am
rename to test/linux-generic/validation/api/pktio/Makefile.am
similarity index 100%
rename from test/platform/linux-generic/pktio/pktio_env
rename to test/linux-generic/validation/api/pktio/pktio_env
similarity index 97%
rename from test/platform/linux-generic/pktio/pktio_run.sh
rename to test/linux-generic/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)/../../../../test/validation/api/pktio:$PATH
+PATH=$(dirname $0)/../../../../common_plat/validation/api/pktio:$PATH
PATH=.:$PATH
pktio_main_path=$(which pktio_main${EXEEXT})
similarity index 97%
rename from test/platform/linux-generic/pktio/pktio_run_dpdk.sh
rename to test/linux-generic/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)/../../../../test/validation/api/pktio:$PATH
+PATH=$(dirname $0)/../../../../common_plat/validation/api/pktio:$PATH
PATH=.:$PATH
pktio_main_path=$(which pktio_main${EXEEXT})
similarity index 97%
rename from test/platform/linux-generic/pktio/pktio_run_netmap.sh
rename to test/linux-generic/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)/../../../../test/validation/api/pktio:$PATH
+PATH=$(dirname $0)/../../../../common_plat/validation/api/pktio:$PATH
PATH=.:$PATH
pktio_main_path=$(which pktio_main${EXEEXT})
similarity index 93%
rename from test/platform/linux-generic/pktio/pktio_run_pcap.sh
rename to test/linux-generic/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)/../../../../test/validation/api/pktio:$PATH
+PATH=$(dirname $0)/../../../../common_plat/validation/api/pktio:$PATH
PATH=.:$PATH
pktio_main_path=$(which pktio_main${EXEEXT})
similarity index 97%
rename from test/platform/linux-generic/pktio/pktio_run_tap.sh
rename to test/linux-generic/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)/../../../../test/validation/api/pktio:$PATH
+PATH=$(dirname $0)/../../../../common_plat/validation/api/pktio:$PATH
PATH=.:$PATH
pktio_main_path=$(which pktio_main${EXEEXT})
similarity index 100%
rename from test/platform/linux-generic/shmem/.gitignore
rename to test/linux-generic/validation/api/shmem/.gitignore
similarity index 100%
rename from test/platform/linux-generic/shmem/Makefile.am
rename to test/linux-generic/validation/api/shmem/Makefile.am
similarity index 100%
rename from test/platform/linux-generic/shmem/shmem.h
rename to test/linux-generic/validation/api/shmem/shmem.h
similarity index 100%
rename from test/platform/linux-generic/shmem/shmem_common.h
rename to test/linux-generic/validation/api/shmem/shmem_common.h
similarity index 100%
rename from test/platform/linux-generic/shmem/shmem_linux.c
rename to test/linux-generic/validation/api/shmem/shmem_linux.c
similarity index 100%
rename from test/platform/linux-generic/shmem/shmem_linux.h
rename to test/linux-generic/validation/api/shmem/shmem_linux.h
similarity index 100%
rename from test/platform/linux-generic/shmem/shmem_odp.c
rename to test/linux-generic/validation/api/shmem/shmem_odp.c
similarity index 100%
rename from test/platform/linux-generic/shmem/shmem_odp.h
rename to test/linux-generic/validation/api/shmem/shmem_odp.h
deleted file mode 100644
@@ -1,5 +0,0 @@
-AC_CONFIG_FILES([test/platform/linux-generic/Makefile
- test/platform/linux-generic/shmem/Makefile
- test/platform/linux-generic/pktio/Makefile
- test/platform/linux-generic/pktio_ipc/Makefile
- test/platform/linux-generic/ring/Makefile])
test/platform/<platform_name>/* moves to: test/<platform_name>/validation/api/ Two reasons: *test/platform/<platform_name>/ now moves to test/<platform_name>, hence at the same level than "common_plat" clearly separating between platform agnostic and platform specific parts. *Also, under test/<platform_name>, the test group "validation" and interface "api" are created, hence allowing for other tests type to have platform specifics (for instance running perf test from platform side to set proper pktios), and allowing other interfaces to be tested under validation. Signed-off-by: Christophe Milard <christophe.milard@linaro.org> --- configure.ac | 2 +- test/Makefile.am | 6 +-- test/common_plat/performance/odp_l2fwd_run.sh | 6 ++- test/{platform => }/linux-generic/.gitignore | 0 test/{platform => }/linux-generic/Makefile.am | 43 ++++++++++++---------- test/{platform => }/linux-generic/Makefile.inc | 0 test/linux-generic/m4/configure.m4 | 5 +++ .../linux-generic/pktio_ipc/.gitignore | 0 .../linux-generic/pktio_ipc/Makefile.am | 0 .../linux-generic/pktio_ipc/ipc_common.c | 0 .../linux-generic/pktio_ipc/ipc_common.h | 0 .../linux-generic/pktio_ipc/pktio_ipc1.c | 0 .../linux-generic/pktio_ipc/pktio_ipc2.c | 0 .../linux-generic/pktio_ipc/pktio_ipc_run.sh | 0 test/{platform => }/linux-generic/ring/.gitignore | 0 test/{platform => }/linux-generic/ring/Makefile.am | 0 .../{platform => }/linux-generic/ring/ring_basic.c | 0 test/{platform => }/linux-generic/ring/ring_main.c | 0 .../linux-generic/ring/ring_stress.c | 0 .../linux-generic/ring/ring_suites.c | 0 .../linux-generic/ring/ring_suites.h | 0 test/{platform => }/linux-generic/run-test | 0 test/linux-generic/validation/Makefile.inc | 1 + test/linux-generic/validation/api/Makefile.inc | 1 + .../validation/api}/pktio/.gitignore | 0 .../validation/api}/pktio/Makefile.am | 0 .../validation/api}/pktio/pktio_env | 0 .../validation/api}/pktio/pktio_run.sh | 2 +- .../validation/api}/pktio/pktio_run_dpdk.sh | 2 +- .../validation/api}/pktio/pktio_run_netmap.sh | 2 +- .../validation/api}/pktio/pktio_run_pcap.sh | 2 +- .../validation/api}/pktio/pktio_run_tap.sh | 2 +- .../validation/api}/shmem/.gitignore | 0 .../validation/api}/shmem/Makefile.am | 0 .../validation/api}/shmem/shmem.h | 0 .../validation/api}/shmem/shmem_common.h | 0 .../validation/api}/shmem/shmem_linux.c | 0 .../validation/api}/shmem/shmem_linux.h | 0 .../validation/api}/shmem/shmem_odp.c | 0 .../validation/api}/shmem/shmem_odp.h | 0 test/platform/linux-generic/m4/configure.m4 | 5 --- 41 files changed, 41 insertions(+), 38 deletions(-) rename test/{platform => }/linux-generic/.gitignore (100%) rename test/{platform => }/linux-generic/Makefile.am (81%) rename test/{platform => }/linux-generic/Makefile.inc (100%) create mode 100644 test/linux-generic/m4/configure.m4 rename test/{platform => }/linux-generic/pktio_ipc/.gitignore (100%) rename test/{platform => }/linux-generic/pktio_ipc/Makefile.am (100%) rename test/{platform => }/linux-generic/pktio_ipc/ipc_common.c (100%) rename test/{platform => }/linux-generic/pktio_ipc/ipc_common.h (100%) rename test/{platform => }/linux-generic/pktio_ipc/pktio_ipc1.c (100%) rename test/{platform => }/linux-generic/pktio_ipc/pktio_ipc2.c (100%) rename test/{platform => }/linux-generic/pktio_ipc/pktio_ipc_run.sh (100%) rename test/{platform => }/linux-generic/ring/.gitignore (100%) rename test/{platform => }/linux-generic/ring/Makefile.am (100%) rename test/{platform => }/linux-generic/ring/ring_basic.c (100%) rename test/{platform => }/linux-generic/ring/ring_main.c (100%) rename test/{platform => }/linux-generic/ring/ring_stress.c (100%) rename test/{platform => }/linux-generic/ring/ring_suites.c (100%) rename test/{platform => }/linux-generic/ring/ring_suites.h (100%) rename test/{platform => }/linux-generic/run-test (100%) create mode 100644 test/linux-generic/validation/Makefile.inc create mode 100644 test/linux-generic/validation/api/Makefile.inc rename test/{platform/linux-generic => linux-generic/validation/api}/pktio/.gitignore (100%) rename test/{platform/linux-generic => linux-generic/validation/api}/pktio/Makefile.am (100%) rename test/{platform/linux-generic => linux-generic/validation/api}/pktio/pktio_env (100%) rename test/{platform/linux-generic => linux-generic/validation/api}/pktio/pktio_run.sh (97%) rename test/{platform/linux-generic => linux-generic/validation/api}/pktio/pktio_run_dpdk.sh (97%) rename test/{platform/linux-generic => linux-generic/validation/api}/pktio/pktio_run_netmap.sh (97%) rename test/{platform/linux-generic => linux-generic/validation/api}/pktio/pktio_run_pcap.sh (93%) rename test/{platform/linux-generic => linux-generic/validation/api}/pktio/pktio_run_tap.sh (97%) rename test/{platform/linux-generic => linux-generic/validation/api}/shmem/.gitignore (100%) rename test/{platform/linux-generic => linux-generic/validation/api}/shmem/Makefile.am (100%) rename test/{platform/linux-generic => linux-generic/validation/api}/shmem/shmem.h (100%) rename test/{platform/linux-generic => linux-generic/validation/api}/shmem/shmem_common.h (100%) rename test/{platform/linux-generic => linux-generic/validation/api}/shmem/shmem_linux.c (100%) rename test/{platform/linux-generic => linux-generic/validation/api}/shmem/shmem_linux.h (100%) rename test/{platform/linux-generic => linux-generic/validation/api}/shmem/shmem_odp.c (100%) rename test/{platform/linux-generic => linux-generic/validation/api}/shmem/shmem_odp.h (100%) delete mode 100644 test/platform/linux-generic/m4/configure.m4 -- 2.7.4