Setup userspace Magisk tests

The existing test infrastructure relies on the full Magisk setup before
it can test any functionality. However for most of the time, we just
want to test the core Magisk functionality without the need of involving
MagiskInit.
This commit is contained in:
topjohnwu
2026-07-28 17:23:35 -07:00
parent ffadcfd163
commit 0f59f1f345
3 changed files with 40 additions and 2 deletions
+2
View File
@@ -149,6 +149,8 @@ mkdir -p $MAGISKTMP/.magisk/worker
mount_tmpfs $MAGISKTMP/.magisk/worker
mount --make-private $MAGISKTMP/.magisk/worker
touch $MAGISKTMP/.magisk/config
# Create a marker file to understand it is a live setup
touch $MAGISKTMP/.magisk/live
export MAGISKTMP
MAKEDEV=1 $MAGISKTMP/magisk --preinit-device 2>&1