aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xm-test/runtest.sh
diff options
context:
space:
mode:
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>2006-03-21 11:39:09 +0100
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>2006-03-21 11:39:09 +0100
commit69c80650bf0bda8346aa3aa0382261056f20b05f (patch)
treef4d266feb9ebaa40fe5d39e8428e28d27f718da0 /tools/xm-test/runtest.sh
parent7ce80e59d44c239e268f1bda3bcbc6ab71b4b1f3 (diff)
downloadxen-69c80650bf0bda8346aa3aa0382261056f20b05f.tar.gz
xen-69c80650bf0bda8346aa3aa0382261056f20b05f.tar.bz2
xen-69c80650bf0bda8346aa3aa0382261056f20b05f.zip
Added -u flag (unsafe) to runtest.sh, to skip the sanity checks. This improves
turnaround when developing tests. Signed-off-by: Ewan Mellor <ewan@xensource.com>
Diffstat (limited to 'tools/xm-test/runtest.sh')
-rwxr-xr-xtools/xm-test/runtest.sh24
1 files changed, 18 insertions, 6 deletions
diff --git a/tools/xm-test/runtest.sh b/tools/xm-test/runtest.sh
index 2cedec6440..9e11824b80 100755
--- a/tools/xm-test/runtest.sh
+++ b/tools/xm-test/runtest.sh
@@ -15,6 +15,7 @@ usage() {
echo " -e <email> : set email address for report"
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 " -h | --help : show this help"
}
@@ -193,6 +194,7 @@ report=yes
reportserver=${xmtest_repo:-'http://xmtest.dague.org/cgi-bin/report-results'}
batch=no
run=yes
+unsafe=no
GROUPENTERED=default
# Resolve options
@@ -227,6 +229,11 @@ while [ $# -gt 0 ]
-s)
run=no
;;
+ -u)
+ echo "(Unsafe mode)"
+ unsafe=yes
+ report=no
+ ;;
-h|--help)
usage
exit 0
@@ -275,15 +282,20 @@ if [ "$GROUPENTERED" != "default" ]; then
fi
if [ "$run" != "no" ]; then
- runnable_tests
+ if [ "$unsafe" = "no" ]; then
+ runnable_tests
+ fi
rm -f $REPORT"*"
- make_environment_report $OSREPORTTEMP $PROGREPORTTEMP
+ if [ "$unsafe" = "no" ]; then
+ make_environment_report $OSREPORTTEMP $PROGREPORTTEMP
+ fi
run_tests $GROUPENTERED $OUTPUT
make_text_reports $PASSFAIL $FAILURES $OUTPUT $TXTREPORT
- make_result_report $OUTPUT $RESULTREPORTTEMP
- cat $OSREPORTTEMP $PROGREPORTTEMP $RESULTREPORTTEMP > $XMLREPORT
- rm $OSREPORTTEMP $PROGREPORTTEMP $RESULTREPORTTEMP
-
+ if [ "$unsafe" = "no" ]; then
+ make_result_report $OUTPUT $RESULTREPORTTEMP
+ cat $OSREPORTTEMP $PROGREPORTTEMP $RESULTREPORTTEMP > $XMLREPORT
+ rm $OSREPORTTEMP $PROGREPORTTEMP $RESULTREPORTTEMP
+ fi
fi
if [ "$report" = "yes" ]; then