MC3302_SDK_V1.1.9_202507281.../bsp/busybox/busybox-1.36.1/testsuite/umlwrapper.sh

21 lines
346 B
Bash
Raw Normal View History

2025-11-11 04:08:31 +00:00
#!/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