mirror of
https://github.com/topjohnwu/ndk-busybox.git
synced 2024-11-28 06:00:36 +00:00
dcb2122e85
how to (optionally) supply User Mode Linux to runtests.
21 lines
346 B
Bash
Executable File
21 lines
346 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Wrapper for User Mode Linux emulation environment
|
|
|
|
RUNFILE="$(pwd)/${1}.testroot"
|
|
if [ -z "$RUNFILE" ] || [ ! -x "$RUNFILE" ]
|
|
then
|
|
echo "Can't run '$RUNFILE'"
|
|
exit 1
|
|
fi
|
|
|
|
shift
|
|
|
|
if [ -z $(which linux) ]
|
|
then
|
|
echo "No User Mode Linux."
|
|
exit 1;
|
|
fi
|
|
|
|
linux rootfstype=hostfs rw init="$RUNFILE" TESTDIR=`pwd` PATH="$PATH" $* quiet
|