mirror of
https://github.com/troglobit/finit.git
synced 2026-10-17 10:49:34 +00:00
test: Fix testenv-root lingering in build dir
Signed-off-by: Jacques de Laval <jacques@de-laval.se>
This commit is contained in:
1 parent
6b7ae50fbb
commit
2f439194e5
12 files changed
+80
-125
No files matched your search
+3
-10
@@ -2,14 +2,7 @@
|
||||
|
||||
set -eu
|
||||
|
||||
if [ ! -d test-root ]; then
|
||||
mkdir -p test-root/bin
|
||||
# shellcheck disable=SC2154
|
||||
cp "${srcdir}/test-root/bin/chrootsetup.sh" test-root/bin
|
||||
cp "${srcdir}/test-root/busybox-x86_64.md5" test-root/
|
||||
cp "${srcdir}/test-root/Makefile" test-root/
|
||||
fi
|
||||
|
||||
# shellcheck disable=SC2154
|
||||
make -C "$top_builddir" DESTDIR="$(pwd)/test-root/" install
|
||||
FINITBIN="$(pwd)/$top_builddir/src/finit" make -C test-root/
|
||||
make -C "$top_builddir" DESTDIR="$TESTENV_ROOT" install
|
||||
# shellcheck disable=SC2154
|
||||
FINITBIN="$(pwd)/$top_builddir/src/finit" DEST="$TESTENV_ROOT" make -f "$srcdir/testenv-root.mk"
|
||||
Reference in new issue
Block a user