diff options
author | Matias Elo <matias.elo@nokia.com> | 2020-10-19 10:53:31 +0300 |
---|---|---|
committer | Matias Elo <matias.elo@nokia.com> | 2020-10-30 13:04:34 +0200 |
commit | 43bc763ed2026c26daefa0b101b84e049631420f (patch) | |
tree | bdb430a0b227b34541090ef9e2f46714e8d1be7a /platform/linux-dpdk/test | |
parent | fcd1b711c06b1d9df9e1cffcaef16a43ab059da6 (diff) |
Port 75b0ae386 "build: simplify remote target testing"
Simplify running "make check" on a remote target platform.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
Diffstat (limited to 'platform/linux-dpdk/test')
-rw-r--r-- | platform/linux-dpdk/test/validation/api/pktio/Makefile.am | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/platform/linux-dpdk/test/validation/api/pktio/Makefile.am b/platform/linux-dpdk/test/validation/api/pktio/Makefile.am index e401a29af..39bde1af6 100644 --- a/platform/linux-dpdk/test/validation/api/pktio/Makefile.am +++ b/platform/linux-dpdk/test/validation/api/pktio/Makefile.am @@ -2,3 +2,23 @@ dist_check_SCRIPTS = pktio_env \ pktio_run.sh test_SCRIPTS = $(dist_check_SCRIPTS) + +# If building out-of-tree, make check will not copy the scripts and data to the +# $(builddir) assuming that all commands are run locally. However this prevents +# running tests on a remote target using LOG_COMPILER. +# So copy all script and data files explicitly here. +all-local: + if [ "x$(srcdir)" != "x$(builddir)" ]; then \ + for f in $(dist_check_SCRIPTS); do \ + if [ -e $(srcdir)/$$f ]; then \ + mkdir -p $(builddir)/$$(dirname $$f); \ + cp $(srcdir)/$$f $(builddir)/$$f; \ + fi \ + done \ + fi +clean-local: + if [ "x$(srcdir)" != "x$(builddir)" ]; then \ + for f in $(dist_check_SCRIPTS); do \ + rm -f $(builddir)/$$f; \ + done \ + fi |