summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-03-17 14:32:04 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-03-17 14:32:04 (EDT)
commita99ef42126ff02a752c403450b455095b572c2d9 (patch)
tree00170a2b033f84850ad8bdf4417104ff411f5b11
parent2c6a49ea4ad01b6ebcaf2505bfbd6062ea714e2e (diff)
tests/aux/setup.sh: Make test package under tests build dir
-rw-r--r--tests/.gitignore1
-rw-r--r--tests/aux/setup.sh2
-rw-r--r--tests/local.mk2
3 files changed, 4 insertions, 1 deletions
diff --git a/tests/.gitignore b/tests/.gitignore
index 7e563b8..c064816 100644
--- a/tests/.gitignore
+++ b/tests/.gitignore
@@ -1,2 +1,3 @@
*.log
*.trs
+/pkg/
diff --git a/tests/aux/setup.sh b/tests/aux/setup.sh
index a2b7170..42d9a08 100644
--- a/tests/aux/setup.sh
+++ b/tests/aux/setup.sh
@@ -19,6 +19,8 @@
set -eu
+cd "${1}"
+
rm -Rf 'pkg/'
mkdir -p 'pkg/tmp/'
cd 'pkg/'
diff --git a/tests/local.mk b/tests/local.mk
index f3a5772..ee594be 100644
--- a/tests/local.mk
+++ b/tests/local.mk
@@ -9,7 +9,7 @@ TESTS = \
%reldir%/exe/ob-buildenv.sh
TEST_EXTENSIONS = .sh
SH_LOG_DRIVER = \
- $(SHELL) $(top_srcdir)/tests/aux/setup.sh && \
+ $(SHELL) $(top_srcdir)/tests/aux/setup.sh "$(top_builddir)/tests" && \
AM_TAP_AWK='$(AWK)' \
TOP_SRCDIR="$(top_srcdir)" \
TOP_BUILDDIR="$(top_builddir)" \