From a99ef42126ff02a752c403450b455095b572c2d9 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sun, 17 Mar 2019 14:32:04 -0400 Subject: tests/aux/setup.sh: Make test package under tests build dir --- 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)" \ -- cgit v0.9.1