File: .unittests

package info (click to toggle)
python-pyeclib 1.5.0-4
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 7,604 kB
  • sloc: python: 2,266; ansic: 980; sh: 59; makefile: 48
file content (10 lines) | stat: -rwxr-xr-x 293 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash

TOP_DIR=$(python -c "import os; print os.path.dirname(os.path.realpath('$0'))")

python -c 'from distutils.version import LooseVersion as Ver; import nose, sys; sys.exit(0 if Ver(nose.__version__) >= Ver("1.2.0") else 1)'
cd $TOP_DIR/test
nosetests $@
rvalue=$?
cd -
exit $rvalue