Adding some helper scripts and files for buildbot testing.

- Legacy-Id: 191
This commit is contained in:
Henrik Levkowetz 2007-05-31 19:48:51 +00:00
parent b5ce6e375c
commit ec3e05cde6
7 changed files with 47 additions and 0 deletions

9
test/lib/README Normal file
View file

@ -0,0 +1,9 @@
This directory will be used to set up packages used for testing if they need any
special handling which should not be applied to the system-wide setup.
For instance, many of the tests to be run on the Django application should be run
with a standard Django environment; but there are some Django test features which
are broken in 0.9.6, and need patching in order to do the testing, like the ability
to create a test database to run unit tests, according to this issue and patch:
http://code.djangoproject.com/changeset/5106

17
test/patch-django Normal file
View file

@ -0,0 +1,17 @@
#!/bin/bash
#
# This script expects to be started by a Buildbot slave with PWD set to the build
# directory. Assuming we check out trunk or branch-XXX with the command
# 'svn co URL/BRANCH/'
# then this script will at $PWD/test/patch-django and we will place our patched
# django in $PWD/test/lib/django
#
build=$PWD
django=$(python -c "import django; print django.__path__[0]")
rsync -Cav $django $build/test/lib/
cd $build/test/lib/
patch -p 2 < $build/test/r5105.patch
exit 0

21
test/r5106.patch Normal file
View file

@ -0,0 +1,21 @@
Index: /django/trunk/django/core/management.py
===================================================================
--- /django/trunk/django/core/management.py (revision 5102)
+++ /django/trunk/django/core/management.py (revision 5106)
@@ -169,4 +169,6 @@
if isinstance(f, (models.ForeignKey, models.OneToOneField)):
rel_field = f.rel.get_related_field()
+ while isinstance(rel_field, (models.ForeignKey, models.OneToOneField)):
+ rel_field = rel_field.rel.get_related_field()
data_type = get_rel_data_type(rel_field)
else:
Index: /django/trunk/AUTHORS
===================================================================
--- /django/trunk/AUTHORS (revision 5102)
+++ /django/trunk/AUTHORS (revision 5106)
@@ -165,4 +165,5 @@
Robert Myers <myer0052@gmail.com>
Nebojša Dorđević
+ Gopal Narayanan <gopastro@gmail.com>
Fraser Nevett <mail@nevett.org>
Sam Newman <http://www.magpiebrain.com/>

View file

View file

View file

0
test/test-setup Normal file
View file