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: clean_obj
.PHONY: test groupConnectivity.pyx group-connectivity.h compileTimeOptions.h rings.h fast-array.h twoCuts.h
./ > options.h
python build_ext
......@@ -12,3 +14,7 @@ clean_obj:
clean: clean_obj
rm -f
test: *.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:
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