Commit e054d7a8 authored by Radek Hušek's avatar Radek Hušek
Browse files

add test rule to Makefile (& improve test in groupConnectivityNaive)

parent a9ad147e
default: groupConnectivity.so clean_obj
.PHONY: test
groupConnectivity.so: groupConnectivity.pyx group-connectivity.h setup.py compileTimeOptions.h generateCompileTimeOptions.sh rings.h fast-array.h twoCuts.h parmap.py groupConnectivityNaive.py
./generateCompileTimeOptions.sh > options.h
python setup.py build_ext
......@@ -12,3 +14,7 @@ clean_obj:
clean: clean_obj
rm -f groupConnectivity.so
test: *.py
python2 parmap.py
python2 groupConnectivityNaive.py
......@@ -151,8 +151,10 @@ def myHistogram(data):
return s
if __name__ == "__main__":
import doctest
ret = doctest.testmod()
print "%i tests of %i failed." % ret
import doctest
(f, t) = doctest.testmod()
print "%s: %i tests of %i failed." % (__file__, f, t)
if f > 0:
exit(1)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment