aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xm-test/runtest.sh
diff options
context:
space:
mode:
authorEwan Mellor <ewan@xensource.com>2007-01-11 18:56:59 +0000
committerEwan Mellor <ewan@xensource.com>2007-01-11 18:56:59 +0000
commitaeb7c09a6613aae8e39c271283f8db9f7a99d32f (patch)
treef20aaafcbd4be33d28a8b78bb3a0b95f7a1836f1 /tools/xm-test/runtest.sh
parent2b1f4094a6bb571855c2a1ca54f5e6ded34913c5 (diff)
downloadxen-aeb7c09a6613aae8e39c271283f8db9f7a99d32f.tar.gz
xen-aeb7c09a6613aae8e39c271283f8db9f7a99d32f.tar.bz2
xen-aeb7c09a6613aae8e39c271283f8db9f7a99d32f.zip
I added a parameter '-md' to 'runtest.sh' for running the xm test suite
in a mode where all created domains a created as xend-managed domains. This patch also fixes a problem related to calling 'xm domid' on a currently suspended domain if that domain is a managed domain. In that case a 'None' is returned by Xend, which I default to '-1'. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
Diffstat (limited to 'tools/xm-test/runtest.sh')
-rwxr-xr-xtools/xm-test/runtest.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/xm-test/runtest.sh b/tools/xm-test/runtest.sh
index 22c0736bf2..5b102b7f45 100755
--- a/tools/xm-test/runtest.sh
+++ b/tools/xm-test/runtest.sh
@@ -16,6 +16,7 @@ usage() {
echo " -r <url> : url of test results repository to use"
echo " -s <report> : just submit report <report>"
echo " -u : unsafe -- do not run the sanity checks before starting"
+ echo " -md : all created domains are xend-'managed' domains"
echo " -h | --help : show this help"
}
@@ -218,11 +219,14 @@ run=yes
unsafe=no
GROUPENTERED=default
+#Prepare for usage with ACM
if [ -d /etc/xen/acm-security/policies ]; then
cp -f tests/security-acm/xm-test-security_policy.xml \
/etc/xen/acm-security/policies
fi
+unset XM_MANAGED_DOMAINS
+
# Resolve options
while [ $# -gt 0 ]
do
@@ -260,6 +264,10 @@ while [ $# -gt 0 ]
unsafe=yes
report=no
;;
+ -md)
+ echo "(use managed domains)"
+ export XM_MANAGED_DOMAINS=1
+ ;;
-h|--help)
usage
exit 0