diff mbox

[PATCHv4] linux-gen: move platform tests into test suite

Message ID 1466143811-30864-1-git-send-email-yi.he@linaro.org
State New
Headers show

Commit Message

Yi He June 17, 2016, 6:10 a.m. UTC
Move platform tests from odp/platform/linux-generic/test
into test suite at odp/test/platform/linux-generic.

Signed-off-by: Yi He <yi.he@linaro.org>
---
v4 restore the invocation of general validation tests:
The Validation tests HAVE to be called from the platform side!!
That enables for individual platforms to define wrappers around tests:
If You run the validation tests from the validation side, any platforms
which needs to have a little twik (e.g. a specific setup, or soon, tests args)
will be stuck.

The patch only contains: the move, a new configure.m4 and minor changes
in scripts to mitigate checkpatch.pl warnings and one search path update.

 Makefile.am                                                        | 1 -
 configure.ac                                                       | 2 +-
 platform/linux-generic/m4/configure.m4                             | 7 +------
 test/Makefile.am                                                   | 2 +-
 test/performance/odp_l2fwd_run.sh                                  | 4 ++--
 .../linux-generic/test => test/platform/linux-generic}/.gitignore  | 0
 .../linux-generic/test => test/platform/linux-generic}/Makefile.am | 0
 .../test => test/platform/linux-generic}/Makefile.inc              | 0
 test/platform/linux-generic/m4/configure.m4                        | 5 +++++
 .../test => test/platform/linux-generic}/pktio/.gitignore          | 0
 .../test => test/platform/linux-generic}/pktio/Makefile.am         | 0
 .../test => test/platform/linux-generic}/pktio/pktio_env           | 0
 .../test => test/platform/linux-generic}/pktio/pktio_run.sh        | 3 ++-
 .../test => test/platform/linux-generic}/pktio/pktio_run_dpdk.sh   | 7 +++++--
 .../test => test/platform/linux-generic}/pktio/pktio_run_netmap.sh | 0
 .../test => test/platform/linux-generic}/pktio/pktio_run_pcap.sh   | 0
 .../test => test/platform/linux-generic}/pktio/pktio_run_tap.sh    | 0
 .../test => test/platform/linux-generic}/pktio_ipc/.gitignore      | 0
 .../test => test/platform/linux-generic}/pktio_ipc/Makefile.am     | 0
 .../test => test/platform/linux-generic}/pktio_ipc/ipc_common.c    | 0
 .../test => test/platform/linux-generic}/pktio_ipc/ipc_common.h    | 0
 .../test => test/platform/linux-generic}/pktio_ipc/pktio_ipc1.c    | 0
 .../test => test/platform/linux-generic}/pktio_ipc/pktio_ipc2.c    | 0
 .../platform/linux-generic}/pktio_ipc/pktio_ipc_run.sh             | 0
 .../test => test/platform/linux-generic}/ring/.gitignore           | 0
 .../test => test/platform/linux-generic}/ring/Makefile.am          | 0
 .../test => test/platform/linux-generic}/ring/ring_basic.c         | 0
 .../test => test/platform/linux-generic}/ring/ring_main.c          | 0
 .../test => test/platform/linux-generic}/ring/ring_stress.c        | 0
 .../test => test/platform/linux-generic}/ring/ring_suites.c        | 0
 .../test => test/platform/linux-generic}/ring/ring_suites.h        | 0
 .../linux-generic/test => test/platform/linux-generic}/run-test    | 0
 .../test => test/platform/linux-generic}/shmem/.gitignore          | 0
 .../test => test/platform/linux-generic}/shmem/Makefile.am         | 0
 .../test => test/platform/linux-generic}/shmem/shmem.h             | 0
 .../test => test/platform/linux-generic}/shmem/shmem_common.h      | 0
 .../test => test/platform/linux-generic}/shmem/shmem_linux.c       | 0
 .../test => test/platform/linux-generic}/shmem/shmem_linux.h       | 0
 .../test => test/platform/linux-generic}/shmem/shmem_odp.c         | 0
 .../test => test/platform/linux-generic}/shmem/shmem_odp.h         | 0
 40 files changed, 17 insertions(+), 14 deletions(-)
 rename {platform/linux-generic/test => test/platform/linux-generic}/.gitignore (100%)
 rename {platform/linux-generic/test => test/platform/linux-generic}/Makefile.am (100%)
 rename {platform/linux-generic/test => test/platform/linux-generic}/Makefile.inc (100%)
 create mode 100644 test/platform/linux-generic/m4/configure.m4
 rename {platform/linux-generic/test => test/platform/linux-generic}/pktio/.gitignore (100%)
 rename {platform/linux-generic/test => test/platform/linux-generic}/pktio/Makefile.am (100%)
 rename {platform/linux-generic/test => test/platform/linux-generic}/pktio/pktio_env (100%)
 rename {platform/linux-generic/test => test/platform/linux-generic}/pktio/pktio_run.sh (96%)
 rename {platform/linux-generic/test => test/platform/linux-generic}/pktio/pktio_run_dpdk.sh (90%)
 rename {platform/linux-generic/test => test/platform/linux-generic}/pktio/pktio_run_netmap.sh (100%)
 rename {platform/linux-generic/test => test/platform/linux-generic}/pktio/pktio_run_pcap.sh (100%)
 rename {platform/linux-generic/test => test/platform/linux-generic}/pktio/pktio_run_tap.sh (100%)
 rename {platform/linux-generic/test => test/platform/linux-generic}/pktio_ipc/.gitignore (100%)
 rename {platform/linux-generic/test => test/platform/linux-generic}/pktio_ipc/Makefile.am (100%)
 rename {platform/linux-generic/test => test/platform/linux-generic}/pktio_ipc/ipc_common.c (100%)
 rename {platform/linux-generic/test => test/platform/linux-generic}/pktio_ipc/ipc_common.h (100%)
 rename {platform/linux-generic/test => test/platform/linux-generic}/pktio_ipc/pktio_ipc1.c (100%)
 rename {platform/linux-generic/test => test/platform/linux-generic}/pktio_ipc/pktio_ipc2.c (100%)
 rename {platform/linux-generic/test => test/platform/linux-generic}/pktio_ipc/pktio_ipc_run.sh (100%)
 rename {platform/linux-generic/test => test/platform/linux-generic}/ring/.gitignore (100%)
 rename {platform/linux-generic/test => test/platform/linux-generic}/ring/Makefile.am (100%)
 rename {platform/linux-generic/test => test/platform/linux-generic}/ring/ring_basic.c (100%)
 rename {platform/linux-generic/test => test/platform/linux-generic}/ring/ring_main.c (100%)
 rename {platform/linux-generic/test => test/platform/linux-generic}/ring/ring_stress.c (100%)
 rename {platform/linux-generic/test => test/platform/linux-generic}/ring/ring_suites.c (100%)
 rename {platform/linux-generic/test => test/platform/linux-generic}/ring/ring_suites.h (100%)
 rename {platform/linux-generic/test => test/platform/linux-generic}/run-test (100%)
 rename {platform/linux-generic/test => test/platform/linux-generic}/shmem/.gitignore (100%)
 rename {platform/linux-generic/test => test/platform/linux-generic}/shmem/Makefile.am (100%)
 rename {platform/linux-generic/test => test/platform/linux-generic}/shmem/shmem.h (100%)
 rename {platform/linux-generic/test => test/platform/linux-generic}/shmem/shmem_common.h (100%)
 rename {platform/linux-generic/test => test/platform/linux-generic}/shmem/shmem_linux.c (100%)
 rename {platform/linux-generic/test => test/platform/linux-generic}/shmem/shmem_linux.h (100%)
 rename {platform/linux-generic/test => test/platform/linux-generic}/shmem/shmem_odp.c (100%)
 rename {platform/linux-generic/test => test/platform/linux-generic}/shmem/shmem_odp.h (100%)

Comments

Yi He June 17, 2016, 8:33 a.m. UTC | #1
Hi, Christophe

This is to mitigate the checkpatch.pl warning "line exceeds 80 characters".

On 17 June 2016 at 17:23, Christophe Milard <christophe.milard@linaro.org>
wrote:

> On 2016-06-17 06:10, Yi He wrote:
> > Move platform tests from odp/platform/linux-generic/test
> > into test suite at odp/test/platform/linux-generic.
> >
> > Signed-off-by: Yi He <yi.he@linaro.org>
> > ---
> > v4 restore the invocation of general validation tests:
> > The Validation tests HAVE to be called from the platform side!!
> > That enables for individual platforms to define wrappers around tests:
> > If You run the validation tests from the validation side, any platforms
> > which needs to have a little twik (e.g. a specific setup, or soon, tests
> args)
> > will be stuck.
> >
> > The patch only contains: the move, a new configure.m4 and minor changes
> > in scripts to mitigate checkpatch.pl warnings and one search path
> update.
> >
> >  Makefile.am                                                        | 1 -
> >  configure.ac                                                       | 2
> +-
> >  platform/linux-generic/m4/configure.m4                             | 7
> +------
> >  test/Makefile.am                                                   | 2
> +-
> >  test/performance/odp_l2fwd_run.sh                                  | 4
> ++--
> >  .../linux-generic/test => test/platform/linux-generic}/.gitignore  | 0
> >  .../linux-generic/test => test/platform/linux-generic}/Makefile.am | 0
> >  .../test => test/platform/linux-generic}/Makefile.inc              | 0
> >  test/platform/linux-generic/m4/configure.m4                        | 5
> +++++
> >  .../test => test/platform/linux-generic}/pktio/.gitignore          | 0
> >  .../test => test/platform/linux-generic}/pktio/Makefile.am         | 0
> >  .../test => test/platform/linux-generic}/pktio/pktio_env           | 0
> >  .../test => test/platform/linux-generic}/pktio/pktio_run.sh        | 3
> ++-
> >  .../test => test/platform/linux-generic}/pktio/pktio_run_dpdk.sh   | 7
> +++++--
> >  .../test => test/platform/linux-generic}/pktio/pktio_run_netmap.sh | 0
> >  .../test => test/platform/linux-generic}/pktio/pktio_run_pcap.sh   | 0
> >  .../test => test/platform/linux-generic}/pktio/pktio_run_tap.sh    | 0
> >  .../test => test/platform/linux-generic}/pktio_ipc/.gitignore      | 0
> >  .../test => test/platform/linux-generic}/pktio_ipc/Makefile.am     | 0
> >  .../test => test/platform/linux-generic}/pktio_ipc/ipc_common.c    | 0
> >  .../test => test/platform/linux-generic}/pktio_ipc/ipc_common.h    | 0
> >  .../test => test/platform/linux-generic}/pktio_ipc/pktio_ipc1.c    | 0
> >  .../test => test/platform/linux-generic}/pktio_ipc/pktio_ipc2.c    | 0
> >  .../platform/linux-generic}/pktio_ipc/pktio_ipc_run.sh             | 0
> >  .../test => test/platform/linux-generic}/ring/.gitignore           | 0
> >  .../test => test/platform/linux-generic}/ring/Makefile.am          | 0
> >  .../test => test/platform/linux-generic}/ring/ring_basic.c         | 0
> >  .../test => test/platform/linux-generic}/ring/ring_main.c          | 0
> >  .../test => test/platform/linux-generic}/ring/ring_stress.c        | 0
> >  .../test => test/platform/linux-generic}/ring/ring_suites.c        | 0
> >  .../test => test/platform/linux-generic}/ring/ring_suites.h        | 0
> >  .../linux-generic/test => test/platform/linux-generic}/run-test    | 0
> >  .../test => test/platform/linux-generic}/shmem/.gitignore          | 0
> >  .../test => test/platform/linux-generic}/shmem/Makefile.am         | 0
> >  .../test => test/platform/linux-generic}/shmem/shmem.h             | 0
> >  .../test => test/platform/linux-generic}/shmem/shmem_common.h      | 0
> >  .../test => test/platform/linux-generic}/shmem/shmem_linux.c       | 0
> >  .../test => test/platform/linux-generic}/shmem/shmem_linux.h       | 0
> >  .../test => test/platform/linux-generic}/shmem/shmem_odp.c         | 0
> >  .../test => test/platform/linux-generic}/shmem/shmem_odp.h         | 0
> >  40 files changed, 17 insertions(+), 14 deletions(-)
> >  rename {platform/linux-generic/test =>
> test/platform/linux-generic}/.gitignore (100%)
> >  rename {platform/linux-generic/test =>
> test/platform/linux-generic}/Makefile.am (100%)
> >  rename {platform/linux-generic/test =>
> test/platform/linux-generic}/Makefile.inc (100%)
> >  create mode 100644 test/platform/linux-generic/m4/configure.m4
> >  rename {platform/linux-generic/test =>
> test/platform/linux-generic}/pktio/.gitignore (100%)
> >  rename {platform/linux-generic/test =>
> test/platform/linux-generic}/pktio/Makefile.am (100%)
> >  rename {platform/linux-generic/test =>
> test/platform/linux-generic}/pktio/pktio_env (100%)
> >  rename {platform/linux-generic/test =>
> test/platform/linux-generic}/pktio/pktio_run.sh (96%)
> >  rename {platform/linux-generic/test =>
> test/platform/linux-generic}/pktio/pktio_run_dpdk.sh (90%)
> >  rename {platform/linux-generic/test =>
> test/platform/linux-generic}/pktio/pktio_run_netmap.sh (100%)
> >  rename {platform/linux-generic/test =>
> test/platform/linux-generic}/pktio/pktio_run_pcap.sh (100%)
> >  rename {platform/linux-generic/test =>
> test/platform/linux-generic}/pktio/pktio_run_tap.sh (100%)
> >  rename {platform/linux-generic/test =>
> test/platform/linux-generic}/pktio_ipc/.gitignore (100%)
> >  rename {platform/linux-generic/test =>
> test/platform/linux-generic}/pktio_ipc/Makefile.am (100%)
> >  rename {platform/linux-generic/test =>
> test/platform/linux-generic}/pktio_ipc/ipc_common.c (100%)
> >  rename {platform/linux-generic/test =>
> test/platform/linux-generic}/pktio_ipc/ipc_common.h (100%)
> >  rename {platform/linux-generic/test =>
> test/platform/linux-generic}/pktio_ipc/pktio_ipc1.c (100%)
> >  rename {platform/linux-generic/test =>
> test/platform/linux-generic}/pktio_ipc/pktio_ipc2.c (100%)
> >  rename {platform/linux-generic/test =>
> test/platform/linux-generic}/pktio_ipc/pktio_ipc_run.sh (100%)
> >  rename {platform/linux-generic/test =>
> test/platform/linux-generic}/ring/.gitignore (100%)
> >  rename {platform/linux-generic/test =>
> test/platform/linux-generic}/ring/Makefile.am (100%)
> >  rename {platform/linux-generic/test =>
> test/platform/linux-generic}/ring/ring_basic.c (100%)
> >  rename {platform/linux-generic/test =>
> test/platform/linux-generic}/ring/ring_main.c (100%)
> >  rename {platform/linux-generic/test =>
> test/platform/linux-generic}/ring/ring_stress.c (100%)
> >  rename {platform/linux-generic/test =>
> test/platform/linux-generic}/ring/ring_suites.c (100%)
> >  rename {platform/linux-generic/test =>
> test/platform/linux-generic}/ring/ring_suites.h (100%)
> >  rename {platform/linux-generic/test =>
> test/platform/linux-generic}/run-test (100%)
> >  rename {platform/linux-generic/test =>
> test/platform/linux-generic}/shmem/.gitignore (100%)
> >  rename {platform/linux-generic/test =>
> test/platform/linux-generic}/shmem/Makefile.am (100%)
> >  rename {platform/linux-generic/test =>
> test/platform/linux-generic}/shmem/shmem.h (100%)
> >  rename {platform/linux-generic/test =>
> test/platform/linux-generic}/shmem/shmem_common.h (100%)
> >  rename {platform/linux-generic/test =>
> test/platform/linux-generic}/shmem/shmem_linux.c (100%)
> >  rename {platform/linux-generic/test =>
> test/platform/linux-generic}/shmem/shmem_linux.h (100%)
> >  rename {platform/linux-generic/test =>
> test/platform/linux-generic}/shmem/shmem_odp.c (100%)
> >  rename {platform/linux-generic/test =>
> test/platform/linux-generic}/shmem/shmem_odp.h (100%)
> >
> > diff --git a/Makefile.am b/Makefile.am
> > index 2129472..625748a 100644
> > --- a/Makefile.am
> > +++ b/Makefile.am
> > @@ -9,7 +9,6 @@ AM_DISTCHECK_CONFIGURE_FLAGS = --enable-test-cpp \
> >  SUBDIRS = @platform_with_platform@ \
> >         helper \
> >         test \
> > -       @platform_with_platform_test@ \
> >         helper/test \
> >         doc \
> >         example \
> > diff --git a/configure.ac b/configure.ac
> > index c87755b..f3952db 100644
> > --- a/configure.ac
> > +++ b/configure.ac
> > @@ -107,7 +107,6 @@ AC_ARG_WITH([platform],
> >
> >  AC_SUBST([with_platform])
> >  AC_SUBST([platform_with_platform], ["platform/${with_platform}"])
> > -AC_SUBST([platform_with_platform_test],
> ["platform/${with_platform}/test"])
> >
> >
> ##########################################################################
> >  # Run platform specific checks and settings
> > @@ -116,6 +115,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])
> >      IMPLEMENTATION_NAME="odp-linux"
> >  else
> >      echo "UNSUPPORTED PLATFORM: ${with_platform}"
> > diff --git a/platform/linux-generic/m4/configure.m4
> b/platform/linux-generic/m4/configure.m4
> > index 5380046..1b1b883 100644
> > --- a/platform/linux-generic/m4/configure.m4
> > +++ b/platform/linux-generic/m4/configure.m4
> > @@ -36,9 +36,4 @@ m4_include([platform/linux-generic/m4/odp_dpdk.m4])
> >  m4_include([platform/linux-generic/m4/odp_ipc.m4])
> >  m4_include([platform/linux-generic/m4/odp_schedule.m4])
> >
> > -AC_CONFIG_FILES([platform/linux-generic/Makefile
> > -              platform/linux-generic/test/Makefile
> > -              platform/linux-generic/test/shmem/Makefile
> > -              platform/linux-generic/test/pktio/Makefile
> > -              platform/linux-generic/test/pktio_ipc/Makefile
> > -              platform/linux-generic/test/ring/Makefile])
> > +AC_CONFIG_FILES([platform/linux-generic/Makefile])
> > diff --git a/test/Makefile.am b/test/Makefile.am
> > index 4a75364..8bab8fd 100644
> > --- a/test/Makefile.am
> > +++ b/test/Makefile.am
> > @@ -1,5 +1,5 @@
> >  SUBDIRS = performance miscellaneous
> >
> >  if cunit_support
> > -    SUBDIRS += validation
> > +    SUBDIRS += validation @platform_with_platform@
> >  endif
> > diff --git a/test/performance/odp_l2fwd_run.sh
> b/test/performance/odp_l2fwd_run.sh
> > index cab97a8..fc3d05d 100755
> > --- a/test/performance/odp_l2fwd_run.sh
> > +++ b/test/performance/odp_l2fwd_run.sh
> > @@ -37,8 +37,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/test/pktio/pktio_env ]; then
> > -     . ${TEST_SRC_DIR}/../../platform/$ODP_PLATFORM/test/pktio/pktio_env
> > +elif [ -f ${TEST_SRC_DIR}/../platform/$ODP_PLATFORM/pktio/pktio_env ];
> then
> > +     . ${TEST_SRC_DIR}/../platform/$ODP_PLATFORM/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."
> > diff --git a/platform/linux-generic/test/.gitignore
> b/test/platform/linux-generic/.gitignore
> > similarity index 100%
> > rename from platform/linux-generic/test/.gitignore
> > rename to test/platform/linux-generic/.gitignore
> > diff --git a/platform/linux-generic/test/Makefile.am
> b/test/platform/linux-generic/Makefile.am
> > similarity index 100%
> > rename from platform/linux-generic/test/Makefile.am
> > rename to test/platform/linux-generic/Makefile.am
> > diff --git a/platform/linux-generic/test/Makefile.inc
> b/test/platform/linux-generic/Makefile.inc
> > similarity index 100%
> > rename from platform/linux-generic/test/Makefile.inc
> > rename to test/platform/linux-generic/Makefile.inc
> > diff --git a/test/platform/linux-generic/m4/configure.m4
> b/test/platform/linux-generic/m4/configure.m4
> > new file mode 100644
> > index 0000000..8c3db21
> > --- /dev/null
> > +++ b/test/platform/linux-generic/m4/configure.m4
> > @@ -0,0 +1,5 @@
> > +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])
> > diff --git a/platform/linux-generic/test/pktio/.gitignore
> b/test/platform/linux-generic/pktio/.gitignore
> > similarity index 100%
> > rename from platform/linux-generic/test/pktio/.gitignore
> > rename to test/platform/linux-generic/pktio/.gitignore
> > diff --git a/platform/linux-generic/test/pktio/Makefile.am
> b/test/platform/linux-generic/pktio/Makefile.am
> > similarity index 100%
> > rename from platform/linux-generic/test/pktio/Makefile.am
> > rename to test/platform/linux-generic/pktio/Makefile.am
> > diff --git a/platform/linux-generic/test/pktio/pktio_env
> b/test/platform/linux-generic/pktio/pktio_env
> > similarity index 100%
> > rename from platform/linux-generic/test/pktio/pktio_env
> > rename to test/platform/linux-generic/pktio/pktio_env
> > diff --git a/platform/linux-generic/test/pktio/pktio_run.sh
> b/test/platform/linux-generic/pktio/pktio_run.sh
> > similarity index 96%
> > rename from platform/linux-generic/test/pktio/pktio_run.sh
> > rename to test/platform/linux-generic/pktio/pktio_run.sh
> > index 1dc1f44..b5a1667 100755
> > --- a/platform/linux-generic/test/pktio/pktio_run.sh
> > +++ b/test/platform/linux-generic/pktio/pktio_run.sh
> > @@ -46,7 +46,8 @@ elif [ -f ${TEST_SRC_DIR}/pktio_env ]; then
> >       . ${TEST_SRC_DIR}/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."
> > +     echo "pktio_env has to be in current directory" \
> > +             "or in platform/\$ODP_PLATFORM/test."
> >       echo "ODP_PLATFORM=\"$ODP_PLATFORM\""
> >       exit 1
> >  fi
> > diff --git a/platform/linux-generic/test/pktio/pktio_run_dpdk.sh
> b/test/platform/linux-generic/pktio/pktio_run_dpdk.sh
> > similarity index 90%
> > rename from platform/linux-generic/test/pktio/pktio_run_dpdk.sh
> > rename to test/platform/linux-generic/pktio/pktio_run_dpdk.sh
> > index fd552c6..2c52c6e 100755
> > --- a/platform/linux-generic/test/pktio/pktio_run_dpdk.sh
> > +++ b/test/platform/linux-generic/pktio/pktio_run_dpdk.sh
> > @@ -46,7 +46,8 @@ elif [ -f ${TEST_SRC_DIR}/pktio_env ]; then
> >       . ${TEST_SRC_DIR}/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."
> > +     echo "pktio_env has to be in current directory" \
> > +             "or in platform/\$ODP_PLATFORM/test."
> >       echo "ODP_PLATFORM=\"$ODP_PLATFORM\""
> >       exit 1
> >  fi
> > @@ -74,7 +75,9 @@ run()
> >
> >       if [ "$ODP_PKTIO_IF0" = "" ]; then
> >               setup_pktio_env clean
> > -             export ODP_PKTIO_DPDK_PARAMS="--vdev eth_pcap0,iface=$IF0
> --vdev eth_pcap1,iface=$IF1"
> > +             IF0_PARAMS="--vdev eth_pcap0,iface=$IF0"
> > +             IF1_PARAMS="--vdev eth_pcap1,iface=$IF1"
> > +             export ODP_PKTIO_DPDK_PARAMS="$IF0_PARAMS $IF1_PARAMS"
>
> Why these changes? how does it relate to the move?
>
> Christophe.
>
> >               export ODP_PKTIO_IF0=0
> >               export ODP_PKTIO_IF1=1
> >       fi
> > diff --git a/platform/linux-generic/test/pktio/pktio_run_netmap.sh
> b/test/platform/linux-generic/pktio/pktio_run_netmap.sh
> > similarity index 100%
> > rename from platform/linux-generic/test/pktio/pktio_run_netmap.sh
> > rename to test/platform/linux-generic/pktio/pktio_run_netmap.sh
> > diff --git a/platform/linux-generic/test/pktio/pktio_run_pcap.sh
> b/test/platform/linux-generic/pktio/pktio_run_pcap.sh
> > similarity index 100%
> > rename from platform/linux-generic/test/pktio/pktio_run_pcap.sh
> > rename to test/platform/linux-generic/pktio/pktio_run_pcap.sh
> > diff --git a/platform/linux-generic/test/pktio/pktio_run_tap.sh
> b/test/platform/linux-generic/pktio/pktio_run_tap.sh
> > similarity index 100%
> > rename from platform/linux-generic/test/pktio/pktio_run_tap.sh
> > rename to test/platform/linux-generic/pktio/pktio_run_tap.sh
> > diff --git a/platform/linux-generic/test/pktio_ipc/.gitignore
> b/test/platform/linux-generic/pktio_ipc/.gitignore
> > similarity index 100%
> > rename from platform/linux-generic/test/pktio_ipc/.gitignore
> > rename to test/platform/linux-generic/pktio_ipc/.gitignore
> > diff --git a/platform/linux-generic/test/pktio_ipc/Makefile.am
> b/test/platform/linux-generic/pktio_ipc/Makefile.am
> > similarity index 100%
> > rename from platform/linux-generic/test/pktio_ipc/Makefile.am
> > rename to test/platform/linux-generic/pktio_ipc/Makefile.am
> > diff --git a/platform/linux-generic/test/pktio_ipc/ipc_common.c
> b/test/platform/linux-generic/pktio_ipc/ipc_common.c
> > similarity index 100%
> > rename from platform/linux-generic/test/pktio_ipc/ipc_common.c
> > rename to test/platform/linux-generic/pktio_ipc/ipc_common.c
> > diff --git a/platform/linux-generic/test/pktio_ipc/ipc_common.h
> b/test/platform/linux-generic/pktio_ipc/ipc_common.h
> > similarity index 100%
> > rename from platform/linux-generic/test/pktio_ipc/ipc_common.h
> > rename to test/platform/linux-generic/pktio_ipc/ipc_common.h
> > diff --git a/platform/linux-generic/test/pktio_ipc/pktio_ipc1.c
> b/test/platform/linux-generic/pktio_ipc/pktio_ipc1.c
> > similarity index 100%
> > rename from platform/linux-generic/test/pktio_ipc/pktio_ipc1.c
> > rename to test/platform/linux-generic/pktio_ipc/pktio_ipc1.c
> > diff --git a/platform/linux-generic/test/pktio_ipc/pktio_ipc2.c
> b/test/platform/linux-generic/pktio_ipc/pktio_ipc2.c
> > similarity index 100%
> > rename from platform/linux-generic/test/pktio_ipc/pktio_ipc2.c
> > rename to test/platform/linux-generic/pktio_ipc/pktio_ipc2.c
> > diff --git a/platform/linux-generic/test/pktio_ipc/pktio_ipc_run.sh
> b/test/platform/linux-generic/pktio_ipc/pktio_ipc_run.sh
> > similarity index 100%
> > rename from platform/linux-generic/test/pktio_ipc/pktio_ipc_run.sh
> > rename to test/platform/linux-generic/pktio_ipc/pktio_ipc_run.sh
> > diff --git a/platform/linux-generic/test/ring/.gitignore
> b/test/platform/linux-generic/ring/.gitignore
> > similarity index 100%
> > rename from platform/linux-generic/test/ring/.gitignore
> > rename to test/platform/linux-generic/ring/.gitignore
> > diff --git a/platform/linux-generic/test/ring/Makefile.am
> b/test/platform/linux-generic/ring/Makefile.am
> > similarity index 100%
> > rename from platform/linux-generic/test/ring/Makefile.am
> > rename to test/platform/linux-generic/ring/Makefile.am
> > diff --git a/platform/linux-generic/test/ring/ring_basic.c
> b/test/platform/linux-generic/ring/ring_basic.c
> > similarity index 100%
> > rename from platform/linux-generic/test/ring/ring_basic.c
> > rename to test/platform/linux-generic/ring/ring_basic.c
> > diff --git a/platform/linux-generic/test/ring/ring_main.c
> b/test/platform/linux-generic/ring/ring_main.c
> > similarity index 100%
> > rename from platform/linux-generic/test/ring/ring_main.c
> > rename to test/platform/linux-generic/ring/ring_main.c
> > diff --git a/platform/linux-generic/test/ring/ring_stress.c
> b/test/platform/linux-generic/ring/ring_stress.c
> > similarity index 100%
> > rename from platform/linux-generic/test/ring/ring_stress.c
> > rename to test/platform/linux-generic/ring/ring_stress.c
> > diff --git a/platform/linux-generic/test/ring/ring_suites.c
> b/test/platform/linux-generic/ring/ring_suites.c
> > similarity index 100%
> > rename from platform/linux-generic/test/ring/ring_suites.c
> > rename to test/platform/linux-generic/ring/ring_suites.c
> > diff --git a/platform/linux-generic/test/ring/ring_suites.h
> b/test/platform/linux-generic/ring/ring_suites.h
> > similarity index 100%
> > rename from platform/linux-generic/test/ring/ring_suites.h
> > rename to test/platform/linux-generic/ring/ring_suites.h
> > diff --git a/platform/linux-generic/test/run-test
> b/test/platform/linux-generic/run-test
> > similarity index 100%
> > rename from platform/linux-generic/test/run-test
> > rename to test/platform/linux-generic/run-test
> > diff --git a/platform/linux-generic/test/shmem/.gitignore
> b/test/platform/linux-generic/shmem/.gitignore
> > similarity index 100%
> > rename from platform/linux-generic/test/shmem/.gitignore
> > rename to test/platform/linux-generic/shmem/.gitignore
> > diff --git a/platform/linux-generic/test/shmem/Makefile.am
> b/test/platform/linux-generic/shmem/Makefile.am
> > similarity index 100%
> > rename from platform/linux-generic/test/shmem/Makefile.am
> > rename to test/platform/linux-generic/shmem/Makefile.am
> > diff --git a/platform/linux-generic/test/shmem/shmem.h
> b/test/platform/linux-generic/shmem/shmem.h
> > similarity index 100%
> > rename from platform/linux-generic/test/shmem/shmem.h
> > rename to test/platform/linux-generic/shmem/shmem.h
> > diff --git a/platform/linux-generic/test/shmem/shmem_common.h
> b/test/platform/linux-generic/shmem/shmem_common.h
> > similarity index 100%
> > rename from platform/linux-generic/test/shmem/shmem_common.h
> > rename to test/platform/linux-generic/shmem/shmem_common.h
> > diff --git a/platform/linux-generic/test/shmem/shmem_linux.c
> b/test/platform/linux-generic/shmem/shmem_linux.c
> > similarity index 100%
> > rename from platform/linux-generic/test/shmem/shmem_linux.c
> > rename to test/platform/linux-generic/shmem/shmem_linux.c
> > diff --git a/platform/linux-generic/test/shmem/shmem_linux.h
> b/test/platform/linux-generic/shmem/shmem_linux.h
> > similarity index 100%
> > rename from platform/linux-generic/test/shmem/shmem_linux.h
> > rename to test/platform/linux-generic/shmem/shmem_linux.h
> > diff --git a/platform/linux-generic/test/shmem/shmem_odp.c
> b/test/platform/linux-generic/shmem/shmem_odp.c
> > similarity index 100%
> > rename from platform/linux-generic/test/shmem/shmem_odp.c
> > rename to test/platform/linux-generic/shmem/shmem_odp.c
> > diff --git a/platform/linux-generic/test/shmem/shmem_odp.h
> b/test/platform/linux-generic/shmem/shmem_odp.h
> > similarity index 100%
> > rename from platform/linux-generic/test/shmem/shmem_odp.h
> > rename to test/platform/linux-generic/shmem/shmem_odp.h
> > --
> > 2.7.4
> >
>
Christophe Milard June 17, 2016, 8:48 a.m. UTC | #2
On 17 June 2016 at 08:10, Yi He <yi.he@linaro.org> wrote:
> Move platform tests from odp/platform/linux-generic/test
> into test suite at odp/test/platform/linux-generic.
>
> Signed-off-by: Yi He <yi.he@linaro.org>

