diff options
Diffstat (limited to 'tests/aux')
-rw-r--r-- | tests/aux/common.sh | 9 |
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/" |