diff options
author | Matias Elo <matias.elo@nokia.com> | 2020-10-20 13:31:57 +0300 |
---|---|---|
committer | Matias Elo <matias.elo@nokia.com> | 2020-10-20 13:31:57 +0300 |
commit | 47906491e30611b9700657349bfe4a843591e956 (patch) | |
tree | 57ed51178c3bc161d93c98767c70754b4d287c30 /helper | |
parent | 2e00d3740f1f5a1f3a4fdeeda6176b485e29466c (diff) | |
parent | 5929f15fe8887bd8e0c2eef766dd6bf26d7d176c (diff) |
Merge branch 'master' of https://github.com/OpenDataPlane/odp into odp-dpdk
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Diffstat (limited to 'helper')
-rw-r--r-- | helper/test/Makefile.am | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/helper/test/Makefile.am b/helper/test/Makefile.am index 386c9c221..76bfac8fe 100644 --- a/helper/test/Makefile.am +++ b/helper/test/Makefile.am @@ -40,3 +40,23 @@ table_SOURCES = table.c iplookuptable_SOURCES = iplookuptable.c version_SOURCES = version.c debug_SOURCES = debug.c + +# 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 -f $(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 |