Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
graph_drawing
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
graph_drawing
Commits
859c2948
Commit
859c2948
authored
Jan 05, 2012
by
Taddeus Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed coverage in Makefile.
parent
a350c6f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
4 deletions
+18
-4
tests/rules.mk
tests/rules.mk
+18
-4
No files found.
tests/rules.mk
View file @
859c2948
TESTS
=
$(
wildcard
tests/test_
*
.py
)
TESTS
=
$(
wildcard
tests/test_
*
.py
)
COVERAGE_OUTPUT_DIR
:=
coverage
COVERAGE_OUTPUT_DIR
:=
coverage
OMIT
:=
--omit
/usr/share/pyshared/
*
OMIT
:=
/usr/share/pyshared/
*
RM
=
rm
-rf
ifeq
($(findstring python-coverage,$(wildcard /usr/bin/*)), python-coverage)
ifeq
($(findstring python-coverage,$(wildcard /usr/bin/*)), python-coverage)
COVERAGE
=
/usr/bin/python-coverage
COVERAGE
=
/usr/bin/python-coverage
...
@@ -12,15 +13,28 @@ endif
...
@@ -12,15 +13,28 @@ endif
test
:
$(TESTS) build
test
:
$(TESTS) build
ifeq
($(findstring python-coverage,$(wildcard /usr/bin/*)), python-coverage)
coverage
:
${COVERAGE} build
${COVERAGE}
erase
${RM}
${COVERAGE_OUTPUT_DIR}
/
*
mkdir
${COVERAGE_OUTPUT_DIR}
2>/dev/null
||
true
for
t
in
${TESTS}
;
do
\
echo
$$
t
;
\
${COVERAGE}
-x
test.py
$$
t
;
\
${COVERAGE}
combine
;
\
done
${COVERAGE}
html
--omit
=
${OMIT}
-d
${COVERAGE_OUTPUT_DIR}
else
coverage
:
${COVERAGE} build
coverage
:
${COVERAGE} build
mkdir
${COVERAGE_OUTPUT_DIR}
2>/dev/null
||
true
mkdir
${COVERAGE_OUTPUT_DIR}
2>/dev/null
||
true
${COVERAGE}
erase
${COVERAGE}
erase
for
t
in
${TESTS}
;
do
\
for
t
in
${TESTS}
;
do
\
echo
$$
t
;
\
echo
$$
t
;
\
${COVERAGE}
${OMIT}
-x
test.py
$$
t
;
\
${COVERAGE}
--omit
${OMIT}
-x
test.py
$$
t
;
\
${COVERAGE}
${OMIT}
-c
;
\
${COVERAGE}
--omit
${OMIT}
-c
;
\
done
done
${COVERAGE}
html
${OMIT}
--dir
${COVERAGE_OUTPUT_DIR}
${COVERAGE}
html
--omit
${OMIT}
--dir
${COVERAGE_OUTPUT_DIR}
endif
${COVERAGE}
:
${COVERAGE}
:
@
echo
"Install package 'python-coverage' to generate a coverage report."
@
echo
"Install package 'python-coverage' to generate a coverage report."
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment