test: Move test support files to separate dir and keep tests in /test

Signed-off-by: Jacques de Laval <jacques@de-laval.se>
This commit is contained in:
Jacques de Laval committed 2021-02-27 14:50:49 +01:00
1 parent 4aa17a84ab
commit 7fe1189f7b
15 files changed
+62 -65

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
#!/bin/sh
set -eu
# It would have been nice to mount /dev as devtmpfs, but unfortunately
# that's not possible if you're not privileged. For now tmpfs will
# have to do.
mount -n -t tmpfs none /dev
mount -t proc none /proc
mount -t sysfs none /sys
mkdir -p /tmp.shadow
mount --bind /tmp /tmp.shadow
mount -t tmpfs none /tmp
cp -a /tmp.shadow/* /tmp/
mkdir -p "$FINIT_RCSD"
tty=/dev/$(cat /sys/class/tty/console/active)
mkfifo "$tty"
exec "$@"