summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-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)" \