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

source_changes at macosforge.org source_changes at macosforge.org
Wed Dec 6 13:03:25 PST 2006


Revision: 729
          http://trac.macosforge.org/projects/calendarserver/changeset/729
Author:   cdaboo at apple.com
Date:     2006-12-06 13:03:25 -0800 (Wed, 06 Dec 2006)

Log Message:
-----------
Add a large calendar (1000 events) for performance testing, with a python script that will populate
it into the first 20 user accounts.

Added Paths:
-----------
    CalendarServer/trunk/twistedcaldav/test/data/calendar.1000.tgz
    CalendarServer/trunk/twistedcaldav/test/data/makelargecalendars.py

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


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

Added: CalendarServer/trunk/twistedcaldav/test/data/makelargecalendars.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/test/data/makelargecalendars.py	                        (rev 0)
+++ CalendarServer/trunk/twistedcaldav/test/data/makelargecalendars.py	2006-12-06 21:03:25 UTC (rev 729)
@@ -0,0 +1,28 @@
+#!/usr/bin/env python
+
+##
+# Copyright (c) 2005-2006 Apple Computer, Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# DRI: Cyrus Daboo, cdaboo at apple.com
+##
+
+import os
+
+for ctr in xrange(1, 20):
+    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)


Property changes on: CalendarServer/trunk/twistedcaldav/test/data/makelargecalendars.py
___________________________________________________________________
Name: svn:executable
   + *

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20061206/64dc2fd6/attachment.html


More information about the calendarserver-changes mailing list