diff options
author | landley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-03-18 03:00:22 +0000 |
---|---|---|
committer | landley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-03-18 03:00:22 +0000 |
commit | 86d5bc7b095f5b3cdedb31788188d729b0cc5aa3 (patch) | |
tree | 5f552194f9ab11674328f8305183a7deb3a15712 /testsuite/umlwrapper.sh | |
parent | a6fbd41bfa10412c823fdfe292ef6621f3318d79 (diff) | |
download | busybox-w32-86d5bc7b095f5b3cdedb31788188d729b0cc5aa3.tar.gz busybox-w32-86d5bc7b095f5b3cdedb31788188d729b0cc5aa3.tar.bz2 busybox-w32-86d5bc7b095f5b3cdedb31788188d729b0cc5aa3.zip |
My mount testsuite. Not automatically run at the moment, need to figure out
how to (optionally) supply User Mode Linux to runtests.
git-svn-id: svn://busybox.net/trunk/busybox@14558 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to '')
-rwxr-xr-x | testsuite/umlwrapper.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/testsuite/umlwrapper.sh b/testsuite/umlwrapper.sh new file mode 100755 index 000000000..e55e4dbd3 --- /dev/null +++ b/testsuite/umlwrapper.sh | |||
@@ -0,0 +1,20 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | # Wrapper for User Mode Linux emulation environment | ||
4 | |||
5 | RUNFILE="$(pwd)/${1}.testroot" | ||
6 | if [ -z "$RUNFILE" ] || [ ! -x "$RUNFILE" ] | ||
7 | then | ||
8 | echo "Can't run '$RUNFILE'" | ||
9 | exit 1 | ||
10 | fi | ||
11 | |||
12 | shift | ||
13 | |||
14 | if [ -z $(which linux) ] | ||
15 | then | ||
16 | echo "No User Mode Linux." | ||
17 | exit 1; | ||
18 | fi | ||
19 | |||
20 | linux rootfstype=hostfs rw init="$RUNFILE" TESTDIR=`pwd` PATH="$PATH" $* quiet | ||