[CalendarServer-changes] [764] CalendarServer/trunk/twistedcaldav/test/data

source_changes at macosforge.org source_changes at macosforge.org
Fri Dec 8 09:14:24 PST 2006


Revision: 764
          http://trac.macosforge.org/projects/calendarserver/changeset/764
Author:   cdaboo at apple.com
Date:     2006-12-08 09:14:23 -0800 (Fri, 08 Dec 2006)

Log Message:
-----------
Add some more test calendars with 10 & 100 events for performance checks.

Modified Paths:
--------------
    CalendarServer/trunk/twistedcaldav/test/data/makelargecalendars.py

Added Paths:
-----------
    CalendarServer/trunk/twistedcaldav/test/data/calendar.10.tgz
    CalendarServer/trunk/twistedcaldav/test/data/calendar.100.tgz

Added: CalendarServer/trunk/twistedcaldav/test/data/calendar.10.tgz
===================================================================
(Binary files differ)


Property changes on: CalendarServer/trunk/twistedcaldav/test/data/calendar.10.tgz
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: CalendarServer/trunk/twistedcaldav/test/data/calendar.100.tgz
===================================================================
(Binary files differ)


Property changes on: CalendarServer/trunk/twistedcaldav/test/data/calendar.100.tgz
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Modified: CalendarServer/trunk/twistedcaldav/test/data/makelargecalendars.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/test/data/makelargecalendars.py	2006-12-08 16:39:37 UTC (rev 763)
+++ CalendarServer/trunk/twistedcaldav/test/data/makelargecalendars.py	2006-12-08 17:14:23 UTC (rev 764)
@@ -20,9 +20,13 @@
 
 import os
 
-for ctr in xrange(1, 21):
-    path = "calendars/user/user%02d" % (ctr,)
-    if not os.path.exists("%s/calendar.1000/" % (path,)):
-        print "Expanding to %s" % (path,)
-        cmd = "cd %s; tar zxf ../../../calendar.1000.tgz" % (path,)
-        os.system(cmd)
+user_max = 20
+calendars = ("calendar.10", "calendar.100", "calendar.1000",)
+
+for calendar in calendars:
+    for ctr in xrange(1, user_max + 1):
+        path = "calendars/user/user%02d" % (ctr,)
+        if not os.path.exists("%s/%s/" % (path, calendar,)):
+            print "Expanding %s to %s" % (calendar, path,)
+            cmd = "cd %s; tar zxf ../../../%s.tgz" % (path, calendar,)
+            os.system(cmd)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20061208/20df4e7f/attachment.html


More information about the calendarserver-changes mailing list