RPM Package Manager, CVS Repository
  http://rpm5.org/cvs/
  ____________________________________________________________________________

  Server: rpm5.org                         Name:   Jeff Johnson
  Root:   /v/rpm/cvs                       Email:  [EMAIL PROTECTED]
  Module: rpm                              Date:   20-May-2008 18:40:57
  Branch: rpm-5_1                          Handle: 2008052016405601

  Modified files:           (Branch: rpm-5_1)
    rpm                     CHANGES Makefile.am

  Log:
    - jbj: add toplevel lcov-foo Makefile targets. Current coverage at
        http://wraptastic.org/pub/jbj/rpm-5.1.DEVEL-lcov

  Summary:
    Revision    Changes     Path
    1.2288.2.28 +2  -0      rpm/CHANGES
    2.215.2.3   +31 -0      rpm/Makefile.am
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: rpm/CHANGES
  ============================================================================
  $ cvs diff -u -r1.2288.2.27 -r1.2288.2.28 CHANGES
  --- rpm/CHANGES       20 May 2008 15:09:43 -0000      1.2288.2.27
  +++ rpm/CHANGES       20 May 2008 16:40:56 -0000      1.2288.2.28
  @@ -1,4 +1,6 @@
   5.1.1 -> 5.1.2:
  +    - jbj: add toplevel lcov-foo Makefile targets. Current coverage at
  +     http://wraptastic.org/pub/jbj/rpm-5.1.DEVEL-lcov
       - jbj: add --enable-build-gcov for CFLAGS -fprofile-arcs -ftest-coverage.
       - jbj: hot-wire a top level "make check". noisy sanity check atm, todo++.
       - jbj: backport top level tests/* for "make check". No tests in Makefile
  @@ .
  patch -p0 <<'@@ .'
  Index: rpm/Makefile.am
  ============================================================================
  $ cvs diff -u -r2.215.2.2 -r2.215.2.3 Makefile.am
  --- rpm/Makefile.am   20 May 2008 15:09:43 -0000      2.215.2.2
  +++ rpm/Makefile.am   20 May 2008 16:40:57 -0000      2.215.2.3
  @@ -222,6 +222,37 @@
        mkdir -p $@
        - [ X"@__DOXYGEN@" != Xno ] && @__DOXYGEN@
   
  +.PHONY:      lcov-reset      # run lcov from scratch, always
  +lcov-reset:
  +     make lcov-run
  +     make lcov-report
  +
  +# run lcov from scratch if the dir is not there
  +lcov:
  +     make lcov-reset
  +
  +.PHONY:      lcov-run        # reset run coverage tests
  +lcov-run:
  +     @-rm -rf lcov
  +     find . -name "*.gcda" -exec rm {} \;
  +     make check
  +
  +.PHONY:      lcov-report     # generate report based on current coverage data
  +lcov-report:
  +     mkdir lcov
  +     -lcov -d rpmio -d rpmdb -d lib -d build -d tools -d . --capture 
--output-file lcov/lcov.info
  +     lcov -l lcov/lcov.info | grep -v "`cd $(top_srcdir) && pwd`" | cut -d: 
-f1 > lcov/remove
  +     lcov -r lcov/lcov.info `cat lcov/remove` > lcov/lcov.cleaned.info
  +     rm lcov/remove
  +     mv lcov/lcov.cleaned.info lcov/lcov.info
  +     genhtml -t "$(PACKAGE_STRING)" -o lcov lcov/lcov.info
  +
  +#.PHONY:     lcov-upload
  +#lcov-upload: lcov
  +#    mkdir -p /var/ftp/pub/jbj/rpm-$(VERSION)
  +#    tar -C lcov -cf - . | (cd /var/ftp/pub/jbj/rpm-$(VERSION)-lcov; tar xf 
-)
  +#    rsync -rvz -e ssh --delete lcov/* ???
  +
   cscope:
        cscope -b -R
   
  @@ .
______________________________________________________________________
RPM Package Manager                                    http://rpm5.org
CVS Sources Repository                                [email protected]

Reply via email to