added bin/runtests.sh script to run tests

--HG--
extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40816
This commit is contained in:
Pablo Hoffman 2009-01-30 23:20:49 +00:00
parent 20a61caa2c
commit 6220609718
1 changed files with 18 additions and 0 deletions

18
scrapy/trunk/bin/runtests.sh Executable file
View File

@ -0,0 +1,18 @@
#!/bin/sh
# look for twisted trial command in common known locations
if [ -x /usr/bin/trial ]; then
trial="/usr/bin/trial"
elif [ -x /usr/lib64/twisted/bin/trial ]; then
trial="/usr/lib64/twisted/bin/trial"
fi
# disable custom settings for running tests in a neutral environment
export SCRAPY_SETTINGS_DISABLED=1
if [ $# -eq 0 ]; then
$trial scrapy
else
$trial "$@"
fi