run_tests.sh 420 Bytes
Newer Older
1
#!/bin/bash -e
2

3 4 5 6 7
if [ -z "${NOSE}" ]; then
    which nosetests >/dev/null 2>&1 && NOSE=$(which nosetests)
    which nosetests2 >/dev/null 2>&1 && NOSE=$(which nosetests2)
fi

8
if [ "$1" == '--slow' ]; then
Romain Bignon's avatar
Romain Bignon committed
9
    export ASSNET_FAST_TEST=0
10 11
    shift
else
Romain Bignon's avatar
Romain Bignon committed
12
    export ASSNET_FAST_TEST=1
13 14
fi

15
if [ "$1" != "" ]; then
16
    ${NOSE} -sv $(dirname $0)/../tests/${1}_test.py
17
else
18
    ${NOSE} --all-modules -sv $(dirname $0)/../tests
19
fi