mirror of
https://github.com/troglobit/finit.git
synced 2026-10-02 14:02:52 +07:00
This simplifies the setup script a lot, and also makes it easier to run tests independently. Signed-off-by: Jacques de Laval <jacques@de-laval.se>
16 lines
430 B
Bash
Executable File
16 lines
430 B
Bash
Executable File
#!/bin/sh
|
|
|
|
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/
|