Skip to content
Snippets Groups Projects
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
Branches
No related tags found
No related merge requests found
default: groupConnectivity.so clean_obj 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 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 ./generateCompileTimeOptions.sh > options.h
python setup.py build_ext python setup.py build_ext
...@@ -12,3 +14,7 @@ clean_obj: ...@@ -12,3 +14,7 @@ clean_obj:
clean: clean_obj clean: clean_obj
rm -f groupConnectivity.so rm -f groupConnectivity.so
test: *.py
python2 parmap.py
python2 groupConnectivityNaive.py
...@@ -152,7 +152,9 @@ def myHistogram(data): ...@@ -152,7 +152,9 @@ def myHistogram(data):
if __name__ == "__main__": if __name__ == "__main__":
import doctest import doctest
ret = doctest.testmod() (f, t) = doctest.testmod()
print "%i tests of %i failed." % ret print "%s: %i tests of %i failed." % (__file__, f, t)
if f > 0:
exit(1)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment