My mount testsuite. Not automatically run at the moment, need to figure out

how to (optionally) supply User Mode Linux to runtests.
This commit is contained in:
Rob Landley
2006-03-18 03:00:22 +00:00
parent eaa34ca5b4
commit dcb2122e85
2 changed files with 203 additions and 0 deletions

20
testsuite/umlwrapper.sh Executable file
View File

@ -0,0 +1,20 @@
#!/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