Skip to content

Commit ec3e05c

Browse files
committed
Adding some helper scripts and files for buildbot testing.
- Legacy-Id: 191
1 parent b5ce6e3 commit ec3e05c

7 files changed

Lines changed: 47 additions & 0 deletions

File tree

test/lib/README

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

test/patch-django

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
#
3+
# This script expects to be started by a Buildbot slave with PWD set to the build
4+
# directory. Assuming we check out trunk or branch-XXX with the command
5+
# 'svn co URL/BRANCH/'
6+
# then this script will at $PWD/test/patch-django and we will place our patched
7+
# django in $PWD/test/lib/django
8+
#
9+
10+
build=$PWD
11+
django=$(python -c "import django; print django.__path__[0]")
12+
13+
rsync -Cav $django $build/test/lib/
14+
cd $build/test/lib/
15+
patch -p 2 < $build/test/r5105.patch
16+
17+
exit 0

test/r5106.patch

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Index: /django/trunk/django/core/management.py
2+
===================================================================
3+
--- /django/trunk/django/core/management.py (revision 5102)
4+
+++ /django/trunk/django/core/management.py (revision 5106)
5+
@@ -169,4 +169,6 @@
6+
if isinstance(f, (models.ForeignKey, models.OneToOneField)):
7+
rel_field = f.rel.get_related_field()
8+
+ while isinstance(rel_field, (models.ForeignKey, models.OneToOneField)):
9+
+ rel_field = rel_field.rel.get_related_field()
10+
data_type = get_rel_data_type(rel_field)
11+
else:
12+
Index: /django/trunk/AUTHORS
13+
===================================================================
14+
--- /django/trunk/AUTHORS (revision 5102)
15+
+++ /django/trunk/AUTHORS (revision 5106)
16+
@@ -165,4 +165,5 @@
17+
Robert Myers <myer0052@gmail.com>
18+
Nebojša Dorđević
19+
+ Gopal Narayanan <gopastro@gmail.com>
20+
Fraser Nevett <mail@nevett.org>
21+
Sam Newman <http://www.magpiebrain.com/>

test/settings_local_develop.py

Whitespace-only changes.

test/settings_local_development.py

Whitespace-only changes.

test/settings_local_test.py

Whitespace-only changes.

test/test-setup

Whitespace-only changes.

0 commit comments

Comments
 (0)