diff options
-rw-r--r-- | README.rst | 10 | ||||
-rwxr-xr-x | common/pkg/tools/with_venvwrapper.sh | 19 | ||||
-rwxr-xr-x | run_tests.sh | 3 | ||||
-rwxr-xr-x | scripts/develop_mode.sh | 7 |
4 files changed, 31 insertions, 8 deletions
@@ -38,14 +38,8 @@ Tests Client and server tests are both included in leap.soledad.common. If you want to run tests in development mode you must do the following:: - cd common - python setup.py develop - cd ../client - python setup.py develop - cd ../server - python setup.py develop - cd ../common - python setup.py test + scripts/develop_mode.sh + ./run_tests.sh Note that to run CouchDB tests, be sure you have ``CouchDB`` installed on your system. diff --git a/common/pkg/tools/with_venvwrapper.sh b/common/pkg/tools/with_venvwrapper.sh new file mode 100755 index 00000000..b62bc10f --- /dev/null +++ b/common/pkg/tools/with_venvwrapper.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +#Wraps a command in a virtualenwrapper passed as first argument. +#Example: +#with_virtualenvwrapper.sh leap-bitmask ./run_tests.sh + +wd=`pwd` +alias pyver='python -c "import $1;print $1.__path__[0]; print $1.__version__;"' + +source `which virtualenvwrapper.sh` +echo "Activating virtualenv " $1 +echo "------------------------------------" +workon $1 +cd $wd +echo "running version: " +echo `pyver leap.bitmask` +echo `pyver leap.soledad.common` +echo `pyver leap.keymanager` +$2 $3 $4 $5 diff --git a/run_tests.sh b/run_tests.sh new file mode 100755 index 00000000..e36466f8 --- /dev/null +++ b/run_tests.sh @@ -0,0 +1,3 @@ +#!/bin/sh +cd common +python setup.py test diff --git a/scripts/develop_mode.sh b/scripts/develop_mode.sh new file mode 100755 index 00000000..8d2ebaa8 --- /dev/null +++ b/scripts/develop_mode.sh @@ -0,0 +1,7 @@ +#!/bin/sh +cd common +python setup.py develop +cd ../client +python setup.py develop +cd ../server +python setup.py develop |