This repository has been archived by the owner on Sep 23, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Testing shell script added for testing of python src (django mostly).
- Loading branch information
1 parent
38114d1
commit 7f23d0d
Showing
3 changed files
with
27 additions
and
9 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,26 @@ | |||
# Usage: | |||
# | |||
# $ ./run-tests.sh django-app-name-to-test | |||
# | |||
# If you do not specify an app name, all test will run. | |||
# TODO: let '--verbosity' be passed in as an argument. | |||
# | |||
PYTHON_EXE="/usr/bin/env python" | |||
|
|||
NIMBUS_WEBDIR_REL="`dirname $0`/../.." | |||
NIMBUS_WEBDIR=`cd $NIMBUS_WEBDIR_REL; pwd` | |||
|
|||
NIMBUS_WEBCONF="$NIMBUS_WEBDIR/nimbusweb.conf" | |||
if [ ! -f "$NIMBUS_WEBCONF" ]; then | |||
echo "" | |||
echo "Cannot find conf file, exiting. (expected at '$NIMBUS_WEBCONF')" | |||
exit 1 | |||
fi | |||
|
|||
NIMBUS_PYLIB="$NIMBUS_WEBDIR/lib/python" | |||
NIMBUS_PYSRC="$NIMBUS_WEBDIR/src/python" | |||
|
|||
PYTHONPATH="$NIMBUS_PYSRC:$NIMBUS_PYLIB:$PYTHONPATH" | |||
export PYTHONPATH | |||
|
|||
$PYTHON_EXE $NIMBUS_PYSRC/nimbusweb/portal/manage.py test --verbosity=2 $1 |