Reviewed-by: Christophe Milard <christophe.milard@linaro.org>

> ---
> v4 restore the invocation of general validation tests:
> The Validation tests HAVE to be called from the platform side!!
> That enables for individual platforms to define wrappers around tests:
> If You run the validation tests from the validation side, any platforms
> which needs to have a little twik (e.g. a specific setup, or soon, tests args)
> will be stuck.
>
> The patch only contains: the move, a new configure.m4 and minor changes
> in scripts to mitigate checkpatch.pl warnings and one search path update.
>
>  Makefile.am                                                        | 1 -
>  configure.ac                                                       | 2 +-
>  platform/linux-generic/m4/configure.m4                             | 7 +------
>  test/Makefile.am                                                   | 2 +-
>  test/performance/odp_l2fwd_run.sh                                  | 4 ++--
>  .../linux-generic/test => test/platform/linux-generic}/.gitignore  | 0
>  .../linux-generic/test => test/platform/linux-generic}/Makefile.am | 0
>  .../test => test/platform/linux-generic}/Makefile.inc              | 0
>  test/platform/linux-generic/m4/configure.m4                        | 5 +++++
>  .../test => test/platform/linux-generic}/pktio/.gitignore          | 0
>  .../test => test/platform/linux-generic}/pktio/Makefile.am         | 0
>  .../test => test/platform/linux-generic}/pktio/pktio_env           | 0
>  .../test => test/platform/linux-generic}/pktio/pktio_run.sh        | 3 ++-
>  .../test => test/platform/linux-generic}/pktio/pktio_run_dpdk.sh   | 7 +++++--
>  .../test => test/platform/linux-generic}/pktio/pktio_run_netmap.sh | 0
>  .../test => test/platform/linux-generic}/pktio/pktio_run_pcap.sh   | 0
>  .../test => test/platform/linux-generic}/pktio/pktio_run_tap.sh    | 0
>  .../test => test/platform/linux-generic}/pktio_ipc/.gitignore      | 0
>  .../test => test/platform/linux-generic}/pktio_ipc/Makefile.am     | 0
>  .../test => test/platform/linux-generic}/pktio_ipc/ipc_common.c    | 0
>  .../test => test/platform/linux-generic}/pktio_ipc/ipc_common.h    | 0
>  .../test => test/platform/linux-generic}/pktio_ipc/pktio_ipc1.c    | 0
>  .../test => test/platform/linux-generic}/pktio_ipc/pktio_ipc2.c    | 0
>  .../platform/linux-generic}/pktio_ipc/pktio_ipc_run.sh             | 0
>  .../test => test/platform/linux-generic}/ring/.gitignore           | 0
>  .../test => test/platform/linux-generic}/ring/Makefile.am          | 0
>  .../test => test/platform/linux-generic}/ring/ring_basic.c         | 0
>  .../test => test/platform/linux-generic}/ring/ring_main.c          | 0
>  .../test => test/platform/linux-generic}/ring/ring_stress.c        | 0
>  .../test => test/platform/linux-generic}/ring/ring_suites.c        | 0
>  .../test => test/platform/linux-generic}/ring/ring_suites.h        | 0
>  .../linux-generic/test => test/platform/linux-generic}/run-test    | 0
>  .../test => test/platform/linux-generic}/shmem/.gitignore          | 0
>  .../test => test/platform/linux-generic}/shmem/Makefile.am         | 0
>  .../test => test/platform/linux-generic}/shmem/shmem.h             | 0
>  .../test => test/platform/linux-generic}/shmem/shmem_common.h      | 0
>  .../test => test/platform/linux-generic}/shmem/shmem_linux.c       | 0
>  .../test => test/platform/linux-generic}/shmem/shmem_linux.h       | 0
>  .../test => test/platform/linux-generic}/shmem/shmem_odp.c         | 0
>  .../test => test/platform/linux-generic}/shmem/shmem_odp.h         | 0
>  40 files changed, 17 insertions(+), 14 deletions(-)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/.gitignore (100%)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/Makefile.am (100%)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/Makefile.inc (100%)
>  create mode 100644 test/platform/linux-generic/m4/configure.m4
>  rename {platform/linux-generic/test => test/platform/linux-generic}/pktio/.gitignore (100%)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/pktio/Makefile.am (100%)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/pktio/pktio_env (100%)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/pktio/pktio_run.sh (96%)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/pktio/pktio_run_dpdk.sh (90%)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/pktio/pktio_run_netmap.sh (100%)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/pktio/pktio_run_pcap.sh (100%)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/pktio/pktio_run_tap.sh (100%)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/pktio_ipc/.gitignore (100%)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/pktio_ipc/Makefile.am (100%)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/pktio_ipc/ipc_common.c (100%)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/pktio_ipc/ipc_common.h (100%)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/pktio_ipc/pktio_ipc1.c (100%)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/pktio_ipc/pktio_ipc2.c (100%)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/pktio_ipc/pktio_ipc_run.sh (100%)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/ring/.gitignore (100%)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/ring/Makefile.am (100%)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/ring/ring_basic.c (100%)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/ring/ring_main.c (100%)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/ring/ring_stress.c (100%)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/ring/ring_suites.c (100%)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/ring/ring_suites.h (100%)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/run-test (100%)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/shmem/.gitignore (100%)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/shmem/Makefile.am (100%)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/shmem/shmem.h (100%)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/shmem/shmem_common.h (100%)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/shmem/shmem_linux.c (100%)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/shmem/shmem_linux.h (100%)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/shmem/shmem_odp.c (100%)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/shmem/shmem_odp.h (100%)
>
> diff --git a/Makefile.am b/Makefile.am
> index 2129472..625748a 100644
> --- a/Makefile.am
> +++ b/Makefile.am
> @@ -9,7 +9,6 @@ AM_DISTCHECK_CONFIGURE_FLAGS = --enable-test-cpp \
>  SUBDIRS = @platform_with_platform@ \
>           helper \
>           test \
> -         @platform_with_platform_test@ \
>           helper/test \
>           doc \
>           example \
> diff --git a/configure.ac b/configure.ac
> index c87755b..f3952db 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -107,7 +107,6 @@ AC_ARG_WITH([platform],
>
>  AC_SUBST([with_platform])
>  AC_SUBST([platform_with_platform], ["platform/${with_platform}"])
> -AC_SUBST([platform_with_platform_test], ["platform/${with_platform}/test"])
>
>  ##########################################################################
>  # Run platform specific checks and settings
> @@ -116,6 +115,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])
>      IMPLEMENTATION_NAME="odp-linux"
>  else
>      echo "UNSUPPORTED PLATFORM: ${with_platform}"
> diff --git a/platform/linux-generic/m4/configure.m4 b/platform/linux-generic/m4/configure.m4
> index 5380046..1b1b883 100644
> --- a/platform/linux-generic/m4/configure.m4
> +++ b/platform/linux-generic/m4/configure.m4
> @@ -36,9 +36,4 @@ m4_include([platform/linux-generic/m4/odp_dpdk.m4])
>  m4_include([platform/linux-generic/m4/odp_ipc.m4])
>  m4_include([platform/linux-generic/m4/odp_schedule.m4])
>
> -AC_CONFIG_FILES([platform/linux-generic/Makefile
> -                platform/linux-generic/test/Makefile
> -                platform/linux-generic/test/shmem/Makefile
> -                platform/linux-generic/test/pktio/Makefile
> -                platform/linux-generic/test/pktio_ipc/Makefile
> -                platform/linux-generic/test/ring/Makefile])
> +AC_CONFIG_FILES([platform/linux-generic/Makefile])
> diff --git a/test/Makefile.am b/test/Makefile.am
> index 4a75364..8bab8fd 100644
> --- a/test/Makefile.am
> +++ b/test/Makefile.am
> @@ -1,5 +1,5 @@
>  SUBDIRS = performance miscellaneous
>
>  if cunit_support
> -    SUBDIRS += validation
> +    SUBDIRS += validation @platform_with_platform@
>  endif
> diff --git a/test/performance/odp_l2fwd_run.sh b/test/performance/odp_l2fwd_run.sh
> index cab97a8..fc3d05d 100755
> --- a/test/performance/odp_l2fwd_run.sh
> +++ b/test/performance/odp_l2fwd_run.sh
> @@ -37,8 +37,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/test/pktio/pktio_env ]; then
> -       . ${TEST_SRC_DIR}/../../platform/$ODP_PLATFORM/test/pktio/pktio_env
> +elif [ -f ${TEST_SRC_DIR}/../platform/$ODP_PLATFORM/pktio/pktio_env ]; then
> +       . ${TEST_SRC_DIR}/../platform/$ODP_PLATFORM/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."
> diff --git a/platform/linux-generic/test/.gitignore b/test/platform/linux-generic/.gitignore
> similarity index 100%
> rename from platform/linux-generic/test/.gitignore
> rename to test/platform/linux-generic/.gitignore
> diff --git a/platform/linux-generic/test/Makefile.am b/test/platform/linux-generic/Makefile.am
> similarity index 100%
> rename from platform/linux-generic/test/Makefile.am
> rename to test/platform/linux-generic/Makefile.am
> diff --git a/platform/linux-generic/test/Makefile.inc b/test/platform/linux-generic/Makefile.inc
> similarity index 100%
> rename from platform/linux-generic/test/Makefile.inc
> rename to test/platform/linux-generic/Makefile.inc
> diff --git a/test/platform/linux-generic/m4/configure.m4 b/test/platform/linux-generic/m4/configure.m4
> new file mode 100644
> index 0000000..8c3db21
> --- /dev/null
> +++ b/test/platform/linux-generic/m4/configure.m4
> @@ -0,0 +1,5 @@
> +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])
> diff --git a/platform/linux-generic/test/pktio/.gitignore b/test/platform/linux-generic/pktio/.gitignore
> similarity index 100%
> rename from platform/linux-generic/test/pktio/.gitignore
> rename to test/platform/linux-generic/pktio/.gitignore
> diff --git a/platform/linux-generic/test/pktio/Makefile.am b/test/platform/linux-generic/pktio/Makefile.am
> similarity index 100%
> rename from platform/linux-generic/test/pktio/Makefile.am
> rename to test/platform/linux-generic/pktio/Makefile.am
> diff --git a/platform/linux-generic/test/pktio/pktio_env b/test/platform/linux-generic/pktio/pktio_env
> similarity index 100%
> rename from platform/linux-generic/test/pktio/pktio_env
> rename to test/platform/linux-generic/pktio/pktio_env
> diff --git a/platform/linux-generic/test/pktio/pktio_run.sh b/test/platform/linux-generic/pktio/pktio_run.sh
> similarity index 96%
> rename from platform/linux-generic/test/pktio/pktio_run.sh
> rename to test/platform/linux-generic/pktio/pktio_run.sh
> index 1dc1f44..b5a1667 100755
> --- a/platform/linux-generic/test/pktio/pktio_run.sh
> +++ b/test/platform/linux-generic/pktio/pktio_run.sh
> @@ -46,7 +46,8 @@ elif [ -f ${TEST_SRC_DIR}/pktio_env ]; then
>         . ${TEST_SRC_DIR}/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."
> +       echo "pktio_env has to be in current directory" \
> +               "or in platform/\$ODP_PLATFORM/test."
>         echo "ODP_PLATFORM=\"$ODP_PLATFORM\""
>         exit 1
>  fi
> diff --git a/platform/linux-generic/test/pktio/pktio_run_dpdk.sh b/test/platform/linux-generic/pktio/pktio_run_dpdk.sh
> similarity index 90%
> rename from platform/linux-generic/test/pktio/pktio_run_dpdk.sh
> rename to test/platform/linux-generic/pktio/pktio_run_dpdk.sh
> index fd552c6..2c52c6e 100755
> --- a/platform/linux-generic/test/pktio/pktio_run_dpdk.sh
> +++ b/test/platform/linux-generic/pktio/pktio_run_dpdk.sh
> @@ -46,7 +46,8 @@ elif [ -f ${TEST_SRC_DIR}/pktio_env ]; then
>         . ${TEST_SRC_DIR}/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."
> +       echo "pktio_env has to be in current directory" \
> +               "or in platform/\$ODP_PLATFORM/test."
>         echo "ODP_PLATFORM=\"$ODP_PLATFORM\""
>         exit 1
>  fi
> @@ -74,7 +75,9 @@ run()
>
>         if [ "$ODP_PKTIO_IF0" = "" ]; then
>                 setup_pktio_env clean
> -               export ODP_PKTIO_DPDK_PARAMS="--vdev eth_pcap0,iface=$IF0 --vdev eth_pcap1,iface=$IF1"
> +               IF0_PARAMS="--vdev eth_pcap0,iface=$IF0"
> +               IF1_PARAMS="--vdev eth_pcap1,iface=$IF1"
> +               export ODP_PKTIO_DPDK_PARAMS="$IF0_PARAMS $IF1_PARAMS"
>                 export ODP_PKTIO_IF0=0
>                 export ODP_PKTIO_IF1=1
>         fi
> diff --git a/platform/linux-generic/test/pktio/pktio_run_netmap.sh b/test/platform/linux-generic/pktio/pktio_run_netmap.sh
> similarity index 100%
> rename from platform/linux-generic/test/pktio/pktio_run_netmap.sh
> rename to test/platform/linux-generic/pktio/pktio_run_netmap.sh
> diff --git a/platform/linux-generic/test/pktio/pktio_run_pcap.sh b/test/platform/linux-generic/pktio/pktio_run_pcap.sh
> similarity index 100%
> rename from platform/linux-generic/test/pktio/pktio_run_pcap.sh
> rename to test/platform/linux-generic/pktio/pktio_run_pcap.sh
> diff --git a/platform/linux-generic/test/pktio/pktio_run_tap.sh b/test/platform/linux-generic/pktio/pktio_run_tap.sh
> similarity index 100%
> rename from platform/linux-generic/test/pktio/pktio_run_tap.sh
> rename to test/platform/linux-generic/pktio/pktio_run_tap.sh
> diff --git a/platform/linux-generic/test/pktio_ipc/.gitignore b/test/platform/linux-generic/pktio_ipc/.gitignore
> similarity index 100%
> rename from platform/linux-generic/test/pktio_ipc/.gitignore
> rename to test/platform/linux-generic/pktio_ipc/.gitignore
> diff --git a/platform/linux-generic/test/pktio_ipc/Makefile.am b/test/platform/linux-generic/pktio_ipc/Makefile.am
> similarity index 100%
> rename from platform/linux-generic/test/pktio_ipc/Makefile.am
> rename to test/platform/linux-generic/pktio_ipc/Makefile.am
> diff --git a/platform/linux-generic/test/pktio_ipc/ipc_common.c b/test/platform/linux-generic/pktio_ipc/ipc_common.c
> similarity index 100%
> rename from platform/linux-generic/test/pktio_ipc/ipc_common.c
> rename to test/platform/linux-generic/pktio_ipc/ipc_common.c
> diff --git a/platform/linux-generic/test/pktio_ipc/ipc_common.h b/test/platform/linux-generic/pktio_ipc/ipc_common.h
> similarity index 100%
> rename from platform/linux-generic/test/pktio_ipc/ipc_common.h
> rename to test/platform/linux-generic/pktio_ipc/ipc_common.h
> diff --git a/platform/linux-generic/test/pktio_ipc/pktio_ipc1.c b/test/platform/linux-generic/pktio_ipc/pktio_ipc1.c
> similarity index 100%
> rename from platform/linux-generic/test/pktio_ipc/pktio_ipc1.c
> rename to test/platform/linux-generic/pktio_ipc/pktio_ipc1.c
> diff --git a/platform/linux-generic/test/pktio_ipc/pktio_ipc2.c b/test/platform/linux-generic/pktio_ipc/pktio_ipc2.c
> similarity index 100%
> rename from platform/linux-generic/test/pktio_ipc/pktio_ipc2.c
> rename to test/platform/linux-generic/pktio_ipc/pktio_ipc2.c
> diff --git a/platform/linux-generic/test/pktio_ipc/pktio_ipc_run.sh b/test/platform/linux-generic/pktio_ipc/pktio_ipc_run.sh
> similarity index 100%
> rename from platform/linux-generic/test/pktio_ipc/pktio_ipc_run.sh
> rename to test/platform/linux-generic/pktio_ipc/pktio_ipc_run.sh
> diff --git a/platform/linux-generic/test/ring/.gitignore b/test/platform/linux-generic/ring/.gitignore
> similarity index 100%
> rename from platform/linux-generic/test/ring/.gitignore
> rename to test/platform/linux-generic/ring/.gitignore
> diff --git a/platform/linux-generic/test/ring/Makefile.am b/test/platform/linux-generic/ring/Makefile.am
> similarity index 100%
> rename from platform/linux-generic/test/ring/Makefile.am
> rename to test/platform/linux-generic/ring/Makefile.am
> diff --git a/platform/linux-generic/test/ring/ring_basic.c b/test/platform/linux-generic/ring/ring_basic.c
> similarity index 100%
> rename from platform/linux-generic/test/ring/ring_basic.c
> rename to test/platform/linux-generic/ring/ring_basic.c
> diff --git a/platform/linux-generic/test/ring/ring_main.c b/test/platform/linux-generic/ring/ring_main.c
> similarity index 100%
> rename from platform/linux-generic/test/ring/ring_main.c
> rename to test/platform/linux-generic/ring/ring_main.c
> diff --git a/platform/linux-generic/test/ring/ring_stress.c b/test/platform/linux-generic/ring/ring_stress.c
> similarity index 100%
> rename from platform/linux-generic/test/ring/ring_stress.c
> rename to test/platform/linux-generic/ring/ring_stress.c
> diff --git a/platform/linux-generic/test/ring/ring_suites.c b/test/platform/linux-generic/ring/ring_suites.c
> similarity index 100%
> rename from platform/linux-generic/test/ring/ring_suites.c
> rename to test/platform/linux-generic/ring/ring_suites.c
> diff --git a/platform/linux-generic/test/ring/ring_suites.h b/test/platform/linux-generic/ring/ring_suites.h
> similarity index 100%
> rename from platform/linux-generic/test/ring/ring_suites.h
> rename to test/platform/linux-generic/ring/ring_suites.h
> diff --git a/platform/linux-generic/test/run-test b/test/platform/linux-generic/run-test
> similarity index 100%
> rename from platform/linux-generic/test/run-test
> rename to test/platform/linux-generic/run-test
> diff --git a/platform/linux-generic/test/shmem/.gitignore b/test/platform/linux-generic/shmem/.gitignore
> similarity index 100%
> rename from platform/linux-generic/test/shmem/.gitignore
> rename to test/platform/linux-generic/shmem/.gitignore
> diff --git a/platform/linux-generic/test/shmem/Makefile.am b/test/platform/linux-generic/shmem/Makefile.am
> similarity index 100%
> rename from platform/linux-generic/test/shmem/Makefile.am
> rename to test/platform/linux-generic/shmem/Makefile.am
> diff --git a/platform/linux-generic/test/shmem/shmem.h b/test/platform/linux-generic/shmem/shmem.h
> similarity index 100%
> rename from platform/linux-generic/test/shmem/shmem.h
> rename to test/platform/linux-generic/shmem/shmem.h
> diff --git a/platform/linux-generic/test/shmem/shmem_common.h b/test/platform/linux-generic/shmem/shmem_common.h
> similarity index 100%
> rename from platform/linux-generic/test/shmem/shmem_common.h
> rename to test/platform/linux-generic/shmem/shmem_common.h
> diff --git a/platform/linux-generic/test/shmem/shmem_linux.c b/test/platform/linux-generic/shmem/shmem_linux.c
> similarity index 100%
> rename from platform/linux-generic/test/shmem/shmem_linux.c
> rename to test/platform/linux-generic/shmem/shmem_linux.c
> diff --git a/platform/linux-generic/test/shmem/shmem_linux.h b/test/platform/linux-generic/shmem/shmem_linux.h
> similarity index 100%
> rename from platform/linux-generic/test/shmem/shmem_linux.h
> rename to test/platform/linux-generic/shmem/shmem_linux.h
> diff --git a/platform/linux-generic/test/shmem/shmem_odp.c b/test/platform/linux-generic/shmem/shmem_odp.c
> similarity index 100%
> rename from platform/linux-generic/test/shmem/shmem_odp.c
> rename to test/platform/linux-generic/shmem/shmem_odp.c
> diff --git a/platform/linux-generic/test/shmem/shmem_odp.h b/test/platform/linux-generic/shmem/shmem_odp.h
> similarity index 100%
> rename from platform/linux-generic/test/shmem/shmem_odp.h
> rename to test/platform/linux-generic/shmem/shmem_odp.h
> --
> 2.7.4
>
Christophe Milard June 17, 2016, 9:23 a.m. UTC | #3
On 2016-06-17 06:10, Yi He wrote:
> Move platform tests from odp/platform/linux-generic/test
> into test suite at odp/test/platform/linux-generic.
> 
> Signed-off-by: Yi He <yi.he@linaro.org>
> ---
> v4 restore the invocation of general validation tests:
> The Validation tests HAVE to be called from the platform side!!
> That enables for individual platforms to define wrappers around tests:
> If You run the validation tests from the validation side, any platforms
> which needs to have a little twik (e.g. a specific setup, or soon, tests args)
> will be stuck.
> 
> The patch only contains: the move, a new configure.m4 and minor changes
> in scripts to mitigate checkpatch.pl warnings and one search path update.
> 
>  Makefile.am                                                        | 1 -
>  configure.ac                                                       | 2 +-
>  platform/linux-generic/m4/configure.m4                             | 7 +------
>  test/Makefile.am                                                   | 2 +-
>  test/performance/odp_l2fwd_run.sh                                  | 4 ++--
>  .../linux-generic/test => test/platform/linux-generic}/.gitignore  | 0
>  .../linux-generic/test => test/platform/linux-generic}/Makefile.am | 0
>  .../test => test/platform/linux-generic}/Makefile.inc              | 0
>  test/platform/linux-generic/m4/configure.m4                        | 5 +++++
>  .../test => test/platform/linux-generic}/pktio/.gitignore          | 0
>  .../test => test/platform/linux-generic}/pktio/Makefile.am         | 0
>  .../test => test/platform/linux-generic}/pktio/pktio_env           | 0
>  .../test => test/platform/linux-generic}/pktio/pktio_run.sh        | 3 ++-
>  .../test => test/platform/linux-generic}/pktio/pktio_run_dpdk.sh   | 7 +++++--
>  .../test => test/platform/linux-generic}/pktio/pktio_run_netmap.sh | 0
>  .../test => test/platform/linux-generic}/pktio/pktio_run_pcap.sh   | 0
>  .../test => test/platform/linux-generic}/pktio/pktio_run_tap.sh    | 0
>  .../test => test/platform/linux-generic}/pktio_ipc/.gitignore      | 0
>  .../test => test/platform/linux-generic}/pktio_ipc/Makefile.am     | 0
>  .../test => test/platform/linux-generic}/pktio_ipc/ipc_common.c    | 0
>  .../test => test/platform/linux-generic}/pktio_ipc/ipc_common.h    | 0
>  .../test => test/platform/linux-generic}/pktio_ipc/pktio_ipc1.c    | 0
>  .../test => test/platform/linux-generic}/pktio_ipc/pktio_ipc2.c    | 0
>  .../platform/linux-generic}/pktio_ipc/pktio_ipc_run.sh             | 0
>  .../test => test/platform/linux-generic}/ring/.gitignore           | 0
>  .../test => test/platform/linux-generic}/ring/Makefile.am          | 0
>  .../test => test/platform/linux-generic}/ring/ring_basic.c         | 0
>  .../test => test/platform/linux-generic}/ring/ring_main.c          | 0
>  .../test => test/platform/linux-generic}/ring/ring_stress.c        | 0
>  .../test => test/platform/linux-generic}/ring/ring_suites.c        | 0
>  .../test => test/platform/linux-generic}/ring/ring_suites.h        | 0
>  .../linux-generic/test => test/platform/linux-generic}/run-test    | 0
>  .../test => test/platform/linux-generic}/shmem/.gitignore          | 0
>  .../test => test/platform/linux-generic}/shmem/Makefile.am         | 0
>  .../test => test/platform/linux-generic}/shmem/shmem.h             | 0
>  .../test => test/platform/linux-generic}/shmem/shmem_common.h      | 0
>  .../test => test/platform/linux-generic}/shmem/shmem_linux.c       | 0
>  .../test => test/platform/linux-generic}/shmem/shmem_linux.h       | 0
>  .../test => test/platform/linux-generic}/shmem/shmem_odp.c         | 0
>  .../test => test/platform/linux-generic}/shmem/shmem_odp.h         | 0
>  40 files changed, 17 insertions(+), 14 deletions(-)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/.gitignore (100%)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/Makefile.am (100%)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/Makefile.inc (100%)
>  create mode 100644 test/platform/linux-generic/m4/configure.m4
>  rename {platform/linux-generic/test => test/platform/linux-generic}/pktio/.gitignore (100%)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/pktio/Makefile.am (100%)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/pktio/pktio_env (100%)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/pktio/pktio_run.sh (96%)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/pktio/pktio_run_dpdk.sh (90%)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/pktio/pktio_run_netmap.sh (100%)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/pktio/pktio_run_pcap.sh (100%)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/pktio/pktio_run_tap.sh (100%)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/pktio_ipc/.gitignore (100%)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/pktio_ipc/Makefile.am (100%)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/pktio_ipc/ipc_common.c (100%)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/pktio_ipc/ipc_common.h (100%)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/pktio_ipc/pktio_ipc1.c (100%)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/pktio_ipc/pktio_ipc2.c (100%)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/pktio_ipc/pktio_ipc_run.sh (100%)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/ring/.gitignore (100%)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/ring/Makefile.am (100%)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/ring/ring_basic.c (100%)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/ring/ring_main.c (100%)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/ring/ring_stress.c (100%)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/ring/ring_suites.c (100%)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/ring/ring_suites.h (100%)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/run-test (100%)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/shmem/.gitignore (100%)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/shmem/Makefile.am (100%)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/shmem/shmem.h (100%)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/shmem/shmem_common.h (100%)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/shmem/shmem_linux.c (100%)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/shmem/shmem_linux.h (100%)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/shmem/shmem_odp.c (100%)
>  rename {platform/linux-generic/test => test/platform/linux-generic}/shmem/shmem_odp.h (100%)
> 
> diff --git a/Makefile.am b/Makefile.am
> index 2129472..625748a 100644
> --- a/Makefile.am
> +++ b/Makefile.am
> @@ -9,7 +9,6 @@ AM_DISTCHECK_CONFIGURE_FLAGS = --enable-test-cpp \
>  SUBDIRS = @platform_with_platform@ \
>  	  helper \
>  	  test \
> -	  @platform_with_platform_test@ \
>  	  helper/test \
>  	  doc \
>  	  example \
> diff --git a/configure.ac b/configure.ac
> index c87755b..f3952db 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -107,7 +107,6 @@ AC_ARG_WITH([platform],
>  
>  AC_SUBST([with_platform])
>  AC_SUBST([platform_with_platform], ["platform/${with_platform}"])
> -AC_SUBST([platform_with_platform_test], ["platform/${with_platform}/test"])
>  
>  ##########################################################################
>  # Run platform specific checks and settings
> @@ -116,6 +115,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])
>      IMPLEMENTATION_NAME="odp-linux"
>  else
>      echo "UNSUPPORTED PLATFORM: ${with_platform}"
> diff --git a/platform/linux-generic/m4/configure.m4 b/platform/linux-generic/m4/configure.m4
> index 5380046..1b1b883 100644
> --- a/platform/linux-generic/m4/configure.m4
> +++ b/platform/linux-generic/m4/configure.m4
> @@ -36,9 +36,4 @@ m4_include([platform/linux-generic/m4/odp_dpdk.m4])
>  m4_include([platform/linux-generic/m4/odp_ipc.m4])
>  m4_include([platform/linux-generic/m4/odp_schedule.m4])
>  
> -AC_CONFIG_FILES([platform/linux-generic/Makefile
> -		 platform/linux-generic/test/Makefile
> -		 platform/linux-generic/test/shmem/Makefile
> -		 platform/linux-generic/test/pktio/Makefile
> -		 platform/linux-generic/test/pktio_ipc/Makefile
> -		 platform/linux-generic/test/ring/Makefile])
> +AC_CONFIG_FILES([platform/linux-generic/Makefile])
> diff --git a/test/Makefile.am b/test/Makefile.am
> index 4a75364..8bab8fd 100644
> --- a/test/Makefile.am
> +++ b/test/Makefile.am
> @@ -1,5 +1,5 @@
>  SUBDIRS = performance miscellaneous
>  
>  if cunit_support
> -    SUBDIRS += validation
> +    SUBDIRS += validation @platform_with_platform@
>  endif
> diff --git a/test/performance/odp_l2fwd_run.sh b/test/performance/odp_l2fwd_run.sh
> index cab97a8..fc3d05d 100755
> --- a/test/performance/odp_l2fwd_run.sh
> +++ b/test/performance/odp_l2fwd_run.sh
> @@ -37,8 +37,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/test/pktio/pktio_env ]; then
> -	. ${TEST_SRC_DIR}/../../platform/$ODP_PLATFORM/test/pktio/pktio_env
> +elif [ -f ${TEST_SRC_DIR}/../platform/$ODP_PLATFORM/pktio/pktio_env ]; then
> +	. ${TEST_SRC_DIR}/../platform/$ODP_PLATFORM/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."
> diff --git a/platform/linux-generic/test/.gitignore b/test/platform/linux-generic/.gitignore
> similarity index 100%
> rename from platform/linux-generic/test/.gitignore
> rename to test/platform/linux-generic/.gitignore
> diff --git a/platform/linux-generic/test/Makefile.am b/test/platform/linux-generic/Makefile.am
> similarity index 100%
> rename from platform/linux-generic/test/Makefile.am
> rename to test/platform/linux-generic/Makefile.am
> diff --git a/platform/linux-generic/test/Makefile.inc b/test/platform/linux-generic/Makefile.inc
> similarity index 100%
> rename from platform/linux-generic/test/Makefile.inc
> rename to test/platform/linux-generic/Makefile.inc
> diff --git a/test/platform/linux-generic/m4/configure.m4 b/test/platform/linux-generic/m4/configure.m4
> new file mode 100644
> index 0000000..8c3db21
> --- /dev/null
> +++ b/test/platform/linux-generic/m4/configure.m4
> @@ -0,0 +1,5 @@
> +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])
> diff --git a/platform/linux-generic/test/pktio/.gitignore b/test/platform/linux-generic/pktio/.gitignore
> similarity index 100%
> rename from platform/linux-generic/test/pktio/.gitignore
> rename to test/platform/linux-generic/pktio/.gitignore
> diff --git a/platform/linux-generic/test/pktio/Makefile.am b/test/platform/linux-generic/pktio/Makefile.am
> similarity index 100%
> rename from platform/linux-generic/test/pktio/Makefile.am
> rename to test/platform/linux-generic/pktio/Makefile.am
> diff --git a/platform/linux-generic/test/pktio/pktio_env b/test/platform/linux-generic/pktio/pktio_env
> similarity index 100%
> rename from platform/linux-generic/test/pktio/pktio_env
> rename to test/platform/linux-generic/pktio/pktio_env
> diff --git a/platform/linux-generic/test/pktio/pktio_run.sh b/test/platform/linux-generic/pktio/pktio_run.sh
> similarity index 96%
> rename from platform/linux-generic/test/pktio/pktio_run.sh
> rename to test/platform/linux-generic/pktio/pktio_run.sh
> index 1dc1f44..b5a1667 100755
> --- a/platform/linux-generic/test/pktio/pktio_run.sh
> +++ b/test/platform/linux-generic/pktio/pktio_run.sh
> @@ -46,7 +46,8 @@ elif [ -f ${TEST_SRC_DIR}/pktio_env ]; then
>  	. ${TEST_SRC_DIR}/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."
> +	echo "pktio_env has to be in current directory" \
> +		"or in platform/\$ODP_PLATFORM/test."
>  	echo "ODP_PLATFORM=\"$ODP_PLATFORM\""
>  	exit 1
>  fi
> diff --git a/platform/linux-generic/test/pktio/pktio_run_dpdk.sh b/test/platform/linux-generic/pktio/pktio_run_dpdk.sh
> similarity index 90%
> rename from platform/linux-generic/test/pktio/pktio_run_dpdk.sh
> rename to test/platform/linux-generic/pktio/pktio_run_dpdk.sh
> index fd552c6..2c52c6e 100755
> --- a/platform/linux-generic/test/pktio/pktio_run_dpdk.sh
> +++ b/test/platform/linux-generic/pktio/pktio_run_dpdk.sh
> @@ -46,7 +46,8 @@ elif [ -f ${TEST_SRC_DIR}/pktio_env ]; then
>  	. ${TEST_SRC_DIR}/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."
> +	echo "pktio_env has to be in current directory" \
> +		"or in platform/\$ODP_PLATFORM/test."
>  	echo "ODP_PLATFORM=\"$ODP_PLATFORM\""
>  	exit 1
>  fi
> @@ -74,7 +75,9 @@ run()
>  
>  	if [ "$ODP_PKTIO_IF0" = "" ]; then
>  		setup_pktio_env clean
> -		export ODP_PKTIO_DPDK_PARAMS="--vdev eth_pcap0,iface=$IF0 --vdev eth_pcap1,iface=$IF1"
> +		IF0_PARAMS="--vdev eth_pcap0,iface=$IF0"
> +		IF1_PARAMS="--vdev eth_pcap1,iface=$IF1"
> +		export ODP_PKTIO_DPDK_PARAMS="$IF0_PARAMS $IF1_PARAMS"

Why these changes? how does it relate to the move?

Christophe.

>  		export ODP_PKTIO_IF0=0
>  		export ODP_PKTIO_IF1=1
>  	fi
> diff --git a/platform/linux-generic/test/pktio/pktio_run_netmap.sh b/test/platform/linux-generic/pktio/pktio_run_netmap.sh
> similarity index 100%
> rename from platform/linux-generic/test/pktio/pktio_run_netmap.sh
> rename to test/platform/linux-generic/pktio/pktio_run_netmap.sh
> diff --git a/platform/linux-generic/test/pktio/pktio_run_pcap.sh b/test/platform/linux-generic/pktio/pktio_run_pcap.sh
> similarity index 100%
> rename from platform/linux-generic/test/pktio/pktio_run_pcap.sh
> rename to test/platform/linux-generic/pktio/pktio_run_pcap.sh
> diff --git a/platform/linux-generic/test/pktio/pktio_run_tap.sh b/test/platform/linux-generic/pktio/pktio_run_tap.sh
> similarity index 100%
> rename from platform/linux-generic/test/pktio/pktio_run_tap.sh
> rename to test/platform/linux-generic/pktio/pktio_run_tap.sh
> diff --git a/platform/linux-generic/test/pktio_ipc/.gitignore b/test/platform/linux-generic/pktio_ipc/.gitignore
> similarity index 100%
> rename from platform/linux-generic/test/pktio_ipc/.gitignore
> rename to test/platform/linux-generic/pktio_ipc/.gitignore
> diff --git a/platform/linux-generic/test/pktio_ipc/Makefile.am b/test/platform/linux-generic/pktio_ipc/Makefile.am
> similarity index 100%
> rename from platform/linux-generic/test/pktio_ipc/Makefile.am
> rename to test/platform/linux-generic/pktio_ipc/Makefile.am
> diff --git a/platform/linux-generic/test/pktio_ipc/ipc_common.c b/test/platform/linux-generic/pktio_ipc/ipc_common.c
> similarity index 100%
> rename from platform/linux-generic/test/pktio_ipc/ipc_common.c
> rename to test/platform/linux-generic/pktio_ipc/ipc_common.c
> diff --git a/platform/linux-generic/test/pktio_ipc/ipc_common.h b/test/platform/linux-generic/pktio_ipc/ipc_common.h
> similarity index 100%
> rename from platform/linux-generic/test/pktio_ipc/ipc_common.h
> rename to test/platform/linux-generic/pktio_ipc/ipc_common.h
> diff --git a/platform/linux-generic/test/pktio_ipc/pktio_ipc1.c b/test/platform/linux-generic/pktio_ipc/pktio_ipc1.c
> similarity index 100%
> rename from platform/linux-generic/test/pktio_ipc/pktio_ipc1.c
> rename to test/platform/linux-generic/pktio_ipc/pktio_ipc1.c
> diff --git a/platform/linux-generic/test/pktio_ipc/pktio_ipc2.c b/test/platform/linux-generic/pktio_ipc/pktio_ipc2.c
> similarity index 100%
> rename from platform/linux-generic/test/pktio_ipc/pktio_ipc2.c
> rename to test/platform/linux-generic/pktio_ipc/pktio_ipc2.c
> diff --git a/platform/linux-generic/test/pktio_ipc/pktio_ipc_run.sh b/test/platform/linux-generic/pktio_ipc/pktio_ipc_run.sh
> similarity index 100%
> rename from platform/linux-generic/test/pktio_ipc/pktio_ipc_run.sh
> rename to test/platform/linux-generic/pktio_ipc/pktio_ipc_run.sh
> diff --git a/platform/linux-generic/test/ring/.gitignore b/test/platform/linux-generic/ring/.gitignore
> similarity index 100%
> rename from platform/linux-generic/test/ring/.gitignore
> rename to test/platform/linux-generic/ring/.gitignore
> diff --git a/platform/linux-generic/test/ring/Makefile.am b/test/platform/linux-generic/ring/Makefile.am
> similarity index 100%
> rename from platform/linux-generic/test/ring/Makefile.am
> rename to test/platform/linux-generic/ring/Makefile.am
> diff --git a/platform/linux-generic/test/ring/ring_basic.c b/test/platform/linux-generic/ring/ring_basic.c
> similarity index 100%
> rename from platform/linux-generic/test/ring/ring_basic.c
> rename to test/platform/linux-generic/ring/ring_basic.c
> diff --git a/platform/linux-generic/test/ring/ring_main.c b/test/platform/linux-generic/ring/ring_main.c
> similarity index 100%
> rename from platform/linux-generic/test/ring/ring_main.c
> rename to test/platform/linux-generic/ring/ring_main.c
> diff --git a/platform/linux-generic/test/ring/ring_stress.c b/test/platform/linux-generic/ring/ring_stress.c
> similarity index 100%
> rename from platform/linux-generic/test/ring/ring_stress.c
> rename to test/platform/linux-generic/ring/ring_stress.c
> diff --git a/platform/linux-generic/test/ring/ring_suites.c b/test/platform/linux-generic/ring/ring_suites.c
> similarity index 100%
> rename from platform/linux-generic/test/ring/ring_suites.c
> rename to test/platform/linux-generic/ring/ring_suites.c
> diff --git a/platform/linux-generic/test/ring/ring_suites.h b/test/platform/linux-generic/ring/ring_suites.h
> similarity index 100%
> rename from platform/linux-generic/test/ring/ring_suites.h
> rename to test/platform/linux-generic/ring/ring_suites.h
> diff --git a/platform/linux-generic/test/run-test b/test/platform/linux-generic/run-test
> similarity index 100%
> rename from platform/linux-generic/test/run-test
> rename to test/platform/linux-generic/run-test
> diff --git a/platform/linux-generic/test/shmem/.gitignore b/test/platform/linux-generic/shmem/.gitignore
> similarity index 100%
> rename from platform/linux-generic/test/shmem/.gitignore
> rename to test/platform/linux-generic/shmem/.gitignore
> diff --git a/platform/linux-generic/test/shmem/Makefile.am b/test/platform/linux-generic/shmem/Makefile.am
> similarity index 100%
> rename from platform/linux-generic/test/shmem/Makefile.am
> rename to test/platform/linux-generic/shmem/Makefile.am
> diff --git a/platform/linux-generic/test/shmem/shmem.h b/test/platform/linux-generic/shmem/shmem.h
> similarity index 100%
> rename from platform/linux-generic/test/shmem/shmem.h
> rename to test/platform/linux-generic/shmem/shmem.h
> diff --git a/platform/linux-generic/test/shmem/shmem_common.h b/test/platform/linux-generic/shmem/shmem_common.h
> similarity index 100%
> rename from platform/linux-generic/test/shmem/shmem_common.h
> rename to test/platform/linux-generic/shmem/shmem_common.h
> diff --git a/platform/linux-generic/test/shmem/shmem_linux.c b/test/platform/linux-generic/shmem/shmem_linux.c
> similarity index 100%
> rename from platform/linux-generic/test/shmem/shmem_linux.c
> rename to test/platform/linux-generic/shmem/shmem_linux.c
> diff --git a/platform/linux-generic/test/shmem/shmem_linux.h b/test/platform/linux-generic/shmem/shmem_linux.h
> similarity index 100%
> rename from platform/linux-generic/test/shmem/shmem_linux.h
> rename to test/platform/linux-generic/shmem/shmem_linux.h
> diff --git a/platform/linux-generic/test/shmem/shmem_odp.c b/test/platform/linux-generic/shmem/shmem_odp.c
> similarity index 100%
> rename from platform/linux-generic/test/shmem/shmem_odp.c
> rename to test/platform/linux-generic/shmem/shmem_odp.c
> diff --git a/platform/linux-generic/test/shmem/shmem_odp.h b/test/platform/linux-generic/shmem/shmem_odp.h
> similarity index 100%
> rename from platform/linux-generic/test/shmem/shmem_odp.h
> rename to test/platform/linux-generic/shmem/shmem_odp.h
> -- 
> 2.7.4
>
Maxim Uvarov June 20, 2016, 8:48 a.m. UTC | #4
On 06/17/16 11:33, Yi He wrote:
> Hi, Christophe
>
> This is to mitigate the checkpatch.pl warning "line exceeds 80 characters".

