File: .unittests

package info (click to toggle)
python-pyeclib 1.6.1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 7,648 kB
  • sloc: python: 2,365; ansic: 982; sh: 136; makefile: 30
file content (10 lines) | stat: -rwxr-xr-x 293 bytes parent folder | download | duplicates (6)
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