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
This commit is contained in:
parent
742737251f
commit
79ca952b76
17
test/run
Executable file
17
test/run
Executable file
|
@ -0,0 +1,17 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -x
|
||||
|
||||
program=${0##*/}
|
||||
progdir=${0%/*}
|
||||
|
||||
cd $progdir/.. # now at trunk/
|
||||
|
||||
$progdir/test-setup # create a patched django for test purposes, and more
|
||||
|
||||
$progdir/run-pyflakes ietf
|
||||
|
||||
PYTHONPATH=$progdir/lib python ietf/manage.py test # run tests with our patched django
|
||||
|
||||
$progdir/test-teardown
|
||||
|
Loading…
Reference in a new issue