Agree with Christophe, you should always separate such changes. Simple 
move should be in separate patch.
And fixes even if they are very small, have to in also in separate patch.

Maxim.


> On 17 June 2016 at 17:23, Christophe Milard <christophe.milard@linaro.org>
> wrote:
>
>> On 2016-06-17 06:10, Yi He wrote:
>>> Move platform tests from odp/platform/linux-generic/test
>>> into test suite at odp/test/platform/linux-generic.
>>>
>>> Signed-off-by: Yi He <yi.he@linaro.org>
>>> ---
>>> v4 restore the invocation of general validation tests:
>>> The Validation tests HAVE to be called from the platform side!!
>>> That enables for individual platforms to define wrappers around tests:
>>> If You run the validation tests from the validation side, any platforms
>>> which needs to have a little twik (e.g. a specific setup, or soon, tests
>> args)
>>> will be stuck.
>>>
>>> The patch only contains: the move, a new configure.m4 and minor changes
>>> in scripts to mitigate checkpatch.pl warnings and one search path
>> update.
>>>   Makefile.am                                                        | 1 -
>>>   configure.ac                                                       | 2
>> +-
>>>   platform/linux-generic/m4/configure.m4                             | 7
>> +------
>>>   test/Makefile.am                                                   | 2
>> +-
>>>   test/performance/odp_l2fwd_run.sh                                  | 4
>> ++--
>>>   .../linux-generic/test => test/platform/linux-generic}/.gitignore  | 0
>>>   .../linux-generic/test => test/platform/linux-generic}/Makefile.am | 0
>>>   .../test => test/platform/linux-generic}/Makefile.inc              | 0
>>>   test/platform/linux-generic/m4/configure.m4                        | 5
>> +++++
>>>   .../test => test/platform/linux-generic}/pktio/.gitignore          | 0
>>>   .../test => test/platform/linux-generic}/pktio/Makefile.am         | 0
>>>   .../test => test/platform/linux-generic}/pktio/pktio_env           | 0
>>>   .../test => test/platform/linux-generic}/pktio/pktio_run.sh        | 3
>> ++-
>>>   .../test => test/platform/linux-generic}/pktio/pktio_run_dpdk.sh   | 7
>> +++++--
>>>   .../test => test/platform/linux-generic}/pktio/pktio_run_netmap.sh | 0
>>>   .../test => test/platform/linux-generic}/pktio/pktio_run_pcap.sh   | 0
>>>   .../test => test/platform/linux-generic}/pktio/pktio_run_tap.sh    | 0
>>>   .../test => test/platform/linux-generic}/pktio_ipc/.gitignore      | 0
>>>   .../test => test/platform/linux-generic}/pktio_ipc/Makefile.am     | 0
>>>   .../test => test/platform/linux-generic}/pktio_ipc/ipc_common.c    | 0
>>>   .../test => test/platform/linux-generic}/pktio_ipc/ipc_common.h    | 0
>>>   .../test => test/platform/linux-generic}/pktio_ipc/pktio_ipc1.c    | 0
>>>   .../test => test/platform/linux-generic}/pktio_ipc/pktio_ipc2.c    | 0
>>>   .../platform/linux-generic}/pktio_ipc/pktio_ipc_run.sh             | 0
>>>   .../test => test/platform/linux-generic}/ring/.gitignore           | 0
>>>   .../test => test/platform/linux-generic}/ring/Makefile.am          | 0
>>>   .../test => test/platform/linux-generic}/ring/ring_basic.c         | 0
>>>   .../test => test/platform/linux-generic}/ring/ring_main.c          | 0
>>>   .../test => test/platform/linux-generic}/ring/ring_stress.c        | 0
>>>   .../test => test/platform/linux-generic}/ring/ring_suites.c        | 0
>>>   .../test => test/platform/linux-generic}/ring/ring_suites.h        | 0
>>>   .../linux-generic/test => test/platform/linux-generic}/run-test    | 0
>>>   .../test => test/platform/linux-generic}/shmem/.gitignore          | 0
>>>   .../test => test/platform/linux-generic}/shmem/Makefile.am         | 0
>>>   .../test => test/platform/linux-generic}/shmem/shmem.h             | 0
>>>   .../test => test/platform/linux-generic}/shmem/shmem_common.h      | 0
>>>   .../test => test/platform/linux-generic}/shmem/shmem_linux.c       | 0
>>>   .../test => test/platform/linux-generic}/shmem/shmem_linux.h       | 0
>>>   .../test => test/platform/linux-generic}/shmem/shmem_odp.c         | 0
>>>   .../test => test/platform/linux-generic}/shmem/shmem_odp.h         | 0
>>>   40 files changed, 17 insertions(+), 14 deletions(-)
>>>   rename {platform/linux-generic/test =>
>> test/platform/linux-generic}/.gitignore (100%)
>>>   rename {platform/linux-generic/test =>
>> test/platform/linux-generic}/Makefile.am (100%)
>>>   rename {platform/linux-generic/test =>
>> test/platform/linux-generic}/Makefile.inc (100%)
>>>   create mode 100644 test/platform/linux-generic/m4/configure.m4
>>>   rename {platform/linux-generic/test =>
>> test/platform/linux-generic}/pktio/.gitignore (100%)
>>>   rename {platform/linux-generic/test =>
>> test/platform/linux-generic}/pktio/Makefile.am (100%)
>>>   rename {platform/linux-generic/test =>
>> test/platform/linux-generic}/pktio/pktio_env (100%)
>>>   rename {platform/linux-generic/test =>
>> test/platform/linux-generic}/pktio/pktio_run.sh (96%)
>>>   rename {platform/linux-generic/test =>
>> test/platform/linux-generic}/pktio/pktio_run_dpdk.sh (90%)
>>>   rename {platform/linux-generic/test =>
>> test/platform/linux-generic}/pktio/pktio_run_netmap.sh (100%)
>>>   rename {platform/linux-generic/test =>
>> test/platform/linux-generic}/pktio/pktio_run_pcap.sh (100%)
>>>   rename {platform/linux-generic/test =>
>> test/platform/linux-generic}/pktio/pktio_run_tap.sh (100%)
>>>   rename {platform/linux-generic/test =>
>> test/platform/linux-generic}/pktio_ipc/.gitignore (100%)
>>>   rename {platform/linux-generic/test =>
>> test/platform/linux-generic}/pktio_ipc/Makefile.am (100%)
>>>   rename {platform/linux-generic/test =>
>> test/platform/linux-generic}/pktio_ipc/ipc_common.c (100%)
>>>   rename {platform/linux-generic/test =>
>> test/platform/linux-generic}/pktio_ipc/ipc_common.h (100%)
>>>   rename {platform/linux-generic/test =>
>> test/platform/linux-generic}/pktio_ipc/pktio_ipc1.c (100%)
>>>   rename {platform/linux-generic/test =>
>> test/platform/linux-generic}/pktio_ipc/pktio_ipc2.c (100%)
>>>   rename {platform/linux-generic/test =>
>> test/platform/linux-generic}/pktio_ipc/pktio_ipc_run.sh (100%)
>>>   rename {platform/linux-generic/test =>
>> test/platform/linux-generic}/ring/.gitignore (100%)
>>>   rename {platform/linux-generic/test =>
>> test/platform/linux-generic}/ring/Makefile.am (100%)
>>>   rename {platform/linux-generic/test =>
>> test/platform/linux-generic}/ring/ring_basic.c (100%)
>>>   rename {platform/linux-generic/test =>
>> test/platform/linux-generic}/ring/ring_main.c (100%)
>>>   rename {platform/linux-generic/test =>
>> test/platform/linux-generic}/ring/ring_stress.c (100%)
>>>   rename {platform/linux-generic/test =>
>> test/platform/linux-generic}/ring/ring_suites.c (100%)
>>>   rename {platform/linux-generic/test =>
>> test/platform/linux-generic}/ring/ring_suites.h (100%)
>>>   rename {platform/linux-generic/test =>
>> test/platform/linux-generic}/run-test (100%)
>>>   rename {platform/linux-generic/test =>
>> test/platform/linux-generic}/shmem/.gitignore (100%)
>>>   rename {platform/linux-generic/test =>
>> test/platform/linux-generic}/shmem/Makefile.am (100%)
>>>   rename {platform/linux-generic/test =>
>> test/platform/linux-generic}/shmem/shmem.h (100%)
>>>   rename {platform/linux-generic/test =>
>> test/platform/linux-generic}/shmem/shmem_common.h (100%)
>>>   rename {platform/linux-generic/test =>
>> test/platform/linux-generic}/shmem/shmem_linux.c (100%)
>>>   rename {platform/linux-generic/test =>
>> test/platform/linux-generic}/shmem/shmem_linux.h (100%)
>>>   rename {platform/linux-generic/test =>
>> test/platform/linux-generic}/shmem/shmem_odp.c (100%)
>>>   rename {platform/linux-generic/test =>
>> test/platform/linux-generic}/shmem/shmem_odp.h (100%)
>>> diff --git a/Makefile.am b/Makefile.am
>>> index 2129472..625748a 100644
>>> --- a/Makefile.am
>>> +++ b/Makefile.am
>>> @@ -9,7 +9,6 @@ AM_DISTCHECK_CONFIGURE_FLAGS = --enable-test-cpp \
>>>   SUBDIRS = @platform_with_platform@ \
>>>          helper \
>>>          test \
>>> -       @platform_with_platform_test@ \
>>>          helper/test \
>>>          doc \
>>>          example \
>>> diff --git a/configure.ac b/configure.ac
>>> index c87755b..f3952db 100644
>>> --- a/configure.ac
>>> +++ b/configure.ac
>>> @@ -107,7 +107,6 @@ AC_ARG_WITH([platform],
>>>
>>>   AC_SUBST([with_platform])
>>>   AC_SUBST([platform_with_platform], ["platform/${with_platform}"])
>>> -AC_SUBST([platform_with_platform_test],
>> ["platform/${with_platform}/test"])
>>>
>> ##########################################################################
>>>   # Run platform specific checks and settings
>>> @@ -116,6 +115,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])
>>>       IMPLEMENTATION_NAME="odp-linux"
>>>   else
>>>       echo "UNSUPPORTED PLATFORM: ${with_platform}"
>>> diff --git a/platform/linux-generic/m4/configure.m4
>> b/platform/linux-generic/m4/configure.m4
>>> index 5380046..1b1b883 100644
>>> --- a/platform/linux-generic/m4/configure.m4
>>> +++ b/platform/linux-generic/m4/configure.m4
>>> @@ -36,9 +36,4 @@ m4_include([platform/linux-generic/m4/odp_dpdk.m4])
>>>   m4_include([platform/linux-generic/m4/odp_ipc.m4])
>>>   m4_include([platform/linux-generic/m4/odp_schedule.m4])
>>>
>>> -AC_CONFIG_FILES([platform/linux-generic/Makefile
>>> -              platform/linux-generic/test/Makefile
>>> -              platform/linux-generic/test/shmem/Makefile
>>> -              platform/linux-generic/test/pktio/Makefile
>>> -              platform/linux-generic/test/pktio_ipc/Makefile
>>> -              platform/linux-generic/test/ring/Makefile])
>>> +AC_CONFIG_FILES([platform/linux-generic/Makefile])
>>> diff --git a/test/Makefile.am b/test/Makefile.am
>>> index 4a75364..8bab8fd 100644
>>> --- a/test/Makefile.am
>>> +++ b/test/Makefile.am
>>> @@ -1,5 +1,5 @@
>>>   SUBDIRS = performance miscellaneous
>>>
>>>   if cunit_support
>>> -    SUBDIRS += validation
>>> +    SUBDIRS += validation @platform_with_platform@
>>>   endif
>>> diff --git a/test/performance/odp_l2fwd_run.sh
>> b/test/performance/odp_l2fwd_run.sh
>>> index cab97a8..fc3d05d 100755
>>> --- a/test/performance/odp_l2fwd_run.sh
>>> +++ b/test/performance/odp_l2fwd_run.sh
>>> @@ -37,8 +37,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/test/pktio/pktio_env ]; then
>>> -     . ${TEST_SRC_DIR}/../../platform/$ODP_PLATFORM/test/pktio/pktio_env
>>> +elif [ -f ${TEST_SRC_DIR}/../platform/$ODP_PLATFORM/pktio/pktio_env ];
>> then
>>> +     . ${TEST_SRC_DIR}/../platform/$ODP_PLATFORM/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."
>>> diff --git a/platform/linux-generic/test/.gitignore
>> b/test/platform/linux-generic/.gitignore
>>> similarity index 100%
>>> rename from platform/linux-generic/test/.gitignore
>>> rename to test/platform/linux-generic/.gitignore
>>> diff --git a/platform/linux-generic/test/Makefile.am
>> b/test/platform/linux-generic/Makefile.am
>>> similarity index 100%
>>> rename from platform/linux-generic/test/Makefile.am
>>> rename to test/platform/linux-generic/Makefile.am
>>> diff --git a/platform/linux-generic/test/Makefile.inc
>> b/test/platform/linux-generic/Makefile.inc
>>> similarity index 100%
>>> rename from platform/linux-generic/test/Makefile.inc
>>> rename to test/platform/linux-generic/Makefile.inc
>>> diff --git a/test/platform/linux-generic/m4/configure.m4
>> b/test/platform/linux-generic/m4/configure.m4
>>> new file mode 100644
>>> index 0000000..8c3db21
>>> --- /dev/null
>>> +++ b/test/platform/linux-generic/m4/configure.m4
>>> @@ -0,0 +1,5 @@
>>> +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])
>>> diff --git a/platform/linux-generic/test/pktio/.gitignore
>> b/test/platform/linux-generic/pktio/.gitignore
>>> similarity index 100%
>>> rename from platform/linux-generic/test/pktio/.gitignore
>>> rename to test/platform/linux-generic/pktio/.gitignore
>>> diff --git a/platform/linux-generic/test/pktio/Makefile.am
>> b/test/platform/linux-generic/pktio/Makefile.am
>>> similarity index 100%
>>> rename from platform/linux-generic/test/pktio/Makefile.am
>>> rename to test/platform/linux-generic/pktio/Makefile.am
>>> diff --git a/platform/linux-generic/test/pktio/pktio_env
>> b/test/platform/linux-generic/pktio/pktio_env
>>> similarity index 100%
>>> rename from platform/linux-generic/test/pktio/pktio_env
>>> rename to test/platform/linux-generic/pktio/pktio_env
>>> diff --git a/platform/linux-generic/test/pktio/pktio_run.sh
>> b/test/platform/linux-generic/pktio/pktio_run.sh
>>> similarity index 96%
>>> rename from platform/linux-generic/test/pktio/pktio_run.sh
>>> rename to test/platform/linux-generic/pktio/pktio_run.sh
>>> index 1dc1f44..b5a1667 100755
>>> --- a/platform/linux-generic/test/pktio/pktio_run.sh
>>> +++ b/test/platform/linux-generic/pktio/pktio_run.sh
>>> @@ -46,7 +46,8 @@ elif [ -f ${TEST_SRC_DIR}/pktio_env ]; then
>>>        . ${TEST_SRC_DIR}/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."
>>> +     echo "pktio_env has to be in current directory" \
>>> +             "or in platform/\$ODP_PLATFORM/test."
>>>        echo "ODP_PLATFORM=\"$ODP_PLATFORM\""
>>>        exit 1
>>>   fi
>>> diff --git a/platform/linux-generic/test/pktio/pktio_run_dpdk.sh
>> b/test/platform/linux-generic/pktio/pktio_run_dpdk.sh
>>> similarity index 90%
>>> rename from platform/linux-generic/test/pktio/pktio_run_dpdk.sh
>>> rename to test/platform/linux-generic/pktio/pktio_run_dpdk.sh
>>> index fd552c6..2c52c6e 100755
>>> --- a/platform/linux-generic/test/pktio/pktio_run_dpdk.sh
>>> +++ b/test/platform/linux-generic/pktio/pktio_run_dpdk.sh
>>> @@ -46,7 +46,8 @@ elif [ -f ${TEST_SRC_DIR}/pktio_env ]; then
>>>        . ${TEST_SRC_DIR}/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."
>>> +     echo "pktio_env has to be in current directory" \
>>> +             "or in platform/\$ODP_PLATFORM/test."
>>>        echo "ODP_PLATFORM=\"$ODP_PLATFORM\""
>>>        exit 1
>>>   fi
>>> @@ -74,7 +75,9 @@ run()
>>>
>>>        if [ "$ODP_PKTIO_IF0" = "" ]; then
>>>                setup_pktio_env clean
>>> -             export ODP_PKTIO_DPDK_PARAMS="--vdev eth_pcap0,iface=$IF0
>> --vdev eth_pcap1,iface=$IF1"
>>> +             IF0_PARAMS="--vdev eth_pcap0,iface=$IF0"
>>> +             IF1_PARAMS="--vdev eth_pcap1,iface=$IF1"
>>> +             export ODP_PKTIO_DPDK_PARAMS="$IF0_PARAMS $IF1_PARAMS"
>> Why these changes? how does it relate to the move?
>>
>> Christophe.
>>
>>>                export ODP_PKTIO_IF0=0
>>>                export ODP_PKTIO_IF1=1
>>>        fi
>>> diff --git a/platform/linux-generic/test/pktio/pktio_run_netmap.sh
>> b/test/platform/linux-generic/pktio/pktio_run_netmap.sh
>>> similarity index 100%
>>> rename from platform/linux-generic/test/pktio/pktio_run_netmap.sh
>>> rename to test/platform/linux-generic/pktio/pktio_run_netmap.sh
>>> diff --git a/platform/linux-generic/test/pktio/pktio_run_pcap.sh
>> b/test/platform/linux-generic/pktio/pktio_run_pcap.sh
>>> similarity index 100%
>>> rename from platform/linux-generic/test/pktio/pktio_run_pcap.sh
>>> rename to test/platform/linux-generic/pktio/pktio_run_pcap.sh
>>> diff --git a/platform/linux-generic/test/pktio/pktio_run_tap.sh
>> b/test/platform/linux-generic/pktio/pktio_run_tap.sh
>>> similarity index 100%
>>> rename from platform/linux-generic/test/pktio/pktio_run_tap.sh
>>> rename to test/platform/linux-generic/pktio/pktio_run_tap.sh
>>> diff --git a/platform/linux-generic/test/pktio_ipc/.gitignore
>> b/test/platform/linux-generic/pktio_ipc/.gitignore
>>> similarity index 100%
>>> rename from platform/linux-generic/test/pktio_ipc/.gitignore
>>> rename to test/platform/linux-generic/pktio_ipc/.gitignore
>>> diff --git a/platform/linux-generic/test/pktio_ipc/Makefile.am
>> b/test/platform/linux-generic/pktio_ipc/Makefile.am
>>> similarity index 100%
>>> rename from platform/linux-generic/test/pktio_ipc/Makefile.am
>>> rename to test/platform/linux-generic/pktio_ipc/Makefile.am
>>> diff --git a/platform/linux-generic/test/pktio_ipc/ipc_common.c
>> b/test/platform/linux-generic/pktio_ipc/ipc_common.c
>>> similarity index 100%
>>> rename from platform/linux-generic/test/pktio_ipc/ipc_common.c
>>> rename to test/platform/linux-generic/pktio_ipc/ipc_common.c
>>> diff --git a/platform/linux-generic/test/pktio_ipc/ipc_common.h
>> b/test/platform/linux-generic/pktio_ipc/ipc_common.h
>>> similarity index 100%
>>> rename from platform/linux-generic/test/pktio_ipc/ipc_common.h
>>> rename to test/platform/linux-generic/pktio_ipc/ipc_common.h
>>> diff --git a/platform/linux-generic/test/pktio_ipc/pktio_ipc1.c
>> b/test/platform/linux-generic/pktio_ipc/pktio_ipc1.c
>>> similarity index 100%
>>> rename from platform/linux-generic/test/pktio_ipc/pktio_ipc1.c
>>> rename to test/platform/linux-generic/pktio_ipc/pktio_ipc1.c
>>> diff --git a/platform/linux-generic/test/pktio_ipc/pktio_ipc2.c
>> b/test/platform/linux-generic/pktio_ipc/pktio_ipc2.c
>>> similarity index 100%
>>> rename from platform/linux-generic/test/pktio_ipc/pktio_ipc2.c
>>> rename to test/platform/linux-generic/pktio_ipc/pktio_ipc2.c
>>> diff --git a/platform/linux-generic/test/pktio_ipc/pktio_ipc_run.sh
>> b/test/platform/linux-generic/pktio_ipc/pktio_ipc_run.sh
>>> similarity index 100%
>>> rename from platform/linux-generic/test/pktio_ipc/pktio_ipc_run.sh
>>> rename to test/platform/linux-generic/pktio_ipc/pktio_ipc_run.sh
>>> diff --git a/platform/linux-generic/test/ring/.gitignore
>> b/test/platform/linux-generic/ring/.gitignore
>>> similarity index 100%
>>> rename from platform/linux-generic/test/ring/.gitignore
>>> rename to test/platform/linux-generic/ring/.gitignore
>>> diff --git a/platform/linux-generic/test/ring/Makefile.am
>> b/test/platform/linux-generic/ring/Makefile.am
>>> similarity index 100%
>>> rename from platform/linux-generic/test/ring/Makefile.am
>>> rename to test/platform/linux-generic/ring/Makefile.am
>>> diff --git a/platform/linux-generic/test/ring/ring_basic.c
>> b/test/platform/linux-generic/ring/ring_basic.c
>>> similarity index 100%
>>> rename from platform/linux-generic/test/ring/ring_basic.c
>>> rename to test/platform/linux-generic/ring/ring_basic.c
>>> diff --git a/platform/linux-generic/test/ring/ring_main.c
>> b/test/platform/linux-generic/ring/ring_main.c
>>> similarity index 100%
>>> rename from platform/linux-generic/test/ring/ring_main.c
>>> rename to test/platform/linux-generic/ring/ring_main.c
>>> diff --git a/platform/linux-generic/test/ring/ring_stress.c
>> b/test/platform/linux-generic/ring/ring_stress.c
>>> similarity index 100%
>>> rename from platform/linux-generic/test/ring/ring_stress.c
>>> rename to test/platform/linux-generic/ring/ring_stress.c
>>> diff --git a/platform/linux-generic/test/ring/ring_suites.c
>> b/test/platform/linux-generic/ring/ring_suites.c
>>> similarity index 100%
>>> rename from platform/linux-generic/test/ring/ring_suites.c
>>> rename to test/platform/linux-generic/ring/ring_suites.c
>>> diff --git a/platform/linux-generic/test/ring/ring_suites.h
>> b/test/platform/linux-generic/ring/ring_suites.h
>>> similarity index 100%
>>> rename from platform/linux-generic/test/ring/ring_suites.h
>>> rename to test/platform/linux-generic/ring/ring_suites.h
>>> diff --git a/platform/linux-generic/test/run-test
>> b/test/platform/linux-generic/run-test
>>> similarity index 100%
>>> rename from platform/linux-generic/test/run-test
>>> rename to test/platform/linux-generic/run-test
>>> diff --git a/platform/linux-generic/test/shmem/.gitignore
>> b/test/platform/linux-generic/shmem/.gitignore
>>> similarity index 100%
>>> rename from platform/linux-generic/test/shmem/.gitignore
>>> rename to test/platform/linux-generic/shmem/.gitignore
>>> diff --git a/platform/linux-generic/test/shmem/Makefile.am
>> b/test/platform/linux-generic/shmem/Makefile.am
>>> similarity index 100%
>>> rename from platform/linux-generic/test/shmem/Makefile.am
>>> rename to test/platform/linux-generic/shmem/Makefile.am
>>> diff --git a/platform/linux-generic/test/shmem/shmem.h
>> b/test/platform/linux-generic/shmem/shmem.h
>>> similarity index 100%
>>> rename from platform/linux-generic/test/shmem/shmem.h
>>> rename to test/platform/linux-generic/shmem/shmem.h
>>> diff --git a/platform/linux-generic/test/shmem/shmem_common.h
>> b/test/platform/linux-generic/shmem/shmem_common.h
>>> similarity index 100%
>>> rename from platform/linux-generic/test/shmem/shmem_common.h
>>> rename to test/platform/linux-generic/shmem/shmem_common.h
>>> diff --git a/platform/linux-generic/test/shmem/shmem_linux.c
>> b/test/platform/linux-generic/shmem/shmem_linux.c
>>> similarity index 100%
>>> rename from platform/linux-generic/test/shmem/shmem_linux.c
>>> rename to test/platform/linux-generic/shmem/shmem_linux.c
>>> diff --git a/platform/linux-generic/test/shmem/shmem_linux.h
>> b/test/platform/linux-generic/shmem/shmem_linux.h
>>> similarity index 100%
>>> rename from platform/linux-generic/test/shmem/shmem_linux.h
>>> rename to test/platform/linux-generic/shmem/shmem_linux.h
>>> diff --git a/platform/linux-generic/test/shmem/shmem_odp.c
>> b/test/platform/linux-generic/shmem/shmem_odp.c
>>> similarity index 100%
>>> rename from platform/linux-generic/test/shmem/shmem_odp.c
>>> rename to test/platform/linux-generic/shmem/shmem_odp.c
>>> diff --git a/platform/linux-generic/test/shmem/shmem_odp.h
>> b/test/platform/linux-generic/shmem/shmem_odp.h
>>> similarity index 100%
>>> rename from platform/linux-generic/test/shmem/shmem_odp.h
>>> rename to test/platform/linux-generic/shmem/shmem_odp.h
>>> --
>>> 2.7.4
>>>
> _______________________________________________
> lng-odp mailing list
> lng-odp@lists.linaro.org
> https://lists.linaro.org/mailman/listinfo/lng-odp
Yi He June 20, 2016, 9:38 a.m. UTC | #5
Hi, Maxim

