test: namespace cleanup, common -> src, tenv -> lib, etc.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2023-02-05 19:04:48 +01:00
parent 49cd3a441d
commit 9c727ed08d
38 changed files with 61 additions and 66 deletions
+17
View File
@@ -0,0 +1,17 @@
#!/bin/sh
set -eu
# shellcheck disable=SC2154
make -C "$top_builddir" DESTDIR="$SYSROOT" install
mkdir -p "$SYSROOT/sbin/"
cp "$top_builddir/test/src/serv" "$SYSROOT/sbin/"
# shellcheck disable=SC2154
FINITBIN="$(pwd)/$top_builddir/src/finit" DEST="$SYSROOT" make -f "$srcdir/lib/sysroot.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 "$SYSROOT" -name $plugin -delete
done