command: Fix except declaration for get_comedi_cmd_pointer
[pycomedi.git] / test.sh
1 #!/bin/bash -e
2 # -e to abort script at first error
3
4 python setup.py build_ext --inplace
5 nosetests --with-doctest pycomedi
6 ls pycomedi | grep '.pyx$'| while read file; do
7   mod="${file/.pyx/}"
8   echo "$mod"
9   python -c "import doctest, sys; import pycomedi.$mod as m; r = doctest.testmod(m); print(r); sys.exit(r.failed)"
10 done
11 nosetests --with-doctest --doctest-extension=.txt doc
12 nosetests --with-doctest doc/demo/*.py