From dffd7a47fbdcac799b4ada5253eab42807d12324 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Mon, 18 Mar 2019 02:31:57 -0400 Subject: tests/aux/common.sh: Copy test package files to build directory --- (limited to 'tests/aux/common.sh') 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/" -- cgit v0.9.1