From 79ca952b7660532e90bbab79b605161642e613dd Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Thu, 7 Jun 2007 14:22:48 +0000 Subject: [PATCH] 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 --- test/run | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 test/run diff --git a/test/run b/test/run new file mode 100755 index 000000000..7f4edc76f --- /dev/null +++ b/test/run @@ -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 +