Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
405b5f31
Kaydet (Commit)
405b5f31
authored
May 18, 2008
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
GHOP #217: add support for compiling Python with coverage checking enabled.
üst
0bb0299a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
0 deletions
+26
-0
Makefile.pre.in
Makefile.pre.in
+6
-0
README
README
+20
-0
No files found.
Makefile.pre.in
Dosyayı görüntüle @
405b5f31
...
...
@@ -375,6 +375,12 @@ run_profile_task:
build_all_use_profile
:
$(MAKE)
all
CFLAGS
=
"
$(CFLAGS)
-fprofile-use"
coverage
:
@
echo
"Building with support for coverage checking:"
$(MAKE)
clean
$(MAKE)
all
CFLAGS
=
"
$(CFLAGS)
-O0 -pg -fprofile-arcs -ftest-coverage"
LIBS
=
"
$(LIBS)
-lgcov"
# Build the interpreter
$(BUILDPYTHON)
:
Modules/python.o $(LIBRARY) $(LDLIBRARY)
$(LINKCC)
$(LDFLAGS)
$(LINKFORSHARED)
-o
$@
\
...
...
README
Dosyayı görüntüle @
405b5f31
...
...
@@ -917,6 +917,26 @@ libraries. The Makefile/Setup mechanism can be used to compile and
link most extension modules statically.
Coverage checking
-----------------
For C coverage checking using gcov, run "make coverage". This will
build a Python binary with profiling activated, and a ".gcno" and
".gcda" file for every source file compiled with that option. With
the built binary, now run the code whose coverage you want to check.
Then, you can see coverage statistics for each individual source file
by running gcov, e.g.
gcov -o Modules zlibmodule
This will create a "zlibmodule.c.gcov" file in the current directory
containing coverage info for that source file.
This works only for source files statically compiled into the
executable; use the Makefile/Setup mechanism to compile and link
extension modules you want to coverage-check statically.
Testing
-------
...
...
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