[CalendarServer-changes] [13462] CalendarServer/trunk/bin/test

source_changes at macosforge.org source_changes at macosforge.org
Thu May 8 11:37:02 PDT 2014


Revision: 13462
          http://trac.calendarserver.org//changeset/13462
Author:   wsanchez at apple.com
Date:     2014-05-08 11:37:02 -0700 (Thu, 08 May 2014)
Log Message:
-----------
Make it so that we use -*- test-case-name: foo -*- lines to find tests if specific files are given ar arguments.

Modified Paths:
--------------
    CalendarServer/trunk/bin/test

Modified: CalendarServer/trunk/bin/test
===================================================================
--- CalendarServer/trunk/bin/test	2014-05-08 18:13:14 UTC (rev 13461)
+++ CalendarServer/trunk/bin/test	2014-05-08 18:37:02 UTC (rev 13462)
@@ -113,19 +113,25 @@
 # Unit tests
 #
 
-cd "${wd}" &&                                       \
-  "${wd}/bin/trial"                                 \
-  --temp-directory="${dev_home}/trial"              \
-  --rterrors                                        \
-  ${reactor}                                        \
-  ${random}                                         \
-  ${until_fail}                                     \
-  ${no_color}                                       \
-  ${coverage}                                       \
-  ${numjobs}                                        \
-  "$@";
+for module in "$@"; do
+  if [ -f "${module}" ]; then
+    module="--testmodule=${module}";
+  fi;
 
+  cd "${wd}" &&                                       \
+    "${wd}/bin/trial"                                 \
+    --temp-directory="${dev_home}/trial"              \
+    --rterrors                                        \
+    ${reactor}                                        \
+    ${random}                                         \
+    ${until_fail}                                     \
+    ${no_color}                                       \
+    ${coverage}                                       \
+    ${numjobs}                                        \
+    "${module}";
+done;
 
+
 if ! "${lint}"; then
   exit 0;
 fi;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20140508/95ba660e/attachment.html>


More information about the calendarserver-changes mailing list