File: run-unit-tests.sh

package info (click to toggle)
backblaze-b2 1.3.8-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 1,288 kB
  • sloc: python: 10,230; sh: 149; makefile: 40
file content (16 lines) | stat: -rwxr-xr-x 353 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash -e
if [ -z "${PYTHON_VIRTUAL_ENVS}" ]; then
    python setup.py nosetests
else
    for virtual_env in ${PYTHON_VIRTUAL_ENVS}
    do
        echo Activating ${virtual_env}
        source ${virtual_env}/bin/activate
        python setup.py nosetests
    done
fi

echo
echo '#################'
echo '# unit tests OK #'
echo '#################'