Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
598af3a7
Commit
598af3a7
authored
Jan 29, 2015
by
Damien George
Browse files
unix: Add "coverage" target to do coverage testing using gcov.
parent
827b0f74
Changes
1
Hide whitespace changes
Inline
Side-by-side
unix/Makefile
View file @
598af3a7
...
...
@@ -131,3 +131,11 @@ fast:
minimal
:
@
echo
Make sure to run make
-B
$(MAKE)
COPT
=
"-Os -DNDEBUG"
CFLAGS_EXTRA
=
'-DMP_CONFIGFILE="<mpconfigport_minimal.h>"'
BUILD
=
build-minimal
PROG
=
micropython_minimal
MICROPY_PY_TIME
=
0
MICROPY_PY_TERMIOS
=
0
MICROPY_PY_SOCKET
=
0
MICROPY_PY_FFI
=
0
# build an interpreter for coverage testing and do the testing
coverage
:
@
echo
Make sure to run make
-B
$(MAKE)
COPT
=
"-O0"
CFLAGS_EXTRA
=
'-fprofile-arcs -ftest-coverage'
LDFLAGS_EXTRA
=
'-fprofile-arcs -ftest-coverage'
BUILD
=
build-coverage
PROG
=
micropython_coverage
$(
eval
DIRNAME
=
$(
notdir
$(CURDIR)
))
cd
../tests
&&
MICROPY_MICROPYTHON
=
../
$(DIRNAME)
/micropython_coverage ./run-tests
gcov
-o
build-coverage/py ../py/
*
.c
Write
Preview
Supports
Markdown
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