mirror of
https://github.com/troglobit/finit.git
synced 2026-10-08 16:34:45 +07:00
Instead of having to create files, and copying them in place for each test, we move all static test files to a skeleton rootfs. This makes it a lot easier to get an overview of how things and how they work. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
16 lines
463 B
Bash
Executable File
16 lines
463 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -eu
|
|
|
|
# shellcheck disable=SC2154
|
|
make -C "$top_builddir" DESTDIR="$TENV_ROOT" install
|
|
cp "$top_builddir/test/common/serv" "$TENV_ROOT/sbin/"
|
|
|
|
# shellcheck disable=SC2154
|
|
FINITBIN="$(pwd)/$top_builddir/src/finit" DEST="$TENV_ROOT" make -f "$srcdir/tenv/root.mk"
|
|
|
|
# Drop plugins we don't need in test, only causes confusing FAIL in logs.
|
|
for plugin in tty.so urandom.so rtc.so modprobe.so hotplug.so; do
|
|
find "$TENV_ROOT" -name $plugin -delete
|
|
done
|