[DRE-commits] [SCM] ruby-test-spec.git branch, master, updated. upstream/0.10.0-8-gcc337f8

Cédric Boutillier cedric.boutillier at gmail.com
Wed Sep 21 23:42:26 UTC 2011


The following commit has been merged in the master branch:
commit 2711dd45a85f4d09679b3f22db6de4cc98889c90
Author: Cédric Boutillier <cedric.boutillier at gmail.com>
Date:   Thu Sep 22 00:42:24 2011 +0200

    add manpage for bin/specrb

diff --git a/debian/ruby-test-spec.manpages b/debian/ruby-test-spec.manpages
new file mode 100644
index 0000000..c5cb77a
--- /dev/null
+++ b/debian/ruby-test-spec.manpages
@@ -0,0 +1 @@
+man/specrb.1
diff --git a/debian/rules b/debian/rules
index a5e7dc8..4b82866 100755
--- a/debian/rules
+++ b/debian/rules
@@ -13,3 +13,12 @@
 
 %:
 	dh $@ --buildsystem=ruby --with ruby
+
+override_dh_installman:
+	mkdir man
+	pod2man --center "" --release "" --name SPECRB --utf8 debian/specrb.1.pod man/specrb.1
+	dh_installman
+
+override_dh_auto_clean:
+	rm -rf man
+	dh_auto_clean
diff --git a/debian/specrb.1.pod b/debian/specrb.1.pod
new file mode 100644
index 0000000..e608228
--- /dev/null
+++ b/debian/specrb.1.pod
@@ -0,0 +1,102 @@
+=encoding UTF-8
+
+=head1 NAME
+
+specrb - standalone test runner for test/spec and Test::Unit test suites
+
+=head1 SYNOPSIS
+
+B<specrb> [I<OPTIONS>] [I<FILES> | -a ] [-- untouched arguments]
+
+=head1 DESCRIPTION
+
+The Ruby script B<specrb> allows you to run tests written with test/spec from
+the command line. It can also be used for plain Test::Unit test suites. You can
+either specify the names of the test files you want to run, or let B<specrb>
+find automatically all the tests in your project, by using the B<-a> switch
+(see TEST/SPEC OPTIONS below).
+
+You can also use various options on the command line to pass parameters to the
+Ruby interpreterm or to modify the behavior of test/spec and/or test/unit.
+
+=head1 RUBY OPTIONS
+
+=over
+
+=item B<-e>, B<--eval> LINE
+
+evaluate a LINE of code
+
+=item  B<-d>, B<--debug>
+
+set debugging flags (set $DEBUG to true)
+
+=item B<-w>, B<--warn>
+
+turn warnings on for your script
+
+=item B<-I>, B<--include> PATH
+
+specify $LOAD_PATH (may be used more than once)
+
+=item B<-r>, B<--require> LIBRARY
+
+require the LIBRARY, before executing your script
+
+=back
+
+
+=head1 TEST/SPEC OPTIONS:
+
+=over
+
+=item B<-s>, B<--specdox>
+
+do AgileDox-like output
+
+=item B<--rdox>
+
+do AgileDox-like output with RDoc formatting
+
+=item B<-a>, B<--automatic>
+
+gather tests from ./test/, include ./lib/
+
+=back
+
+
+=head1 TEST::UNIT OPTIONS:
+
+=over
+
+=item B<-n>, B<--name> NAME
+
+runs tests matching regexp NAME
+
+=item B<-t>, B<--testcase> TESTCASE
+
+runs tests in TestCases matching regexp TESTCASE
+
+=back
+
+
+=head1 COMMON OPTIONS:
+
+=over
+
+=item B<-h>, B<--help>
+
+show a message similar to this manpage
+
+=item B<--version>
+
+show version
+
+=back
+
+=head1 AUTHORS
+
+The test/spec library has been written by Christian Neukirchen <http://purl.org/net/chneukirchen>.
+
+This manual page, inspired by the help message of B<specrb>, has been written
+for the Debian Project by Cédric Boutillier (but may used by others).

-- 
ruby-test-spec.git



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