I think this should be one patch, the reason is:

they are not independent changes, this one is just like I wrote a patch,
and checked with ./checkpatch.pl, fixed reported issues and then sent it
out.

Only in case separate patches fixes unrelated problems and all triggers no
./checkpatch.pl warnings, then it is the case we separate them right?

But this case is that if we separate them, one will always trigger warnings
and another only to fix these warnings.

Thanks and best regards, Yi

On 20 June 2016 at 16:48, Maxim Uvarov <maxim.uvarov@linaro.org> wrote:

> On 06/17/16 11:33, Yi He wrote:
>
>> Hi, Christophe
>>
>> This is to mitigate the checkpatch.pl warning "line exceeds 80
>> characters".
>>
>
> Agree with Christophe, you should always separate such changes. Simple
> move should be in separate patch.
> And fixes even if they are very small, have to in also in separate patch.
>
> Maxim.
>
>
> On 17 June 2016 at 17:23, Christophe Milard <christophe.milard@linaro.org>
>> wrote:
>>
>> On 2016-06-17 06:10, Yi He wrote:
>>>
>>>> Move platform tests from odp/platform/linux-generic/test
>>>> into test suite at odp/test/platform/linux-generic.
>>>>
>>>> Signed-off-by: Yi He <yi.he@linaro.org>
>>>> ---
>>>> v4 restore the invocation of general validation tests:
>>>> The Validation tests HAVE to be called from the platform side!!
>>>> That enables for individual platforms to define wrappers around tests:
>>>> If You run the validation tests from the validation side, any platforms
>>>> which needs to have a little twik (e.g. a specific setup, or soon, tests
>>>>
>>> args)
>>>
>>>> will be stuck.
>>>>
>>>> The patch only contains: the move, a new configure.m4 and minor changes
>>>> in scripts to mitigate checkpatch.pl warnings and one search path
>>>>
>>> update.
>>>
>>>>   Makefile.am                                                        |
>>>> 1 -
>>>>   configure.ac                                                       |
>>>> 2
>>>>
>>> +-
>>>
>>>>   platform/linux-generic/m4/configure.m4                             | 7
>>>>
>>> +------
>>>
>>>>   test/Makefile.am                                                   | 2
>>>>
>>> +-
>>>
>>>>   test/performance/odp_l2fwd_run.sh                                  | 4
>>>>
>>> ++--
>>>
>>>>   .../linux-generic/test => test/platform/linux-generic}/.gitignore  | 0
>>>>   .../linux-generic/test => test/platform/linux-generic}/Makefile.am | 0
>>>>   .../test => test/platform/linux-generic}/Makefile.inc              | 0
>>>>   test/platform/linux-generic/m4/configure.m4                        | 5
>>>>
>>> +++++
>>>
>>>>   .../test => test/platform/linux-generic}/pktio/.gitignore          | 0
>>>>   .../test => test/platform/linux-generic}/pktio/Makefile.am         | 0
>>>>   .../test => test/platform/linux-generic}/pktio/pktio_env           | 0
>>>>   .../test => test/platform/linux-generic}/pktio/pktio_run.sh        | 3
>>>>
>>> ++-
>>>
>>>>   .../test => test/platform/linux-generic}/pktio/pktio_run_dpdk.sh   | 7
>>>>
>>> +++++--
>>>
>>>>   .../test => test/platform/linux-generic}/pktio/pktio_run_netmap.sh | 0
>>>>   .../test => test/platform/linux-generic}/pktio/pktio_run_pcap.sh   | 0
>>>>   .../test => test/platform/linux-generic}/pktio/pktio_run_tap.sh    | 0
>>>>   .../test => test/platform/linux-generic}/pktio_ipc/.gitignore      | 0
>>>>   .../test => test/platform/linux-generic}/pktio_ipc/Makefile.am     | 0
>>>>   .../test => test/platform/linux-generic}/pktio_ipc/ipc_common.c    | 0
>>>>   .../test => test/platform/linux-generic}/pktio_ipc/ipc_common.h    | 0
>>>>   .../test => test/platform/linux-generic}/pktio_ipc/pktio_ipc1.c    | 0
>>>>   .../test => test/platform/linux-generic}/pktio_ipc/pktio_ipc2.c    | 0
>>>>   .../platform/linux-generic}/pktio_ipc/pktio_ipc_run.sh             | 0
>>>>   .../test => test/platform/linux-generic}/ring/.gitignore           | 0
>>>>   .../test => test/platform/linux-generic}/ring/Makefile.am          | 0
>>>>   .../test => test/platform/linux-generic}/ring/ring_basic.c         | 0
>>>>   .../test => test/platform/linux-generic}/ring/ring_main.c          | 0
>>>>   .../test => test/platform/linux-generic}/ring/ring_stress.c        | 0
>>>>   .../test => test/platform/linux-generic}/ring/ring_suites.c        | 0
>>>>   .../test => test/platform/linux-generic}/ring/ring_suites.h        | 0
>>>>   .../linux-generic/test => test/platform/linux-generic}/run-test    | 0
>>>>   .../test => test/platform/linux-generic}/shmem/.gitignore          | 0
>>>>   .../test => test/platform/linux-generic}/shmem/Makefile.am         | 0
>>>>   .../test => test/platform/linux-generic}/shmem/shmem.h             | 0
>>>>   .../test => test/platform/linux-generic}/shmem/shmem_common.h      | 0
>>>>   .../test => test/platform/linux-generic}/shmem/shmem_linux.c       | 0
>>>>   .../test => test/platform/linux-generic}/shmem/shmem_linux.h       | 0
>>>>   .../test => test/platform/linux-generic}/shmem/shmem_odp.c         | 0
>>>>   .../test => test/platform/linux-generic}/shmem/shmem_odp.h         | 0
>>>>   40 files changed, 17 insertions(+), 14 deletions(-)
>>>>   rename {platform/linux-generic/test =>
>>>>
>>> test/platform/linux-generic}/.gitignore (100%)
>>>
>>>>   rename {platform/linux-generic/test =>
>>>>
>>> test/platform/linux-generic}/Makefile.am (100%)
>>>
>>>>   rename {platform/linux-generic/test =>
>>>>
>>> test/platform/linux-generic}/Makefile.inc (100%)
>>>
>>>>   create mode 100644 test/platform/linux-generic/m4/configure.m4
>>>>   rename {platform/linux-generic/test =>
>>>>
>>> test/platform/linux-generic}/pktio/.gitignore (100%)
>>>
>>>>   rename {platform/linux-generic/test =>
>>>>
>>> test/platform/linux-generic}/pktio/Makefile.am (100%)
>>>
>>>>   rename {platform/linux-generic/test =>
>>>>
>>> test/platform/linux-generic}/pktio/pktio_env (100%)
>>>
>>>>   rename {platform/linux-generic/test =>
>>>>
>>> test/platform/linux-generic}/pktio/pktio_run.sh (96%)
>>>
>>>>   rename {platform/linux-generic/test =>
>>>>
>>> test/platform/linux-generic}/pktio/pktio_run_dpdk.sh (90%)
>>>
>>>>   rename {platform/linux-generic/test =>
>>>>
>>> test/platform/linux-generic}/pktio/pktio_run_netmap.sh (100%)
>>>
>>>>   rename {platform/linux-generic/test =>
>>>>
>>> test/platform/linux-generic}/pktio/pktio_run_pcap.sh (100%)
>>>
>>>>   rename {platform/linux-generic/test =>
>>>>
>>> test/platform/linux-generic}/pktio/pktio_run_tap.sh (100%)
>>>
>>>>   rename {platform/linux-generic/test =>
>>>>
>>> test/platform/linux-generic}/pktio_ipc/.gitignore (100%)
>>>
>>>>   rename {platform/linux-generic/test =>
>>>>
>>> test/platform/linux-generic}/pktio_ipc/Makefile.am (100%)
>>>
>>>>   rename {platform/linux-generic/test =>
>>>>
>>> test/platform/linux-generic}/pktio_ipc/ipc_common.c (100%)
>>>
>>>>   rename {platform/linux-generic/test =>
>>>>
>>> test/platform/linux-generic}/pktio_ipc/ipc_common.h (100%)
>>>
>>>>   rename {platform/linux-generic/test =>
>>>>
>>> test/platform/linux-generic}/pktio_ipc/pktio_ipc1.c (100%)
>>>
>>>>   rename {platform/linux-generic/test =>
>>>>
>>> test/platform/linux-generic}/pktio_ipc/pktio_ipc2.c (100%)
>>>
>>>>   rename {platform/linux-generic/test =>
>>>>
>>> test/platform/linux-generic}/pktio_ipc/pktio_ipc_run.sh (100%)
>>>
>>>>   rename {platform/linux-generic/test =>
>>>>
>>> test/platform/linux-generic}/ring/.gitignore (100%)
>>>
>>>>   rename {platform/linux-generic/test =>
>>>>
>>> test/platform/linux-generic}/ring/Makefile.am (100%)
>>>
>>>>   rename {platform/linux-generic/test =>
>>>>
>>> test/platform/linux-generic}/ring/ring_basic.c (100%)
>>>
>>>>   rename {platform/linux-generic/test =>
>>>>
>>> test/platform/linux-generic}/ring/ring_main.c (100%)
>>>
>>>>   rename {platform/linux-generic/test =>
>>>>
>>> test/platform/linux-generic}/ring/ring_stress.c (100%)
>>>
>>>>   rename {platform/linux-generic/test =>
>>>>
>>> test/platform/linux-generic}/ring/ring_suites.c (100%)
>>>
>>>>   rename {platform/linux-generic/test =>
>>>>
>>> test/platform/linux-generic}/ring/ring_suites.h (100%)
>>>
>>>>   rename {platform/linux-generic/test =>
>>>>
>>> test/platform/linux-generic}/run-test (100%)
>>>
>>>>   rename {platform/linux-generic/test =>
>>>>
>>> test/platform/linux-generic}/shmem/.gitignore (100%)
>>>
>>>>   rename {platform/linux-generic/test =>
>>>>
>>> test/platform/linux-generic}/shmem/Makefile.am (100%)
>>>
>>>>   rename {platform/linux-generic/test =>
>>>>
>>> test/platform/linux-generic}/shmem/shmem.h (100%)
>>>
>>>>   rename {platform/linux-generic/test =>
>>>>
>>> test/platform/linux-generic}/shmem/shmem_common.h (100%)
>>>
>>>>   rename {platform/linux-generic/test =>
>>>>
>>> test/platform/linux-generic}/shmem/shmem_linux.c (100%)
>>>
>>>>   rename {platform/linux-generic/test =>
>>>>
>>> test/platform/linux-generic}/shmem/shmem_linux.h (100%)
>>>
>>>>   rename {platform/linux-generic/test =>
>>>>
>>> test/platform/linux-generic}/shmem/shmem_odp.c (100%)
>>>
>>>>   rename {platform/linux-generic/test =>
>>>>
>>> test/platform/linux-generic}/shmem/shmem_odp.h (100%)
>>>
>>>> diff --git a/Makefile.am b/Makefile.am
>>>> index 2129472..625748a 100644
>>>> --- a/Makefile.am
>>>> +++ b/Makefile.am
>>>> @@ -9,7 +9,6 @@ AM_DISTCHECK_CONFIGURE_FLAGS = --enable-test-cpp \
>>>>   SUBDIRS = @platform_with_platform@ \
>>>>          helper \
>>>>          test \
>>>> -       @platform_with_platform_test@ \
>>>>          helper/test \
>>>>          doc \
>>>>          example \
>>>> diff --git a/configure.ac b/configure.ac
>>>> index c87755b..f3952db 100644
>>>> --- a/configure.ac
>>>> +++ b/configure.ac
>>>> @@ -107,7 +107,6 @@ AC_ARG_WITH([platform],
>>>>
>>>>   AC_SUBST([with_platform])
>>>>   AC_SUBST([platform_with_platform], ["platform/${with_platform}"])
>>>> -AC_SUBST([platform_with_platform_test],
>>>>
>>> ["platform/${with_platform}/test"])
>>>
>>>>
>>>>
>>> ##########################################################################
>>>
>>>>   # Run platform specific checks and settings
>>>> @@ -116,6 +115,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])
>>>>       IMPLEMENTATION_NAME="odp-linux"
>>>>   else
>>>>       echo "UNSUPPORTED PLATFORM: ${with_platform}"
>>>> diff --git a/platform/linux-generic/m4/configure.m4
>>>>
>>> b/platform/linux-generic/m4/configure.m4
>>>
>>>> index 5380046..1b1b883 100644
>>>> --- a/platform/linux-generic/m4/configure.m4
>>>> +++ b/platform/linux-generic/m4/configure.m4
>>>> @@ -36,9 +36,4 @@ m4_include([platform/linux-generic/m4/odp_dpdk.m4])
>>>>   m4_include([platform/linux-generic/m4/odp_ipc.m4])
>>>>   m4_include([platform/linux-generic/m4/odp_schedule.m4])
>>>>
>>>> -AC_CONFIG_FILES([platform/linux-generic/Makefile
>>>> -              platform/linux-generic/test/Makefile
>>>> -              platform/linux-generic/test/shmem/Makefile
>>>> -              platform/linux-generic/test/pktio/Makefile
>>>> -              platform/linux-generic/test/pktio_ipc/Makefile
>>>> -              platform/linux-generic/test/ring/Makefile])
>>>> +AC_CONFIG_FILES([platform/linux-generic/Makefile])
>>>> diff --git a/test/Makefile.am b/test/Makefile.am
>>>> index 4a75364..8bab8fd 100644
>>>> --- a/test/Makefile.am
>>>> +++ b/test/Makefile.am
>>>> @@ -1,5 +1,5 @@
>>>>   SUBDIRS = performance miscellaneous
>>>>
>>>>   if cunit_support
>>>> -    SUBDIRS += validation
>>>> +    SUBDIRS += validation @platform_with_platform@
>>>>   endif
>>>> diff --git a/test/performance/odp_l2fwd_run.sh
>>>>
>>> b/test/performance/odp_l2fwd_run.sh
>>>
>>>> index cab97a8..fc3d05d 100755
>>>> --- a/test/performance/odp_l2fwd_run.sh
>>>> +++ b/test/performance/odp_l2fwd_run.sh
>>>> @@ -37,8 +37,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/test/pktio/pktio_env ]; then
>>>
>>>> -     .
>>>> ${TEST_SRC_DIR}/../../platform/$ODP_PLATFORM/test/pktio/pktio_env
>>>> +elif [ -f ${TEST_SRC_DIR}/../platform/$ODP_PLATFORM/pktio/pktio_env ];
>>>>
>>> then
>>>
>>>> +     . ${TEST_SRC_DIR}/../platform/$ODP_PLATFORM/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."
>>>
>>>> diff --git a/platform/linux-generic/test/.gitignore
>>>>
>>> b/test/platform/linux-generic/.gitignore
>>>
>>>> similarity index 100%
>>>> rename from platform/linux-generic/test/.gitignore
>>>> rename to test/platform/linux-generic/.gitignore
>>>> diff --git a/platform/linux-generic/test/Makefile.am
>>>>
>>> b/test/platform/linux-generic/Makefile.am
>>>
>>>> similarity index 100%
>>>> rename from platform/linux-generic/test/Makefile.am
>>>> rename to test/platform/linux-generic/Makefile.am
>>>> diff --git a/platform/linux-generic/test/Makefile.inc
>>>>
>>> b/test/platform/linux-generic/Makefile.inc
>>>
>>>> similarity index 100%
>>>> rename from platform/linux-generic/test/Makefile.inc
>>>> rename to test/platform/linux-generic/Makefile.inc
>>>> diff --git a/test/platform/linux-generic/m4/configure.m4
>>>>
>>> b/test/platform/linux-generic/m4/configure.m4
>>>
>>>> new file mode 100644
>>>> index 0000000..8c3db21
>>>> --- /dev/null
>>>> +++ b/test/platform/linux-generic/m4/configure.m4
>>>> @@ -0,0 +1,5 @@
>>>> +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])
>>>> diff --git a/platform/linux-generic/test/pktio/.gitignore
>>>>
>>> b/test/platform/linux-generic/pktio/.gitignore
>>>
>>>> similarity index 100%
>>>> rename from platform/linux-generic/test/pktio/.gitignore
>>>> rename to test/platform/linux-generic/pktio/.gitignore
>>>> diff --git a/platform/linux-generic/test/pktio/Makefile.am
>>>>
>>> b/test/platform/linux-generic/pktio/Makefile.am
>>>
>>>> similarity index 100%
>>>> rename from platform/linux-generic/test/pktio/Makefile.am
>>>> rename to test/platform/linux-generic/pktio/Makefile.am
>>>> diff --git a/platform/linux-generic/test/pktio/pktio_env
>>>>
>>> b/test/platform/linux-generic/pktio/pktio_env
>>>
>>>> similarity index 100%
>>>> rename from platform/linux-generic/test/pktio/pktio_env
>>>> rename to test/platform/linux-generic/pktio/pktio_env
>>>> diff --git a/platform/linux-generic/test/pktio/pktio_run.sh
>>>>
>>> b/test/platform/linux-generic/pktio/pktio_run.sh
>>>
>>>> similarity index 96%
>>>> rename from platform/linux-generic/test/pktio/pktio_run.sh
>>>> rename to test/platform/linux-generic/pktio/pktio_run.sh
>>>> index 1dc1f44..b5a1667 100755
>>>> --- a/platform/linux-generic/test/pktio/pktio_run.sh
>>>> +++ b/test/platform/linux-generic/pktio/pktio_run.sh
>>>> @@ -46,7 +46,8 @@ elif [ -f ${TEST_SRC_DIR}/pktio_env ]; then
>>>>        . ${TEST_SRC_DIR}/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."
>>>
>>>> +     echo "pktio_env has to be in current directory" \
>>>> +             "or in platform/\$ODP_PLATFORM/test."
>>>>        echo "ODP_PLATFORM=\"$ODP_PLATFORM\""
>>>>        exit 1
>>>>   fi
>>>> diff --git a/platform/linux-generic/test/pktio/pktio_run_dpdk.sh
>>>>
>>> b/test/platform/linux-generic/pktio/pktio_run_dpdk.sh
>>>
>>>> similarity index 90%
>>>> rename from platform/linux-generic/test/pktio/pktio_run_dpdk.sh
>>>> rename to test/platform/linux-generic/pktio/pktio_run_dpdk.sh
>>>> index fd552c6..2c52c6e 100755
>>>> --- a/platform/linux-generic/test/pktio/pktio_run_dpdk.sh
>>>> +++ b/test/platform/linux-generic/pktio/pktio_run_dpdk.sh
>>>> @@ -46,7 +46,8 @@ elif [ -f ${TEST_SRC_DIR}/pktio_env ]; then
>>>>        . ${TEST_SRC_DIR}/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."
>>>
>>>> +     echo "pktio_env has to be in current directory" \
>>>> +             "or in platform/\$ODP_PLATFORM/test."
>>>>        echo "ODP_PLATFORM=\"$ODP_PLATFORM\""
>>>>        exit 1
>>>>   fi
>>>> @@ -74,7 +75,9 @@ run()
>>>>
>>>>        if [ "$ODP_PKTIO_IF0" = "" ]; then
>>>>                setup_pktio_env clean
>>>> -             export ODP_PKTIO_DPDK_PARAMS="--vdev eth_pcap0,iface=$IF0
>>>>
>>> --vdev eth_pcap1,iface=$IF1"
>>>
>>>> +             IF0_PARAMS="--vdev eth_pcap0,iface=$IF0"
>>>> +             IF1_PARAMS="--vdev eth_pcap1,iface=$IF1"
>>>> +             export ODP_PKTIO_DPDK_PARAMS="$IF0_PARAMS $IF1_PARAMS"
>>>>
>>> Why these changes? how does it relate to the move?
>>>
>>> Christophe.
>>>
>>>                export ODP_PKTIO_IF0=0
>>>>                export ODP_PKTIO_IF1=1
>>>>        fi
>>>> diff --git a/platform/linux-generic/test/pktio/pktio_run_netmap.sh
>>>>
>>> b/test/platform/linux-generic/pktio/pktio_run_netmap.sh
>>>
>>>> similarity index 100%
>>>> rename from platform/linux-generic/test/pktio/pktio_run_netmap.sh
>>>> rename to test/platform/linux-generic/pktio/pktio_run_netmap.sh
>>>> diff --git a/platform/linux-generic/test/pktio/pktio_run_pcap.sh
>>>>
>>> b/test/platform/linux-generic/pktio/pktio_run_pcap.sh
>>>
>>>> similarity index 100%
>>>> rename from platform/linux-generic/test/pktio/pktio_run_pcap.sh
>>>> rename to test/platform/linux-generic/pktio/pktio_run_pcap.sh
>>>> diff --git a/platform/linux-generic/test/pktio/pktio_run_tap.sh
>>>>
>>> b/test/platform/linux-generic/pktio/pktio_run_tap.sh
>>>
>>>> similarity index 100%
>>>> rename from platform/linux-generic/test/pktio/pktio_run_tap.sh
>>>> rename to test/platform/linux-generic/pktio/pktio_run_tap.sh
>>>> diff --git a/platform/linux-generic/test/pktio_ipc/.gitignore
>>>>
>>> b/test/platform/linux-generic/pktio_ipc/.gitignore
>>>
>>>> similarity index 100%
>>>> rename from platform/linux-generic/test/pktio_ipc/.gitignore
>>>> rename to test/platform/linux-generic/pktio_ipc/.gitignore
>>>> diff --git a/platform/linux-generic/test/pktio_ipc/Makefile.am
>>>>
>>> b/test/platform/linux-generic/pktio_ipc/Makefile.am
>>>
>>>> similarity index 100%
>>>> rename from platform/linux-generic/test/pktio_ipc/Makefile.am
>>>> rename to test/platform/linux-generic/pktio_ipc/Makefile.am
>>>> diff --git a/platform/linux-generic/test/pktio_ipc/ipc_common.c
>>>>
>>> b/test/platform/linux-generic/pktio_ipc/ipc_common.c
>>>
>>>> similarity index 100%
>>>> rename from platform/linux-generic/test/pktio_ipc/ipc_common.c
>>>> rename to test/platform/linux-generic/pktio_ipc/ipc_common.c
>>>> diff --git a/platform/linux-generic/test/pktio_ipc/ipc_common.h
>>>>
>>> b/test/platform/linux-generic/pktio_ipc/ipc_common.h
>>>
>>>> similarity index 100%
>>>> rename from platform/linux-generic/test/pktio_ipc/ipc_common.h
>>>> rename to test/platform/linux-generic/pktio_ipc/ipc_common.h
>>>> diff --git a/platform/linux-generic/test/pktio_ipc/pktio_ipc1.c
>>>>
>>> b/test/platform/linux-generic/pktio_ipc/pktio_ipc1.c
>>>
>>>> similarity index 100%
>>>> rename from platform/linux-generic/test/pktio_ipc/pktio_ipc1.c
>>>> rename to test/platform/linux-generic/pktio_ipc/pktio_ipc1.c
>>>> diff --git a/platform/linux-generic/test/pktio_ipc/pktio_ipc2.c
>>>>
>>> b/test/platform/linux-generic/pktio_ipc/pktio_ipc2.c
>>>
>>>> similarity index 100%
>>>> rename from platform/linux-generic/test/pktio_ipc/pktio_ipc2.c
>>>> rename to test/platform/linux-generic/pktio_ipc/pktio_ipc2.c
>>>> diff --git a/platform/linux-generic/test/pktio_ipc/pktio_ipc_run.sh
>>>>
>>> b/test/platform/linux-generic/pktio_ipc/pktio_ipc_run.sh
>>>
>>>> similarity index 100%
>>>> rename from platform/linux-generic/test/pktio_ipc/pktio_ipc_run.sh
>>>> rename to test/platform/linux-generic/pktio_ipc/pktio_ipc_run.sh
>>>> diff --git a/platform/linux-generic/test/ring/.gitignore
>>>>
>>> b/test/platform/linux-generic/ring/.gitignore
>>>
>>>> similarity index 100%
>>>> rename from platform/linux-generic/test/ring/.gitignore
>>>> rename to test/platform/linux-generic/ring/.gitignore
>>>> diff --git a/platform/linux-generic/test/ring/Makefile.am
>>>>
>>> b/test/platform/linux-generic/ring/Makefile.am
>>>
>>>> similarity index 100%
>>>> rename from platform/linux-generic/test/ring/Makefile.am
>>>> rename to test/platform/linux-generic/ring/Makefile.am
>>>> diff --git a/platform/linux-generic/test/ring/ring_basic.c
>>>>
>>> b/test/platform/linux-generic/ring/ring_basic.c
>>>
>>>> similarity index 100%
>>>> rename from platform/linux-generic/test/ring/ring_basic.c
>>>> rename to test/platform/linux-generic/ring/ring_basic.c
>>>> diff --git a/platform/linux-generic/test/ring/ring_main.c
>>>>
>>> b/test/platform/linux-generic/ring/ring_main.c
>>>
>>>> similarity index 100%
>>>> rename from platform/linux-generic/test/ring/ring_main.c
>>>> rename to test/platform/linux-generic/ring/ring_main.c
>>>> diff --git a/platform/linux-generic/test/ring/ring_stress.c
>>>>
>>> b/test/platform/linux-generic/ring/ring_stress.c
>>>
>>>> similarity index 100%
>>>> rename from platform/linux-generic/test/ring/ring_stress.c
>>>> rename to test/platform/linux-generic/ring/ring_stress.c
>>>> diff --git a/platform/linux-generic/test/ring/ring_suites.c
>>>>
>>> b/test/platform/linux-generic/ring/ring_suites.c
>>>
>>>> similarity index 100%
>>>> rename from platform/linux-generic/test/ring/ring_suites.c
>>>> rename to test/platform/linux-generic/ring/ring_suites.c
>>>> diff --git a/platform/linux-generic/test/ring/ring_suites.h
>>>>
>>> b/test/platform/linux-generic/ring/ring_suites.h
>>>
>>>> similarity index 100%
>>>> rename from platform/linux-generic/test/ring/ring_suites.h
>>>> rename to test/platform/linux-generic/ring/ring_suites.h
>>>> diff --git a/platform/linux-generic/test/run-test
>>>>
>>> b/test/platform/linux-generic/run-test
>>>
>>>> similarity index 100%
>>>> rename from platform/linux-generic/test/run-test
>>>> rename to test/platform/linux-generic/run-test
>>>> diff --git a/platform/linux-generic/test/shmem/.gitignore
>>>>
>>> b/test/platform/linux-generic/shmem/.gitignore
>>>
>>>> similarity index 100%
>>>> rename from platform/linux-generic/test/shmem/.gitignore
>>>> rename to test/platform/linux-generic/shmem/.gitignore
>>>> diff --git a/platform/linux-generic/test/shmem/Makefile.am
>>>>
>>> b/test/platform/linux-generic/shmem/Makefile.am
>>>
>>>> similarity index 100%
>>>> rename from platform/linux-generic/test/shmem/Makefile.am
>>>> rename to test/platform/linux-generic/shmem/Makefile.am
>>>> diff --git a/platform/linux-generic/test/shmem/shmem.h
>>>>
>>> b/test/platform/linux-generic/shmem/shmem.h
>>>
>>>> similarity index 100%
>>>> rename from platform/linux-generic/test/shmem/shmem.h
>>>> rename to test/platform/linux-generic/shmem/shmem.h
>>>> diff --git a/platform/linux-generic/test/shmem/shmem_common.h
>>>>
>>> b/test/platform/linux-generic/shmem/shmem_common.h
>>>
>>>> similarity index 100%
>>>> rename from platform/linux-generic/test/shmem/shmem_common.h
>>>> rename to test/platform/linux-generic/shmem/shmem_common.h
>>>> diff --git a/platform/linux-generic/test/shmem/shmem_linux.c
>>>>
>>> b/test/platform/linux-generic/shmem/shmem_linux.c
>>>
>>>> similarity index 100%
>>>> rename from platform/linux-generic/test/shmem/shmem_linux.c
>>>> rename to test/platform/linux-generic/shmem/shmem_linux.c
>>>> diff --git a/platform/linux-generic/test/shmem/shmem_linux.h
>>>>
>>> b/test/platform/linux-generic/shmem/shmem_linux.h
>>>
>>>> similarity index 100%
>>>> rename from platform/linux-generic/test/shmem/shmem_linux.h
>>>> rename to test/platform/linux-generic/shmem/shmem_linux.h
>>>> diff --git a/platform/linux-generic/test/shmem/shmem_odp.c
>>>>
>>> b/test/platform/linux-generic/shmem/shmem_odp.c
>>>
>>>> similarity index 100%
>>>> rename from platform/linux-generic/test/shmem/shmem_odp.c
>>>> rename to test/platform/linux-generic/shmem/shmem_odp.c
>>>> diff --git a/platform/linux-generic/test/shmem/shmem_odp.h
>>>>
>>> b/test/platform/linux-generic/shmem/shmem_odp.h
>>>
>>>> similarity index 100%
>>>> rename from platform/linux-generic/test/shmem/shmem_odp.h
>>>> rename to test/platform/linux-generic/shmem/shmem_odp.h
>>>> --
>>>> 2.7.4
>>>>
>>>> _______________________________________________
>> lng-odp mailing list
>> lng-odp@lists.linaro.org
>> https://lists.linaro.org/mailman/listinfo/lng-odp
>>
>
> _______________________________________________
> lng-odp mailing list
> lng-odp@lists.linaro.org
> https://lists.linaro.org/mailman/listinfo/lng-odp
>
Maxim Uvarov June 20, 2016, 10:14 a.m. UTC | #6
On 06/20/16 12:38, Yi He wrote:
> Hi, Maxim
>
> I think this should be one patch, the reason is:
>
> they are not independent changes, this one is just like I wrote a 
> patch, and checked with ./checkpatch.pl <http://checkpatch.pl>, fixed 
> reported issues and then sent it out.
>
> Only in case separate patches fixes unrelated problems and all 
> triggers no ./checkpatch.pl <http://checkpatch.pl> warnings, then it 
> is the case we separate them right?
>
> But this case is that if we separate them, one will always trigger 
> warnings and another only to fix these warnings.
>
> Thanks and best regards, Yi
>

In current case it's quite strange that you see warnings with 
checkpatch. If you specified -M option then there has
to be simple move and all file context has to be hidden and checkpatch 
should not see these lines....

Maxim.


> On 20 June 2016 at 16:48, Maxim Uvarov <maxim.uvarov@linaro.org 
> <mailto:maxim.uvarov@linaro.org>> wrote:
>
>     On 06/17/16 11:33, Yi He wrote:
>
>         Hi, Christophe
>
>         This is to mitigate the checkpatch.pl <http://checkpatch.pl>
>         warning "line exceeds 80 characters".
>
>
>     Agree with Christophe, you should always separate such changes.
>     Simple move should be in separate patch.
>     And fixes even if they are very small, have to in also in separate
>     patch.
>
>     Maxim.
>
>
>         On 17 June 2016 at 17:23, Christophe Milard
>         <christophe.milard@linaro.org
>         <mailto:christophe.milard@linaro.org>>
>         wrote:
>
>             On 2016-06-17 06:10, Yi He wrote:
>
>                 Move platform tests from odp/platform/linux-generic/test
>                 into test suite at odp/test/platform/linux-generic.
>
>                 Signed-off-by: Yi He <yi.he@linaro.org
>                 <mailto:yi.he@linaro.org>>
>                 ---
>                 v4 restore the invocation of general validation tests:
>                 The Validation tests HAVE to be called from the
>                 platform side!!
>                 That enables for individual platforms to define
>                 wrappers around tests:
>                 If You run the validation tests from the validation
>                 side, any platforms
>                 which needs to have a little twik (e.g. a specific
>                 setup, or soon, tests
>
>             args)
>
>                 will be stuck.
>
>                 The patch only contains: the move, a new configure.m4
>                 and minor changes
>                 in scripts to mitigate checkpatch.pl
>                 <http://checkpatch.pl> warnings and one search path
>
>             update.
>
>                   Makefile.am                   | 1 -
>                 configure.ac <http://configure.ac>                    
>                                    | 2
>
>             +-
>
>                   platform/linux-generic/m4/configure.m4              
>                      | 7
>
>             +------
>
>                   test/Makefile.am                    | 2
>
>             +-
>
>                   test/performance/odp_l2fwd_run.sh                   | 4
>
>             ++--
>
>                   .../linux-generic/test =>
>                 test/platform/linux-generic}/.gitignore  | 0
>                   .../linux-generic/test =>
>                 test/platform/linux-generic}/Makefile.am | 0
>                   .../test =>
>                 test/platform/linux-generic}/Makefile.inc     | 0
>                   test/platform/linux-generic/m4/configure.m4        
>                           | 5
>
>             +++++
>
>                   .../test =>
>                 test/platform/linux-generic}/pktio/.gitignore     | 0
>                   .../test =>
>                 test/platform/linux-generic}/pktio/Makefile.am      | 0
>                   .../test =>
>                 test/platform/linux-generic}/pktio/pktio_env      | 0
>                   .../test =>
>                 test/platform/linux-generic}/pktio/pktio_run.sh     | 3
>
>             ++-
>
>                   .../test =>
>                 test/platform/linux-generic}/pktio/pktio_run_dpdk.sh  | 7
>
>             +++++--
>
>                   .../test =>
>                 test/platform/linux-generic}/pktio/pktio_run_netmap.sh | 0
>                   .../test =>
>                 test/platform/linux-generic}/pktio/pktio_run_pcap.sh  | 0
>                   .../test =>
>                 test/platform/linux-generic}/pktio/pktio_run_tap.sh   | 0
>                   .../test =>
>                 test/platform/linux-generic}/pktio_ipc/.gitignore     | 0
>                   .../test =>
>                 test/platform/linux-generic}/pktio_ipc/Makefile.am    | 0
>                   .../test =>
>                 test/platform/linux-generic}/pktio_ipc/ipc_common.c   | 0
>                   .../test =>
>                 test/platform/linux-generic}/pktio_ipc/ipc_common.h   | 0
>                   .../test =>
>                 test/platform/linux-generic}/pktio_ipc/pktio_ipc1.c   | 0
>                   .../test =>
>                 test/platform/linux-generic}/pktio_ipc/pktio_ipc2.c   | 0
>                 .../platform/linux-generic}/pktio_ipc/pktio_ipc_run.sh
>                            | 0
>                   .../test =>
>                 test/platform/linux-generic}/ring/.gitignore      | 0
>                   .../test =>
>                 test/platform/linux-generic}/ring/Makefile.am     | 0
>                   .../test =>
>                 test/platform/linux-generic}/ring/ring_basic.c      | 0
>                   .../test =>
>                 test/platform/linux-generic}/ring/ring_main.c     | 0
>                   .../test =>
>                 test/platform/linux-generic}/ring/ring_stress.c     | 0
>                   .../test =>
>                 test/platform/linux-generic}/ring/ring_suites.c     | 0
>                   .../test =>
>                 test/platform/linux-generic}/ring/ring_suites.h     | 0
>                   .../linux-generic/test =>
>                 test/platform/linux-generic}/run-test    | 0
>                   .../test =>
>                 test/platform/linux-generic}/shmem/.gitignore     | 0
>                   .../test =>
>                 test/platform/linux-generic}/shmem/Makefile.am      | 0
>                   .../test =>
>                 test/platform/linux-generic}/shmem/shmem.h      | 0
>                   .../test =>
>                 test/platform/linux-generic}/shmem/shmem_common.h     | 0
>                   .../test =>
>                 test/platform/linux-generic}/shmem/shmem_linux.c      | 0
>                   .../test =>
>                 test/platform/linux-generic}/shmem/shmem_linux.h      | 0
>                   .../test =>
>                 test/platform/linux-generic}/shmem/shmem_odp.c      | 0
>                   .../test =>
>                 test/platform/linux-generic}/shmem/shmem_odp.h      | 0
>                   40 files changed, 17 insertions(+), 14 deletions(-)
>                   rename {platform/linux-generic/test =>
>
>             test/platform/linux-generic}/.gitignore (100%)
>
>                   rename {platform/linux-generic/test =>
>
>             test/platform/linux-generic}/Makefile.am (100%)
>
>                   rename {platform/linux-generic/test =>
>
>             test/platform/linux-generic}/Makefile.inc (100%)
>
>                   create mode 100644
>                 test/platform/linux-generic/m4/configure.m4
>                   rename {platform/linux-generic/test =>
>
>             test/platform/linux-generic}/pktio/.gitignore (100%)
>
>                   rename {platform/linux-generic/test =>
>
>             test/platform/linux-generic}/pktio/Makefile.am (100%)
>
>                   rename {platform/linux-generic/test =>
>
>             test/platform/linux-generic}/pktio/pktio_env (100%)
>
>                   rename {platform/linux-generic/test =>
>
>             test/platform/linux-generic}/pktio/pktio_run.sh (96%)
>
>                   rename {platform/linux-generic/test =>
>
>             test/platform/linux-generic}/pktio/pktio_run_dpdk.sh (90%)
>
>                   rename {platform/linux-generic/test =>
>
>             test/platform/linux-generic}/pktio/pktio_run_netmap.sh (100%)
>
>                   rename {platform/linux-generic/test =>
>
>             test/platform/linux-generic}/pktio/pktio_run_pcap.sh (100%)
>
>                   rename {platform/linux-generic/test =>
>
>             test/platform/linux-generic}/pktio/pktio_run_tap.sh (100%)
>
>                   rename {platform/linux-generic/test =>
>
>             test/platform/linux-generic}/pktio_ipc/.gitignore (100%)
>
>                   rename {platform/linux-generic/test =>
>
>             test/platform/linux-generic}/pktio_ipc/Makefile.am (100%)
>
>                   rename {platform/linux-generic/test =>
>
>             test/platform/linux-generic}/pktio_ipc/ipc_common.c (100%)
>
>                   rename {platform/linux-generic/test =>
>
>             test/platform/linux-generic}/pktio_ipc/ipc_common.h (100%)
>
>                   rename {platform/linux-generic/test =>
>
>             test/platform/linux-generic}/pktio_ipc/pktio_ipc1.c (100%)
>
>                   rename {platform/linux-generic/test =>
>
>             test/platform/linux-generic}/pktio_ipc/pktio_ipc2.c (100%)
>
>                   rename {platform/linux-generic/test =>
>
>             test/platform/linux-generic}/pktio_ipc/pktio_ipc_run.sh (100%)
>
>                   rename {platform/linux-generic/test =>
>
>             test/platform/linux-generic}/ring/.gitignore (100%)
>
>                   rename {platform/linux-generic/test =>
>
>             test/platform/linux-generic}/ring/Makefile.am (100%)
>
>                   rename {platform/linux-generic/test =>
>
>             test/platform/linux-generic}/ring/ring_basic.c (100%)
>
>                   rename {platform/linux-generic/test =>
>
>             test/platform/linux-generic}/ring/ring_main.c (100%)
>
>                   rename {platform/linux-generic/test =>
>
>             test/platform/linux-generic}/ring/ring_stress.c (100%)
>
>                   rename {platform/linux-generic/test =>
>
>             test/platform/linux-generic}/ring/ring_suites.c (100%)
>
>                   rename {platform/linux-generic/test =>
>
>             test/platform/linux-generic}/ring/ring_suites.h (100%)
>
>                   rename {platform/linux-generic/test =>
>
>             test/platform/linux-generic}/run-test (100%)
>
>                   rename {platform/linux-generic/test =>
>
>             test/platform/linux-generic}/shmem/.gitignore (100%)
>
>                   rename {platform/linux-generic/test =>
>
>             test/platform/linux-generic}/shmem/Makefile.am (100%)
>
>                   rename {platform/linux-generic/test =>
>
>             test/platform/linux-generic}/shmem/shmem.h (100%)
>
>                   rename {platform/linux-generic/test =>
>
>             test/platform/linux-generic}/shmem/shmem_common.h (100%)
>
>                   rename {platform/linux-generic/test =>
>
>             test/platform/linux-generic}/shmem/shmem_linux.c (100%)
>
>                   rename {platform/linux-generic/test =>
>
>             test/platform/linux-generic}/shmem/shmem_linux.h (100%)
>
>                   rename {platform/linux-generic/test =>
>
>             test/platform/linux-generic}/shmem/shmem_odp.c (100%)
>
>                   rename {platform/linux-generic/test =>
>
>             test/platform/linux-generic}/shmem/shmem_odp.h (100%)
>
>                 diff --git a/Makefile.am b/Makefile.am
>                 index 2129472..625748a 100644
>                 --- a/Makefile.am
>                 +++ b/Makefile.am
>                 @@ -9,7 +9,6 @@ AM_DISTCHECK_CONFIGURE_FLAGS =
>                 --enable-test-cpp \
>                   SUBDIRS = @platform_with_platform@ \
>                          helper \
>                          test \
>                 -       @platform_with_platform_test@ \
>                          helper/test \
>                          doc \
>                          example \
>                 diff --git a/configure.ac <http://configure.ac>
>                 b/configure.ac <http://configure.ac>
>                 index c87755b..f3952db 100644
>                 --- a/configure.ac <http://configure.ac>
>                 +++ b/configure.ac <http://configure.ac>
>                 @@ -107,7 +107,6 @@ AC_ARG_WITH([platform],
>
>                   AC_SUBST([with_platform])
>                   AC_SUBST([platform_with_platform],
>                 ["platform/${with_platform}"])
>                 -AC_SUBST([platform_with_platform_test],
>
>             ["platform/${with_platform}/test"])
>
>
>             ##########################################################################
>
>                   # Run platform specific checks and settings
>                 @@ -116,6 +115,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])
>                       IMPLEMENTATION_NAME="odp-linux"
>                   else
>                       echo "UNSUPPORTED PLATFORM: ${with_platform}"
>                 diff --git a/platform/linux-generic/m4/configure.m4
>
>             b/platform/linux-generic/m4/configure.m4
>
>                 index 5380046..1b1b883 100644
>                 --- a/platform/linux-generic/m4/configure.m4
>                 +++ b/platform/linux-generic/m4/configure.m4
>                 @@ -36,9 +36,4 @@
>                 m4_include([platform/linux-generic/m4/odp_dpdk.m4])
>                 m4_include([platform/linux-generic/m4/odp_ipc.m4])
>                 m4_include([platform/linux-generic/m4/odp_schedule.m4])
>
>                 -AC_CONFIG_FILES([platform/linux-generic/Makefile
>                 - platform/linux-generic/test/Makefile
>                 - platform/linux-generic/test/shmem/Makefile
>                 - platform/linux-generic/test/pktio/Makefile
>                 - platform/linux-generic/test/pktio_ipc/Makefile
>                 - platform/linux-generic/test/ring/Makefile])
>                 +AC_CONFIG_FILES([platform/linux-generic/Makefile])
>                 diff --git a/test/Makefile.am b/test/Makefile.am
>                 index 4a75364..8bab8fd 100644
>                 --- a/test/Makefile.am
>                 +++ b/test/Makefile.am
>                 @@ -1,5 +1,5 @@
>                   SUBDIRS = performance miscellaneous
>
>                   if cunit_support
>                 -    SUBDIRS += validation
>                 +    SUBDIRS += validation @platform_with_platform@
>                   endif
>                 diff --git a/test/performance/odp_l2fwd_run.sh
>
>             b/test/performance/odp_l2fwd_run.sh
>
>                 index cab97a8..fc3d05d 100755
>                 --- a/test/performance/odp_l2fwd_run.sh
>                 +++ b/test/performance/odp_l2fwd_run.sh
>                 @@ -37,8 +37,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/test/pktio/pktio_env
>             ]; then
>
>                 -     .
>                 ${TEST_SRC_DIR}/../../platform/$ODP_PLATFORM/test/pktio/pktio_env
>                 +elif [ -f
>                 ${TEST_SRC_DIR}/../platform/$ODP_PLATFORM/pktio/pktio_env
>                 ];
>
>             then
>
>                 +     .
>                 ${TEST_SRC_DIR}/../platform/$ODP_PLATFORM/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."
>
>                 diff --git a/platform/linux-generic/test/.gitignore
>
>             b/test/platform/linux-generic/.gitignore
>
>                 similarity index 100%
>                 rename from platform/linux-generic/test/.gitignore
>                 rename to test/platform/linux-generic/.gitignore
>                 diff --git a/platform/linux-generic/test/Makefile.am
>
>             b/test/platform/linux-generic/Makefile.am
>
>                 similarity index 100%
>                 rename from platform/linux-generic/test/Makefile.am
>                 rename to test/platform/linux-generic/Makefile.am
>                 diff --git a/platform/linux-generic/test/Makefile.inc
>
>             b/test/platform/linux-generic/Makefile.inc
>
>                 similarity index 100%
>                 rename from platform/linux-generic/test/Makefile.inc
>                 rename to test/platform/linux-generic/Makefile.inc
>                 diff --git a/test/platform/linux-generic/m4/configure.m4
>
>             b/test/platform/linux-generic/m4/configure.m4
>
>                 new file mode 100644
>                 index 0000000..8c3db21
>                 --- /dev/null
>                 +++ b/test/platform/linux-generic/m4/configure.m4
>                 @@ -0,0 +1,5 @@
>                 +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])
>                 diff --git a/platform/linux-generic/test/pktio/.gitignore
>
>             b/test/platform/linux-generic/pktio/.gitignore
>
>                 similarity index 100%
>                 rename from platform/linux-generic/test/pktio/.gitignore
>                 rename to test/platform/linux-generic/pktio/.gitignore
>                 diff --git a/platform/linux-generic/test/pktio/Makefile.am
>
>             b/test/platform/linux-generic/pktio/Makefile.am
>
>                 similarity index 100%
>                 rename from platform/linux-generic/test/pktio/Makefile.am
>                 rename to test/platform/linux-generic/pktio/Makefile.am
>                 diff --git a/platform/linux-generic/test/pktio/pktio_env
>
>             b/test/platform/linux-generic/pktio/pktio_env
>
>                 similarity index 100%
>                 rename from platform/linux-generic/test/pktio/pktio_env
>                 rename to test/platform/linux-generic/pktio/pktio_env
>                 diff --git
>                 a/platform/linux-generic/test/pktio/pktio_run.sh
>
>             b/test/platform/linux-generic/pktio/pktio_run.sh
>
>                 similarity index 96%
>                 rename from platform/linux-generic/test/pktio/pktio_run.sh
>                 rename to test/platform/linux-generic/pktio/pktio_run.sh
>                 index 1dc1f44..b5a1667 100755
>                 --- a/platform/linux-generic/test/pktio/pktio_run.sh
>                 +++ b/test/platform/linux-generic/pktio/pktio_run.sh
>                 @@ -46,7 +46,8 @@ elif [ -f ${TEST_SRC_DIR}/pktio_env
>                 ]; then
>                        . ${TEST_SRC_DIR}/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."
>
>                 +     echo "pktio_env has to be in current directory" \
>                 +             "or in platform/\$ODP_PLATFORM/test."
>                        echo "ODP_PLATFORM=\"$ODP_PLATFORM\""
>                        exit 1
>                   fi
>                 diff --git
>                 a/platform/linux-generic/test/pktio/pktio_run_dpdk.sh
>
>             b/test/platform/linux-generic/pktio/pktio_run_dpdk.sh
>
>                 similarity index 90%
>                 rename from
>                 platform/linux-generic/test/pktio/pktio_run_dpdk.sh
>                 rename to
>                 test/platform/linux-generic/pktio/pktio_run_dpdk.sh
>                 index fd552c6..2c52c6e 100755
>                 --- a/platform/linux-generic/test/pktio/pktio_run_dpdk.sh
>                 +++ b/test/platform/linux-generic/pktio/pktio_run_dpdk.sh
>                 @@ -46,7 +46,8 @@ elif [ -f ${TEST_SRC_DIR}/pktio_env
>                 ]; then
>                        . ${TEST_SRC_DIR}/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."
>
>                 +     echo "pktio_env has to be in current directory" \
>                 +             "or in platform/\$ODP_PLATFORM/test."
>                        echo "ODP_PLATFORM=\"$ODP_PLATFORM\""
>                        exit 1
>                   fi
>                 @@ -74,7 +75,9 @@ run()
>
>                        if [ "$ODP_PKTIO_IF0" = "" ]; then
>                                setup_pktio_env clean
>                 -             export ODP_PKTIO_DPDK_PARAMS="--vdev
>                 eth_pcap0,iface=$IF0
>
>             --vdev eth_pcap1,iface=$IF1"
>
>                 +             IF0_PARAMS="--vdev eth_pcap0,iface=$IF0"
>                 +             IF1_PARAMS="--vdev eth_pcap1,iface=$IF1"
>                 +             export
>                 ODP_PKTIO_DPDK_PARAMS="$IF0_PARAMS $IF1_PARAMS"
>
>             Why these changes? how does it relate to the move?
>
>             Christophe.
>
>                                export ODP_PKTIO_IF0=0
>                                export ODP_PKTIO_IF1=1
>                        fi
>                 diff --git
>                 a/platform/linux-generic/test/pktio/pktio_run_netmap.sh
>
>             b/test/platform/linux-generic/pktio/pktio_run_netmap.sh
>
>                 similarity index 100%
>                 rename from
>                 platform/linux-generic/test/pktio/pktio_run_netmap.sh
>                 rename to
>                 test/platform/linux-generic/pktio/pktio_run_netmap.sh
>                 diff --git
>                 a/platform/linux-generic/test/pktio/pktio_run_pcap.sh
>
>             b/test/platform/linux-generic/pktio/pktio_run_pcap.sh
>
>                 similarity index 100%
>                 rename from
>                 platform/linux-generic/test/pktio/pktio_run_pcap.sh
>                 rename to
>                 test/platform/linux-generic/pktio/pktio_run_pcap.sh
>                 diff --git
>                 a/platform/linux-generic/test/pktio/pktio_run_tap.sh
>
>             b/test/platform/linux-generic/pktio/pktio_run_tap.sh
>
>                 similarity index 100%
>                 rename from
>                 platform/linux-generic/test/pktio/pktio_run_tap.sh
>                 rename to
>                 test/platform/linux-generic/pktio/pktio_run_tap.sh
>                 diff --git
>                 a/platform/linux-generic/test/pktio_ipc/.gitignore
>
>             b/test/platform/linux-generic/pktio_ipc/.gitignore
>
>                 similarity index 100%
>                 rename from
>                 platform/linux-generic/test/pktio_ipc/.gitignore
>                 rename to test/platform/linux-generic/pktio_ipc/.gitignore
>                 diff --git
>                 a/platform/linux-generic/test/pktio_ipc/Makefile.am
>
>             b/test/platform/linux-generic/pktio_ipc/Makefile.am
>
>                 similarity index 100%
>                 rename from
>                 platform/linux-generic/test/pktio_ipc/Makefile.am
>                 rename to
>                 test/platform/linux-generic/pktio_ipc/Makefile.am
>                 diff --git
>                 a/platform/linux-generic/test/pktio_ipc/ipc_common.c
>
>             b/test/platform/linux-generic/pktio_ipc/ipc_common.c
>
>                 similarity index 100%
>                 rename from
>                 platform/linux-generic/test/pktio_ipc/ipc_common.c
>                 rename to
>                 test/platform/linux-generic/pktio_ipc/ipc_common.c
>                 diff --git
>                 a/platform/linux-generic/test/pktio_ipc/ipc_common.h
>
>             b/test/platform/linux-generic/pktio_ipc/ipc_common.h
>
>                 similarity index 100%
>                 rename from
>                 platform/linux-generic/test/pktio_ipc/ipc_common.h
>                 rename to
>                 test/platform/linux-generic/pktio_ipc/ipc_common.h
>                 diff --git
>                 a/platform/linux-generic/test/pktio_ipc/pktio_ipc1.c
>
>             b/test/platform/linux-generic/pktio_ipc/pktio_ipc1.c
>
>                 similarity index 100%
>                 rename from
>                 platform/linux-generic/test/pktio_ipc/pktio_ipc1.c
>                 rename to
>                 test/platform/linux-generic/pktio_ipc/pktio_ipc1.c
>                 diff --git
>                 a/platform/linux-generic/test/pktio_ipc/pktio_ipc2.c
>
>             b/test/platform/linux-generic/pktio_ipc/pktio_ipc2.c
>
>                 similarity index 100%
>                 rename from
>                 platform/linux-generic/test/pktio_ipc/pktio_ipc2.c
>                 rename to
>                 test/platform/linux-generic/pktio_ipc/pktio_ipc2.c
>                 diff --git
>                 a/platform/linux-generic/test/pktio_ipc/pktio_ipc_run.sh
>
>             b/test/platform/linux-generic/pktio_ipc/pktio_ipc_run.sh
>
>                 similarity index 100%
>                 rename from
>                 platform/linux-generic/test/pktio_ipc/pktio_ipc_run.sh
>                 rename to
>                 test/platform/linux-generic/pktio_ipc/pktio_ipc_run.sh
>                 diff --git a/platform/linux-generic/test/ring/.gitignore
>
>             b/test/platform/linux-generic/ring/.gitignore
>
>                 similarity index 100%
>                 rename from platform/linux-generic/test/ring/.gitignore
>                 rename to test/platform/linux-generic/ring/.gitignore
>                 diff --git a/platform/linux-generic/test/ring/Makefile.am
>
>             b/test/platform/linux-generic/ring/Makefile.am
>
>                 similarity index 100%
>                 rename from platform/linux-generic/test/ring/Makefile.am
>                 rename to test/platform/linux-generic/ring/Makefile.am
>                 diff --git a/platform/linux-generic/test/ring/ring_basic.c
>
>             b/test/platform/linux-generic/ring/ring_basic.c
>
>                 similarity index 100%
>                 rename from platform/linux-generic/test/ring/ring_basic.c
>                 rename to test/platform/linux-generic/ring/ring_basic.c
>                 diff --git a/platform/linux-generic/test/ring/ring_main.c
>
>             b/test/platform/linux-generic/ring/ring_main.c
>
>                 similarity index 100%
>                 rename from platform/linux-generic/test/ring/ring_main.c
>                 rename to test/platform/linux-generic/ring/ring_main.c
>                 diff --git
>                 a/platform/linux-generic/test/ring/ring_stress.c
>
>             b/test/platform/linux-generic/ring/ring_stress.c
>
>                 similarity index 100%
>                 rename from platform/linux-generic/test/ring/ring_stress.c
>                 rename to test/platform/linux-generic/ring/ring_stress.c
>                 diff --git
>                 a/platform/linux-generic/test/ring/ring_suites.c
>
>             b/test/platform/linux-generic/ring/ring_suites.c
>
>                 similarity index 100%
>                 rename from platform/linux-generic/test/ring/ring_suites.c
>                 rename to test/platform/linux-generic/ring/ring_suites.c
>                 diff --git
>                 a/platform/linux-generic/test/ring/ring_suites.h
>
>             b/test/platform/linux-generic/ring/ring_suites.h
>
>                 similarity index 100%
>                 rename from platform/linux-generic/test/ring/ring_suites.h
>                 rename to test/platform/linux-generic/ring/ring_suites.h
>                 diff --git a/platform/linux-generic/test/run-test
>
>             b/test/platform/linux-generic/run-test
>
>                 similarity index 100%
>                 rename from platform/linux-generic/test/run-test
>                 rename to test/platform/linux-generic/run-test
>                 diff --git a/platform/linux-generic/test/shmem/.gitignore
>
>             b/test/platform/linux-generic/shmem/.gitignore
>
>                 similarity index 100%
>                 rename from platform/linux-generic/test/shmem/.gitignore
>                 rename to test/platform/linux-generic/shmem/.gitignore
>                 diff --git a/platform/linux-generic/test/shmem/Makefile.am
>
>             b/test/platform/linux-generic/shmem/Makefile.am
>
>                 similarity index 100%
>                 rename from platform/linux-generic/test/shmem/Makefile.am
>                 rename to test/platform/linux-generic/shmem/Makefile.am
>                 diff --git a/platform/linux-generic/test/shmem/shmem.h
>
>             b/test/platform/linux-generic/shmem/shmem.h
>
>                 similarity index 100%
>                 rename from platform/linux-generic/test/shmem/shmem.h
>                 rename to test/platform/linux-generic/shmem/shmem.h
>                 diff --git
>                 a/platform/linux-generic/test/shmem/shmem_common.h
>
>             b/test/platform/linux-generic/shmem/shmem_common.h
>
>                 similarity index 100%
>                 rename from
>                 platform/linux-generic/test/shmem/shmem_common.h
>                 rename to test/platform/linux-generic/shmem/shmem_common.h
>                 diff --git
>                 a/platform/linux-generic/test/shmem/shmem_linux.c
>
>             b/test/platform/linux-generic/shmem/shmem_linux.c
>
>                 similarity index 100%
>                 rename from
>                 platform/linux-generic/test/shmem/shmem_linux.c
>                 rename to test/platform/linux-generic/shmem/shmem_linux.c
>                 diff --git
>                 a/platform/linux-generic/test/shmem/shmem_linux.h
>
>             b/test/platform/linux-generic/shmem/shmem_linux.h
>
>                 similarity index 100%
>                 rename from
>                 platform/linux-generic/test/shmem/shmem_linux.h
>                 rename to test/platform/linux-generic/shmem/shmem_linux.h
>                 diff --git a/platform/linux-generic/test/shmem/shmem_odp.c
>
>             b/test/platform/linux-generic/shmem/shmem_odp.c
>
>                 similarity index 100%
>                 rename from platform/linux-generic/test/shmem/shmem_odp.c
>                 rename to test/platform/linux-generic/shmem/shmem_odp.c
>                 diff --git a/platform/linux-generic/test/shmem/shmem_odp.h
>
>             b/test/platform/linux-generic/shmem/shmem_odp.h
>
>                 similarity index 100%
>                 rename from platform/linux-generic/test/shmem/shmem_odp.h
>                 rename to test/platform/linux-generic/shmem/shmem_odp.h
>                 --
>                 2.7.4
>
>         _______________________________________________
>         lng-odp mailing list
>         lng-odp@lists.linaro.org <mailto:lng-odp@lists.linaro.org>
>         https://lists.linaro.org/mailman/listinfo/lng-odp
>
>
>     _______________________________________________
>     lng-odp mailing list
>     lng-odp@lists.linaro.org <mailto:lng-odp@lists.linaro.org>
>     https://lists.linaro.org/mailman/listinfo/lng-odp
>
>
diff mbox

Patch

diff --git a/Makefile.am b/Makefile.am
index 2129472..625748a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -9,7 +9,6 @@  AM_DISTCHECK_CONFIGURE_FLAGS = --enable-test-cpp \
 SUBDIRS = @platform_with_platform@ \
 	  helper \
 	  test \
-	  @platform_with_platform_test@ \
 	  helper/test \
 	  doc \
 	  example \
diff --git a/configure.ac b/configure.ac
index c87755b..f3952db 100644
--- a/configure.ac
+++ b/configure.ac
@@ -107,7 +107,6 @@  AC_ARG_WITH([platform],
 
 AC_SUBST([with_platform])
 AC_SUBST([platform_with_platform], ["platform/${with_platform}"])
-AC_SUBST([platform_with_platform_test], ["platform/${with_platform}/test"])
 
 ##########################################################################
 # Run platform specific checks and settings
@@ -116,6 +115,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])
     IMPLEMENTATION_NAME="odp-linux"
 else
     echo "UNSUPPORTED PLATFORM: ${with_platform}"
diff --git a/platform/linux-generic/m4/configure.m4 b/platform/linux-generic/m4/configure.m4
index 5380046..1b1b883 100644
--- a/platform/linux-generic/m4/configure.m4
+++ b/platform/linux-generic/m4/configure.m4
@@ -36,9 +36,4 @@  m4_include([platform/linux-generic/m4/odp_dpdk.m4])
 m4_include([platform/linux-generic/m4/odp_ipc.m4])
 m4_include([platform/linux-generic/m4/odp_schedule.m4])
 
