[CalendarServer-changes] [1383] CalendarServer/trunk/test
source_changes at macosforge.org
source_changes at macosforge.org
Wed Mar 14 11:48:16 PDT 2007
Revision: 1383
http://trac.macosforge.org/projects/calendarserver/changeset/1383
Author: dreid at apple.com
Date: 2007-03-14 11:48:16 -0700 (Wed, 14 Mar 2007)
Log Message:
-----------
add -r option to ./test to Run tests in random order
Modified Paths:
--------------
CalendarServer/trunk/test
Modified: CalendarServer/trunk/test
===================================================================
--- CalendarServer/trunk/test 2007-03-14 17:41:13 UTC (rev 1382)
+++ CalendarServer/trunk/test 2007-03-14 18:48:16 UTC (rev 1383)
@@ -24,20 +24,22 @@
if [ "${1--}" != "-" ]; then echo "$@"; echo; fi;
- echo "Usage: ${program} [-hn]";
+ echo "Usage: ${program} [-hnr]";
echo "Options:";
echo " -h Print this help and exit";
echo " -n Do not use color";
+ echo " -r Run tests in random order";
if [ "${1-}" == "-" ]; then return 0; fi;
exit 64;
}
-while getopts "nh" option; do
+while getopts "nhr" option; do
case "${option}" in
'?') usage; ;;
'h') usage -; exit 0; ;;
- 'n') trial_args="--reporter=bwverbose"; ;;
+ 'n') no_colour="--reporter=bwverbose"; ;;
+ 'r') random="--random=$(date "+%s")"; ;;
esac;
done;
shift $((${OPTIND} - 1));
@@ -55,4 +57,4 @@
test_modules="twistedcaldav";
fi;
-cd "${wd}" && "${twisted}/bin/trial" ${trial_args} ${test_modules};
+cd "${wd}" && "${twisted}/bin/trial" ${random} ${no_colour} ${test_modules};
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20070314/d70676c0/attachment.html
More information about the calendarserver-changes
mailing list