Skip to content

Commit 79ca952

Browse files
committed
ietf/test/run is a simple shell-script which runs the same test set as the buildbot, using a patched local Django copy in order to run the Django test framework. This makes it possible to run the test suite locally before committing, rather than committing in order to have the buildbot run the tests. Some tests on the fully populated database takes a long time (such as retrieving all the IDs) and probably should be moved to a separate test set.
- Legacy-Id: 252
1 parent 7427372 commit 79ca952

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

test/run

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
3+
set -x
4+
5+
program=${0##*/}
6+
progdir=${0%/*}
7+
8+
cd $progdir/.. # now at trunk/
9+
10+
$progdir/test-setup # create a patched django for test purposes, and more
11+
12+
$progdir/run-pyflakes ietf
13+
14+
PYTHONPATH=$progdir/lib python ietf/manage.py test # run tests with our patched django
15+
16+
$progdir/test-teardown
17+

0 commit comments

Comments
 (0)