-AC_CONFIG_FILES([platform/linux-generic/Makefile
-		 platform/linux-generic/test/Makefile
-		 platform/linux-generic/test/shmem/Makefile
-		 platform/linux-generic/test/pktio/Makefile
-		 platform/linux-generic/test/pktio_ipc/Makefile
-		 platform/linux-generic/test/ring/Makefile])
+AC_CONFIG_FILES([platform/linux-generic/Makefile])
diff --git a/test/Makefile.am b/test/Makefile.am
index 4a75364..8bab8fd 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -1,5 +1,5 @@ 
 SUBDIRS = performance miscellaneous
 
 if cunit_support
-    SUBDIRS += validation
+    SUBDIRS += validation @platform_with_platform@
 endif
diff --git a/test/performance/odp_l2fwd_run.sh b/test/performance/odp_l2fwd_run.sh
index cab97a8..fc3d05d 100755
--- a/test/performance/odp_l2fwd_run.sh
+++ b/test/performance/odp_l2fwd_run.sh
@@ -37,8 +37,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/test/pktio/pktio_env ]; then
-	. ${TEST_SRC_DIR}/../../platform/$ODP_PLATFORM/test/pktio/pktio_env
+elif [ -f ${TEST_SRC_DIR}/../platform/$ODP_PLATFORM/pktio/pktio_env ]; then
+	. ${TEST_SRC_DIR}/../platform/$ODP_PLATFORM/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."
diff --git a/platform/linux-generic/test/.gitignore b/test/platform/linux-generic/.gitignore
similarity index 100%
rename from platform/linux-generic/test/.gitignore
rename to test/platform/linux-generic/.gitignore
diff --git a/platform/linux-generic/test/Makefile.am b/test/platform/linux-generic/Makefile.am
similarity index 100%
rename from platform/linux-generic/test/Makefile.am
rename to test/platform/linux-generic/Makefile.am
diff --git a/platform/linux-generic/test/Makefile.inc b/test/platform/linux-generic/Makefile.inc
similarity index 100%
rename from platform/linux-generic/test/Makefile.inc
rename to test/platform/linux-generic/Makefile.inc
diff --git a/test/platform/linux-generic/m4/configure.m4 b/test/platform/linux-generic/m4/configure.m4
new file mode 100644
index 0000000..8c3db21
--- /dev/null
+++ b/test/platform/linux-generic/m4/configure.m4
@@ -0,0 +1,5 @@ 
+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])
diff --git a/platform/linux-generic/test/pktio/.gitignore b/test/platform/linux-generic/pktio/.gitignore
similarity index 100%
rename from platform/linux-generic/test/pktio/.gitignore
rename to test/platform/linux-generic/pktio/.gitignore
diff --git a/platform/linux-generic/test/pktio/Makefile.am b/test/platform/linux-generic/pktio/Makefile.am
similarity index 100%
rename from platform/linux-generic/test/pktio/Makefile.am
rename to test/platform/linux-generic/pktio/Makefile.am
diff --git a/platform/linux-generic/test/pktio/pktio_env b/test/platform/linux-generic/pktio/pktio_env
similarity index 100%
rename from platform/linux-generic/test/pktio/pktio_env
rename to test/platform/linux-generic/pktio/pktio_env
diff --git a/platform/linux-generic/test/pktio/pktio_run.sh b/test/platform/linux-generic/pktio/pktio_run.sh
similarity index 96%
rename from platform/linux-generic/test/pktio/pktio_run.sh
rename to test/platform/linux-generic/pktio/pktio_run.sh
index 1dc1f44..b5a1667 100755
--- a/platform/linux-generic/test/pktio/pktio_run.sh
+++ b/test/platform/linux-generic/pktio/pktio_run.sh
@@ -46,7 +46,8 @@  elif [ -f ${TEST_SRC_DIR}/pktio_env ]; then
 	. ${TEST_SRC_DIR}/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."
+	echo "pktio_env has to be in current directory" \
+		"or in platform/\$ODP_PLATFORM/test."
 	echo "ODP_PLATFORM=\"$ODP_PLATFORM\""
 	exit 1
 fi
diff --git a/platform/linux-generic/test/pktio/pktio_run_dpdk.sh b/test/platform/linux-generic/pktio/pktio_run_dpdk.sh
similarity index 90%
rename from platform/linux-generic/test/pktio/pktio_run_dpdk.sh
rename to test/platform/linux-generic/pktio/pktio_run_dpdk.sh
index fd552c6..2c52c6e 100755
--- a/platform/linux-generic/test/pktio/pktio_run_dpdk.sh
+++ b/test/platform/linux-generic/pktio/pktio_run_dpdk.sh
@@ -46,7 +46,8 @@  elif [ -f ${TEST_SRC_DIR}/pktio_env ]; then
 	. ${TEST_SRC_DIR}/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."
+	echo "pktio_env has to be in current directory" \
+		"or in platform/\$ODP_PLATFORM/test."
 	echo "ODP_PLATFORM=\"$ODP_PLATFORM\""
 	exit 1
 fi
@@ -74,7 +75,9 @@  run()
 
 	if [ "$ODP_PKTIO_IF0" = "" ]; then
 		setup_pktio_env clean
-		export ODP_PKTIO_DPDK_PARAMS="--vdev eth_pcap0,iface=$IF0 --vdev eth_pcap1,iface=$IF1"
+		IF0_PARAMS="--vdev eth_pcap0,iface=$IF0"
+		IF1_PARAMS="--vdev eth_pcap1,iface=$IF1"
+		export ODP_PKTIO_DPDK_PARAMS="$IF0_PARAMS $IF1_PARAMS"
 		export ODP_PKTIO_IF0=0
 		export ODP_PKTIO_IF1=1
 	fi
diff --git a/platform/linux-generic/test/pktio/pktio_run_netmap.sh b/test/platform/linux-generic/pktio/pktio_run_netmap.sh
similarity index 100%
rename from platform/linux-generic/test/pktio/pktio_run_netmap.sh
rename to test/platform/linux-generic/pktio/pktio_run_netmap.sh
diff --git a/platform/linux-generic/test/pktio/pktio_run_pcap.sh b/test/platform/linux-generic/pktio/pktio_run_pcap.sh
similarity index 100%
rename from platform/linux-generic/test/pktio/pktio_run_pcap.sh
rename to test/platform/linux-generic/pktio/pktio_run_pcap.sh
diff --git a/platform/linux-generic/test/pktio/pktio_run_tap.sh b/test/platform/linux-generic/pktio/pktio_run_tap.sh
similarity index 100%
rename from platform/linux-generic/test/pktio/pktio_run_tap.sh
rename to test/platform/linux-generic/pktio/pktio_run_tap.sh
diff --git a/platform/linux-generic/test/pktio_ipc/.gitignore b/test/platform/linux-generic/pktio_ipc/.gitignore
similarity index 100%
rename from platform/linux-generic/test/pktio_ipc/.gitignore
rename to test/platform/linux-generic/pktio_ipc/.gitignore
diff --git a/platform/linux-generic/test/pktio_ipc/Makefile.am b/test/platform/linux-generic/pktio_ipc/Makefile.am
similarity index 100%
rename from platform/linux-generic/test/pktio_ipc/Makefile.am
rename to test/platform/linux-generic/pktio_ipc/Makefile.am
diff --git a/platform/linux-generic/test/pktio_ipc/ipc_common.c b/test/platform/linux-generic/pktio_ipc/ipc_common.c
similarity index 100%
rename from platform/linux-generic/test/pktio_ipc/ipc_common.c
rename to test/platform/linux-generic/pktio_ipc/ipc_common.c
diff --git a/platform/linux-generic/test/pktio_ipc/ipc_common.h b/test/platform/linux-generic/pktio_ipc/ipc_common.h
similarity index 100%
rename from platform/linux-generic/test/pktio_ipc/ipc_common.h
rename to test/platform/linux-generic/pktio_ipc/ipc_common.h
diff --git a/platform/linux-generic/test/pktio_ipc/pktio_ipc1.c b/test/platform/linux-generic/pktio_ipc/pktio_ipc1.c
similarity index 100%
rename from platform/linux-generic/test/pktio_ipc/pktio_ipc1.c
rename to test/platform/linux-generic/pktio_ipc/pktio_ipc1.c
diff --git a/platform/linux-generic/test/pktio_ipc/pktio_ipc2.c b/test/platform/linux-generic/pktio_ipc/pktio_ipc2.c
similarity index 100%
rename from platform/linux-generic/test/pktio_ipc/pktio_ipc2.c
rename to test/platform/linux-generic/pktio_ipc/pktio_ipc2.c
diff --git a/platform/linux-generic/test/pktio_ipc/pktio_ipc_run.sh b/test/platform/linux-generic/pktio_ipc/pktio_ipc_run.sh
similarity index 100%
rename from platform/linux-generic/test/pktio_ipc/pktio_ipc_run.sh
rename to test/platform/linux-generic/pktio_ipc/pktio_ipc_run.sh
diff --git a/platform/linux-generic/test/ring/.gitignore b/test/platform/linux-generic/ring/.gitignore
similarity index 100%
rename from platform/linux-generic/test/ring/.gitignore
rename to test/platform/linux-generic/ring/.gitignore
diff --git a/platform/linux-generic/test/ring/Makefile.am b/test/platform/linux-generic/ring/Makefile.am
similarity index 100%
rename from platform/linux-generic/test/ring/Makefile.am
rename to test/platform/linux-generic/ring/Makefile.am
diff --git a/platform/linux-generic/test/ring/ring_basic.c b/test/platform/linux-generic/ring/ring_basic.c
similarity index 100%
rename from platform/linux-generic/test/ring/ring_basic.c
rename to test/platform/linux-generic/ring/ring_basic.c
diff --git a/platform/linux-generic/test/ring/ring_main.c b/test/platform/linux-generic/ring/ring_main.c
similarity index 100%
rename from platform/linux-generic/test/ring/ring_main.c
rename to test/platform/linux-generic/ring/ring_main.c
diff --git a/platform/linux-generic/test/ring/ring_stress.c b/test/platform/linux-generic/ring/ring_stress.c
similarity index 100%
rename from platform/linux-generic/test/ring/ring_stress.c
rename to test/platform/linux-generic/ring/ring_stress.c
diff --git a/platform/linux-generic/test/ring/ring_suites.c b/test/platform/linux-generic/ring/ring_suites.c
similarity index 100%
rename from platform/linux-generic/test/ring/ring_suites.c
rename to test/platform/linux-generic/ring/ring_suites.c
diff --git a/platform/linux-generic/test/ring/ring_suites.h b/test/platform/linux-generic/ring/ring_suites.h
similarity index 100%
rename from platform/linux-generic/test/ring/ring_suites.h
rename to test/platform/linux-generic/ring/ring_suites.h
diff --git a/platform/linux-generic/test/run-test b/test/platform/linux-generic/run-test
similarity index 100%
rename from platform/linux-generic/test/run-test
rename to test/platform/linux-generic/run-test
diff --git a/platform/linux-generic/test/shmem/.gitignore b/test/platform/linux-generic/shmem/.gitignore
similarity index 100%
rename from platform/linux-generic/test/shmem/.gitignore
rename to test/platform/linux-generic/shmem/.gitignore
diff --git a/platform/linux-generic/test/shmem/Makefile.am b/test/platform/linux-generic/shmem/Makefile.am
similarity index 100%
rename from platform/linux-generic/test/shmem/Makefile.am
rename to test/platform/linux-generic/shmem/Makefile.am
diff --git a/platform/linux-generic/test/shmem/shmem.h b/test/platform/linux-generic/shmem/shmem.h
similarity index 100%
rename from platform/linux-generic/test/shmem/shmem.h
rename to test/platform/linux-generic/shmem/shmem.h
diff --git a/platform/linux-generic/test/shmem/shmem_common.h b/test/platform/linux-generic/shmem/shmem_common.h
similarity index 100%
rename from platform/linux-generic/test/shmem/shmem_common.h
rename to test/platform/linux-generic/shmem/shmem_common.h
diff --git a/platform/linux-generic/test/shmem/shmem_linux.c b/test/platform/linux-generic/shmem/shmem_linux.c
similarity index 100%
rename from platform/linux-generic/test/shmem/shmem_linux.c
rename to test/platform/linux-generic/shmem/shmem_linux.c
diff --git a/platform/linux-generic/test/shmem/shmem_linux.h b/test/platform/linux-generic/shmem/shmem_linux.h
similarity index 100%
rename from platform/linux-generic/test/shmem/shmem_linux.h
rename to test/platform/linux-generic/shmem/shmem_linux.h
diff --git a/platform/linux-generic/test/shmem/shmem_odp.c b/test/platform/linux-generic/shmem/shmem_odp.c
similarity index 100%
rename from platform/linux-generic/test/shmem/shmem_odp.c
rename to test/platform/linux-generic/shmem/shmem_odp.c
diff --git a/platform/linux-generic/test/shmem/shmem_odp.h b/test/platform/linux-generic/shmem/shmem_odp.h
similarity index 100%
rename from platform/linux-generic/test/shmem/shmem_odp.h
rename to test/platform/linux-generic/shmem/shmem_odp.h