summaryrefslogtreecommitdiffstats
path: root/tests/aux
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-03-18 02:31:57 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-03-18 02:31:57 (EDT)
commitdffd7a47fbdcac799b4ada5253eab42807d12324 (patch)
treee3cad090a574005137c5ec64bf120045df8b0a5b /tests/aux
parent1c86be26ca78ad0a227fea3cfc64a4c5641118dc (diff)
tests/aux/common.sh: Copy test package files to build directory
Diffstat (limited to 'tests/aux')
-rw-r--r--tests/aux/common.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/aux/common.sh b/tests/aux/common.sh
index fadf791..13e0737 100644
--- a/tests/aux/common.sh
+++ b/tests/aux/common.sh
@@ -103,6 +103,9 @@ export OPK_HOST_ARCH_LIBS='glibc'
export OPK_HOST_PLAT='x60'
# Section 7.3.3 Toolchain Variables aren't used by opkbuild utilities.
-rm -Rf "${TOP_BUILDDIR}/tests/pkg/tmp/"
-mkdir -p "${TOP_BUILDDIR}/tests/pkg/tmp/"
-cd "${TOP_BUILDDIR}/tests/pkg/tmp/"
+# For out-of-tree builds, copy test package files to build directory.
+rm -Rf "${TOP_BUILDDIR}/tests/data.build/"
+cp -Rp "${TOP_SRCDIR}/tests/data/" "${TOP_BUILDDIR}/tests/data.build/"
+chmod -R u+w "${TOP_BUILDDIR}/tests/data.build/" # Automake makes files RO
+mkdir -p "${TOP_BUILDDIR}/tests/data.build/pkg/tmp/"
+cd "${TOP_BUILDDIR}/tests/data.build/pkg/tmp/"