File: run_tests

package info (click to toggle)
python-cogent 1.5.3-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 16,424 kB
  • ctags: 24,343
  • sloc: python: 134,200; makefile: 100; ansic: 17; sh: 10
file content (16 lines) | stat: -rwxr-xr-x 394 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

# make sure we remove .pyc files in case someone has renamed a module ..
find . -name '*.pyc' -delete

# for automated testing - check if using alternate python install 
PYTHON_EXE=python
if [ $PYTHON_TEST_EXE ]; then
    PYTHON_EXE=$PYTHON_TEST_EXE; 
fi

set -e
$PYTHON_EXE setup.py build_ext --inplace
export PYTHONPATH=`pwd`:$PYTHONPATH
cd tests
nice $PYTHON_EXE alltests.py "$@"