Skip to content

Instantly share code, notes, and snippets.

@x746e
Created December 19, 2012 09:32
Show Gist options
  • Save x746e/4335552 to your computer and use it in GitHub Desktop.
Save x746e/4335552 to your computer and use it in GitHub Desktop.
run-booking-tests.sh
#!/bin/sh
WEB2PY_DIR=$HOME/work/web2py-dev
VENV=$HOME/work/venv
#EMEDIATE_GLOBAL_CONF=$HOME/work/global-unittests.conf
CODEDIR=$HOME/work/eas-hgsvn
CODEDIR_GUI=$CODEDIR/booking/gui
#TESTS="$CODEDIR_GUI/applications/api $CODEDIR_GUI/applications/booking $CODEDIR_GUI/lib/w2p $CODEDIR/systest/support/tests.py"
. $VENV/bin/activate
export EMEDIATE_GLOBAL_CONF
export PYTHONPATH=$CODEDIR/common_libs/pythonlibs:$CODEDIR/booking/gui/lib:$WEB2PY_DIR
export DONT_POLLUTE_SYS_PATH=true
OPTS='--exe --include ''Test(.py)?$'' --exclude ''^skipTest$'' --nologcapture -s'
cd $CODEDIR/booking/cronjobs/src/createSample; nosetests $OPTS $@ test
cd $CODEDIR/booking/cronjobs/src/filterLog; nosetests $OPTS $@ test
cd $CODEDIR/booking/cronjobs/src/forecast; nosetests ${OPTS} $@ test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment