Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
group-connectivity-pub
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Radek Hušek
group-connectivity-pub
Commits
e054d7a8
Commit
e054d7a8
authored
7 years ago
by
Radek Hušek
Browse files
Options
Downloads
Patches
Plain Diff
add test rule to Makefile (& improve test in groupConnectivityNaive)
parent
a9ad147e
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Makefile
+6
-0
6 additions, 0 deletions
Makefile
groupConnectivityNaive.py
+5
-3
5 additions, 3 deletions
groupConnectivityNaive.py
with
11 additions
and
3 deletions
Makefile
+
6
−
0
View file @
e054d7a8
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
This diff is collapsed.
Click to expand it.
groupConnectivityNaive.py
+
5
−
3
View file @
e054d7a8
...
@@ -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
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment