[DRE-commits] r2741 - packages/rcov/trunk/debian

paulvt at alioth.debian.org paulvt at alioth.debian.org
Sun Jun 1 13:09:23 UTC 2008


Author: paulvt
Date: 2008-06-01 13:09:21 +0000 (Sun, 01 Jun 2008)
New Revision: 2741

Added:
   packages/rcov/trunk/debian/rcov.1
   packages/rcov/trunk/debian/rcov.manpages
Modified:
   packages/rcov/trunk/debian/changelog
   packages/rcov/trunk/debian/control
   packages/rcov/trunk/debian/rules
Log:
* Added myself to the Uploaders.
* Included manpage for rcov(1), contributed by Tobias Grimm <tg at e-tobi.net>;
  added debian/rcov.1 and debian/rcov.manpages.  (Closes: #478139).
* Bumped standards version to 3.7.3.
* Fixed syntax of Homepage field.
* Added Vcs-* fields.
* Updated debian/rules: 
  - Use the ruby-setup-rb CDBS class again, since it has been fixed to
    use --installdirs.
  - Updated the build-depend on ruby-pkg-tools to require >= 0.13
    for this.

Modified: packages/rcov/trunk/debian/changelog
===================================================================
--- packages/rcov/trunk/debian/changelog	2008-06-01 12:26:43 UTC (rev 2740)
+++ packages/rcov/trunk/debian/changelog	2008-06-01 13:09:21 UTC (rev 2741)
@@ -1,3 +1,19 @@
+rcov (0.8.1.2-2) unstable; urgency=low
+
+  * Added myself to the Uploaders.
+  * Included manpage for rcov(1), contributed by Tobias Grimm <tg at e-tobi.net>;
+    added debian/rcov.1 and debian/rcov.manpages.  (Closes: #478139).
+  * Bumped standards version to 3.7.3.
+  * Fixed syntax of Homepage field.
+  * Added Vcs-* fields.
+  * Updated debian/rules: 
+    - Use the ruby-setup-rb CDBS class again, since it has been fixed to
+      use --installdirs.
+    - Updated the build-depend on ruby-pkg-tools to require >= 0.13
+      for this.
+
+ -- Paul van Tilburg <paulvt at debian.org>  Sun, 01 Jun 2008 15:06:26 +0200
+
 rcov (0.8.1.2-1) unstable; urgency=low
 
   * New upstream release

Modified: packages/rcov/trunk/debian/control
===================================================================
--- packages/rcov/trunk/debian/control	2008-06-01 12:26:43 UTC (rev 2740)
+++ packages/rcov/trunk/debian/control	2008-06-01 13:09:21 UTC (rev 2741)
@@ -2,10 +2,12 @@
 Section: devel
 Priority: optional
 Maintainer: Ari Pollak <ari at debian.org>
-Uploaders: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.alioth.debian.org>
-Build-Depends: cdbs, debhelper (>= 5), ruby-pkg-tools (>= 0.8), ruby1.8, ruby1.8-dev
-Standards-Version: 3.6.2
-Homepage: <http://eigenclass.org/hiki.rb?rcov>
+Uploaders: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.alioth.debian.org>, Paul van Tilburg <paulvt at debian.org>
+Build-Depends: cdbs, debhelper (>= 5), ruby-pkg-tools (>= 0.13), ruby1.8, ruby1.8-dev
+Standards-Version: 3.7.3
+Homepage: http://eigenclass.org/hiki.rb?rcov
+Vcs-Svn: svn://svn.debian.org/pkg-ruby-extras/packages/rcov/trunk/
+Vcs-Browser: http://svn.debian.org/wsvn/pkg-ruby-extras/packages/rcov/trunk/
 
 Package: rcov
 Architecture: any

Added: packages/rcov/trunk/debian/rcov.1
===================================================================
--- packages/rcov/trunk/debian/rcov.1	                        (rev 0)
+++ packages/rcov/trunk/debian/rcov.1	2008-06-01 13:09:21 UTC (rev 2741)
@@ -0,0 +1,209 @@
+.\"Text automatically generated by txt2man
+.TH rcov 1 "27 April 2008" "rcov 0.8.1.2 2007-11-22" "rcov test coverage analysis"
+.SH NAME
+\fBrcov \fP- create a code coverage report for Ruby tests
+\fB
+.SH SYNOPSIS
+.nf
+.fam C
+\fBrcov\fP [\fIoptions\fP] <script1.rb> [script2.rb] [-- \fB--extra\fP-\fIoptions\fP]
+
+.fam T
+.fi
+.fam T
+.fi
+.SH DESCRIPTION
+\fBrcov\fP is a code coverage tool for Ruby. It creates code coverage reports
+showing the unit test coverage of the target code.
+.PP
+\fBrcov\fP does "statement coverage", also referred to as "C0 coverage analysis".
+It tests, if each line of the source code has been executed.
+.PP
+\fBrcov\fP is typically used to find the areas of a program that have not been
+sufficiently tested. It reports, what code has not been run by any test
+cases.
+.PP
+It can easily be integrated into build processes (e.g. with rake or rant) and
+creates the coverage reports in HTML or text format.
+.SH OPTIONS
+
+.TP
+.B
+\fB-o\fP, \fB--output\fP
+Destination directory.
+.TP
+.B
+\fB-I\fP, \fB--include\fP PATHS
+Prepend PATHS to $: (colon separated list)
+.TP
+.B
+--[no-]comments
+Mark all comments by default. (default: \fB--no-comments\fP)
+.TP
+.B
+\fB--test-unit-only\fP
+Only trace code executed inside TestCases.
+.TP
+.B
+\fB--spec-only\fP
+Only trace code executed inside RSpec specs.
+.TP
+.B
+\fB-n\fP, \fB--no-color\fP
+Create colorblind-safe output.
+.TP
+.B
+\fB-i\fP, \fB--include-file\fP PATTERNS
+Generate info for files matching a pattern (comma-separated regexp list)
+.TP
+.B
+\fB-x\fP, \fB--exclude\fP PATTERN
+Don't generate info for files matching a pattern (comma-separated regexp
+list)
+.TP
+.B
+\fB--exclude-only\fP PATTERNS
+Skip info only for files matching the given patterns.
+.TP
+.B
+\fB--rails\fP
+Skip config/, environment/ and vendor/.
+.TP
+.B
+--[no-]callsites
+Show callsites in generated XHTML report. (somewhat slower; disabled by
+default)
+.TP
+.B
+--[no-]xrefs
+Generate fully cross-referenced report. (includes \fB--callsites\fP)
+.TP
+.B
+\fB-p\fP, \fB--profile\fP
+Generate bogo-profiling info.
+.TP
+.B
+\fB-r\fP, \fB--range\fP RANGE
+Color scale range for profiling info (dB).
+.TP
+.B
+\fB-a\fP, \fB--annotate\fP
+Generate annotated source code.
+.TP
+.B
+\fB-T\fP, \fB--text-report\fP
+Dump detailed plain-text report to stdout. (filename, LoC, total lines,
+coverage)
+.TP
+.B
+\fB-t\fP, \fB--text-summary\fP
+Dump plain-text summary to stdout.
+.TP
+.B
+\fB--text-counts\fP
+Dump execution counts in plaintext.
+.TP
+.B
+\fB--text-coverage\fP
+Dump coverage info to stdout, using ANSI color sequences unless \fB-n\fP.
+.TP
+.B
+\fB--gcc\fP
+Dump uncovered line in GCC error format.
+.TP
+.B
+\fB--aggregate\fP FILE
+Aggregate data from previous runs in FILE. Overwrites FILE with the
+merged data. FILE is created if necessary.
+.TP
+.B
+\fB-D\fP, \fB--text-coverage-diff\fP [FILE]
+Compare code coverage with saved state in FILE, defaults to coverage.info.
+Implies \fB--comments\fP.
+.TP
+.B
+\fB--save\fP [FILE]
+Save coverage data to FILE, for later use with \fBrcov\fP \fB-D\fP.
+(default: coverage.info)
+.TP
+.B
+--[no-]html
+Generate HTML output. (default: \fB--html\fP)
+.TP
+.B
+\fB--sort\fP CRITERION
+Sort files in the output by the specified field (name, loc, coverage)
+.TP
+.B
+\fB--sort-reverse\fP
+Reverse files in the output.
+.TP
+.B
+\fB--threshold\fP INT
+Only list files with coverage < INT %. (default: 101)
+.TP
+.B
+\fB--charset\fP CHARSET
+Charset used in Content-Type declaration of HTML reports.
+.TP
+.B
+--[no-]validator-links
+Add link to W3C's validation services. (default: true)
+.TP
+.B
+\fB--only-uncovered\fP
+Same as \fB--threshold\fP 100
+.TP
+.B
+\fB--replace-progname\fP
+Replace $0 when loading the .rb files.
+.TP
+.B
+\fB-w\fP
+Turn warnings on (like ruby).
+.TP
+.B
+\fB--no-rcovrt\fP
+Do not use the optimized C runtime. (will run 30-300 times slower)
+.TP
+.B
+\fB--diff-cmd\fP PROGNAME
+Use PROGNAME for \fB--text-coverage-diff\fP. (default: diff)
+.TP
+.B
+\fB-h\fP, \fB--help\fP
+Show extended help message
+.TP
+.B
+\fB--report-cov-bug\fP SELECTOR
+Report coverage analysis bug for the method specified by SELECTOR
+(format: Foo::Bar#method, A::B.method)
+.TP
+.B
+\fB--version\fP
+Show version
+.RE
+.PP
+
+.SH EXAMPLES
+To simply run \fBrcov\fP on all ruby files in the current directory and create a
+HTML coverage report in ./coverage:
+.PP
+\fBrcov\fP *.rb
+.PP
+To run the tests in ./tests, include ./lib, only take care of code executed
+from TestCases and output a summary to STDOUT:
+.PP
+\fBrcov\fP \fB--test-unit-only\fP \fB-t\fP \fB-I\fP./lib ./tests/*.rb
+.SH SEE ALSO
+\fBrunit\fP(1), \fBrake\fP(1), \fBrant\fP(1)
+.PP
+http://eigenclass.org/hiki.rb?\fBrcov\fP
+.PP
+Full Documentation about the integration into other tools is available in
+/usr/share/doc/\fBrcov\fP/README.*
+.SH AUTHOR
+The manpage is provided by Tobias Grimm <debian at e-tobi.net> as part of the
+Debian's \fBrcov\fP package. Upstream author of \fBrcov\fP is Mauricio Fernandez <mfp at acm.org>.
+.PP
+All the option descriptions have mainly be taken from the help output of \fBrcov\fP.

Added: packages/rcov/trunk/debian/rcov.manpages
===================================================================
--- packages/rcov/trunk/debian/rcov.manpages	                        (rev 0)
+++ packages/rcov/trunk/debian/rcov.manpages	2008-06-01 13:09:21 UTC (rev 2741)
@@ -0,0 +1 @@
+debian/rcov.1

Modified: packages/rcov/trunk/debian/rules
===================================================================
--- packages/rcov/trunk/debian/rules	2008-06-01 12:26:43 UTC (rev 2740)
+++ packages/rcov/trunk/debian/rules	2008-06-01 13:09:21 UTC (rev 2741)
@@ -2,18 +2,9 @@
 
 include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/cdbs/1/rules/simple-patchsys.mk
-#include /usr/share/ruby-pkg-tools/1/class/ruby-setup-rb.mk
+include /usr/share/ruby-pkg-tools/1/class/ruby-setup-rb.mk
 
-build/rcov::
-	ruby1.8 setup.rb config --installdirs=std
-	ruby1.8 setup.rb setup
-
-install/rcov::
-	ruby1.8 setup.rb install --prefix=debian/rcov
-
 clean::
-	ruby1.8 setup.rb config --installdirs=std
-	ruby1.8 setup.rb distclean
 	rm -f .config-*
 	# Reset first line of rcov to the original line
 	sed -i -e '1s/.*/#!\/usr\/bin\/env ruby/' bin/rcov




More information about the Pkg-ruby-extras-commits mailing list