[Pkg-haskell-commits] darcs: shelltestrunner: Initial Check-In

Iustin Pop iustin at debian.org
Sun Mar 18 11:43:47 UTC 2012


Sun Mar 18 11:38:01 UTC 2012  Iustin Pop <iustin at debian.org>
  * Initial Check-In
  Ignore-this: 84893d5b7da4cd2aac0e3cd49742bb74

    A ./changelog
    A ./compat
    A ./control
    A ./copyright
    A ./rules
    A ./shelltest.md
    A ./shelltestrunner.install
    A ./shelltestrunner.manpages
    A ./source/
    A ./source/format
    A ./watch

Sun Mar 18 11:38:01 UTC 2012  Iustin Pop <iustin at debian.org>
  * Initial Check-In
  Ignore-this: 84893d5b7da4cd2aac0e3cd49742bb74
diff -rN -u old-shelltestrunner//changelog new-shelltestrunner//changelog
--- old-shelltestrunner//changelog	1970-01-01 00:00:00.000000000 +0000
+++ new-shelltestrunner//changelog	2012-03-18 11:43:47.055249508 +0000
@@ -0,0 +1,5 @@
+shelltestrunner (1.2.1-1) UNRELEASED; urgency=low
+
+  * Initial release. (Closes: #664466)
+
+ -- Iustin Pop <iustin at debian.org>  Sat, 17 Mar 2012 23:34:05 +0100
diff -rN -u old-shelltestrunner//compat new-shelltestrunner//compat
--- old-shelltestrunner//compat	1970-01-01 00:00:00.000000000 +0000
+++ new-shelltestrunner//compat	2012-03-18 11:43:47.055249508 +0000
@@ -0,0 +1 @@
+7
diff -rN -u old-shelltestrunner//control new-shelltestrunner//control
--- old-shelltestrunner//control	1970-01-01 00:00:00.000000000 +0000
+++ new-shelltestrunner//control	2012-03-18 11:43:47.055249508 +0000
@@ -0,0 +1,48 @@
+Source: shelltestrunner
+Section: haskell
+Priority: extra
+Maintainer: Debian Haskell Group <pkg-haskell-maintainers at lists.alioth.debian.org>
+Uploaders: Iustin Pop <iustin at debian.org>
+Build-Depends: debhelper (>= 7)
+  , cdbs
+  , haskell-devscripts (>= 0.8)
+  , ghc
+  , pandoc
+# Make sure all dependencies listed in the cabal file are represented here,
+# including their version bounds. It is sufficient to add the bounds to the
+# -dev package only.
+  , libghc-utf8-string-dev (>= 0.3.5)
+  , libghc-utf8-string-dev (<< 0.4)
+  , libghc-diff-dev (>= 0.1)
+  , libghc-diff-dev (<< 0.2)
+  , libghc-filemanip-dev (>= 0.3)
+  , libghc-filemanip-dev (<< 0.4)
+  , libghc-cmdargs-dev (>= 0.7)
+  , libghc-cmdargs-dev (<< 0.10)
+  , libghc-cabal-file-th-dev
+  , libghc-regex-tdfa-dev (>= 1.1)
+  , libghc-regex-tdfa-dev (<< 1.2)
+  , libghc-test-framework-dev (>= 0.3.2)
+  , libghc-test-framework-dev (<< 0.6)
+  , libghc-test-framework-hunit-dev (>= 0.2)
+  , libghc-test-framework-hunit-dev (<< 0.3)
+Standards-Version: 3.9.3
+Homepage: http://hackage.haskell.org/package/shelltestrunner
+Vcs-Darcs: http://darcs.debian.org/pkg-haskell/shelltestrunner
+Vcs-Browser: http://darcs.debian.org/cgi-bin/darcsweb.cgi?r=pkg-haskell/shelltestrunner
+
+Package: shelltestrunner
+Architecture: any
+Depends: ${haskell:Depends}
+  , ${shlibs:Depends}
+  , ${misc:Depends}
+Recommends: ${haskell:Recommends}
+Suggests: ${haskell:Suggests}
+Provides: ${haskell:Provides}
+Description: test command-line programs or arbitrary shell commands
+ shelltestrunner is a cross-platform tool for testing command-line
+ programs (or arbitrary shell commands). It reads simple declarative
+ tests specifying a command, some input, and the expected output,
+ error output and exit status. Tests can be run selectively, in
+ parallel, with a timeout, in color, and/or with differences
+ highlighted.
diff -rN -u old-shelltestrunner//copyright new-shelltestrunner//copyright
--- old-shelltestrunner//copyright	1970-01-01 00:00:00.000000000 +0000
+++ new-shelltestrunner//copyright	2012-03-18 11:43:47.055249508 +0000
@@ -0,0 +1,29 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: shelltestrunner
+Upstream-Contact: Simon Michael <simon at joyful.com>
+Source: http://hackage.haskell.org/package/shelltestrunner
+
+Files: *
+Copyright: 2009-2011 Simon Michael <simon at joyful.com>
+License: GPL-3.0+
+
+Files: debian/*
+Copyright: 2012 Iustin Pop <iustin at debian.org>
+License: GPL-3.0+
+
+License: GPL-3.0+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+ .
+ This package is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".
diff -rN -u old-shelltestrunner//rules new-shelltestrunner//rules
--- old-shelltestrunner//rules	1970-01-01 00:00:00.000000000 +0000
+++ new-shelltestrunner//rules	2012-03-18 11:43:47.059247885 +0000
@@ -0,0 +1,14 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/hlibrary.mk
+
+build/$(CABAL_PACKAGE) :: build-ghc-stamp debian/shelltest.1
+
+install/$(CABAL_PACKAGE) :: build/$(CABAL_PACKAGE)
+
+debian/shelltest.1: debian/shelltest.md
+	pandoc -s -w man $< -o $@
+
+clean::
+	rm -f debian/shelltest.1
diff -rN -u old-shelltestrunner//shelltest.md new-shelltestrunner//shelltest.md
--- old-shelltestrunner//shelltest.md	1970-01-01 00:00:00.000000000 +0000
+++ new-shelltestrunner//shelltest.md	2012-03-18 11:43:47.059247885 +0000
@@ -0,0 +1,131 @@
+% SHELLTEST(1) shelltestrunner | version 1.2.1
+% Simon Michael
+% March 18 2012
+
+# NAME
+
+shelltestrunner - test command-line programs or arbitrary shell commands
+
+# SYNOPSIS
+
+shelltest [*options*] {*testfiles*|*testdirs*}
+
+# DESCRIPTION
+
+shelltestrunner tests command-line programs (or arbitrary shell
+commands). It reads simple declarative tests specifying a command,
+some input, and the expected output, and can run them run in parallel,
+selectively, with a timeout, in color, and/or with differences
+highlighted.
+
+# OPTIONS
+
+-a, \--all
+:    Show all failure output, even if large
+
+-c, \--color
+:    Show colored output if your terminal supports it
+
+-d, \--diff
+:    Show failures in diff format
+
+-p, \--precise
+:    Show failure output precisely (good for whitespace)
+
+-x *STR*, \--exclude=*STR*
+:    Exclude test files whose path contains *STR*
+
+\--execdir
+:    Run tests from within the test file's directory. Test commands
+     normally run within your current directory; `--execdir`
+     makes them run within the directory where they are defined, instead.
+
+\--extension=*EXT*
+:    Filename suffix of test files (default: *.test*)
+
+-w, \--with=*EXECUTABLE*
+:    Replace the first word of (unindented) test commands. This option
+     replaces the first word of all test commands with something
+     else, which can be useful for testing alternate versions of a
+     program. Commands which have been indented by one or more
+     spaces will not be affected by this option.
+
+\--debug
+:    Show debug info, for troubleshooting
+
+\--debug-parse
+:    Show test file parsing info and stop
+
+\--help-format
+:    Display test format help
+
+-?, \--help
+:    Display help message
+
+-V, \--version
+:    Print version information
+
+\-- *TFOPTIONS*
+:    Set extra test-framework options like `-j`/`--threads`,
+     `-t`/`--select-tests`, `-o`/`--timeout`, `--hide-successes`.
+     Use `-- --help` for a list. Avoid spaces.
+
+# DEFINING TESTS
+
+Test files, typically named `tests/*.test`, contain one or more tests
+consisting of:
+
+- a one-line command
+- optional standard input (`<<<`), standard output (`>>>`) and/or
+  standard error output (`>>>2`) specifications
+- an exit status (`>>>=`) specification
+
+**Test format:**
+
+    # optional comment
+    the command to test
+    <<<
+    zero or more lines of standard input
+    >>>
+    zero or more lines of expected standard output
+    (or /REGEXP/ added to the previous line)
+    >>>2
+    zero or more lines of expected standard error output
+    (or /REGEXP/ added to the previous line)
+    >>>= EXITCODE (or /REGEXP/)
+
+- A `/REGEXP/` pattern may be used instead of explicit data. In this case
+  a match anywhere in the output allows the test to pass. The regular
+  expression syntax is [regex-tdfa](http://hackage.haskell.org/package/regex-tdfa)'s.
+- `EXITCODE` is a numeric
+  [exit status](http://en.wikipedia.org/wiki/Exit_status), eg `0` for a
+  successful exit.
+- You can put `!` before a `/REGEXP/` or `EXITCODE` to negate the match.
+- Comment lines beginning with `#` may be used between tests.
+
+# EXAMPLES
+
+Here's `example.test`, a file containing two simple tests:
+
+    # 1. let's test that echo runs. Numbering your tests can be helpful.
+    echo
+    >>>= 0
+
+    # 2. and now the cat command. On windows, this one should fail.
+    cat
+    <<<
+    foo
+    >>>
+    foo
+    >>>= 0
+
+Run it with `shelltest`:
+
+    $ shelltest example.test
+    :t.test:1: [OK]
+    :t.test:2: [OK]
+
+             Test Cases  Total
+     Passed  2           2
+     Failed  0           0
+     Total   2           2
diff -rN -u old-shelltestrunner//shelltestrunner.install new-shelltestrunner//shelltestrunner.install
--- old-shelltestrunner//shelltestrunner.install	1970-01-01 00:00:00.000000000 +0000
+++ new-shelltestrunner//shelltestrunner.install	2012-03-18 11:43:47.059247885 +0000
@@ -0,0 +1 @@
+dist-ghc/build/shelltest/shelltest /usr/bin
diff -rN -u old-shelltestrunner//shelltestrunner.manpages new-shelltestrunner//shelltestrunner.manpages
--- old-shelltestrunner//shelltestrunner.manpages	1970-01-01 00:00:00.000000000 +0000
+++ new-shelltestrunner//shelltestrunner.manpages	2012-03-18 11:43:47.059247885 +0000
@@ -0,0 +1 @@
+debian/shelltest.1
diff -rN -u old-shelltestrunner//source/format new-shelltestrunner//source/format
--- old-shelltestrunner//source/format	1970-01-01 00:00:00.000000000 +0000
+++ new-shelltestrunner//source/format	2012-03-18 11:43:47.063248966 +0000
@@ -0,0 +1 @@
+3.0 (quilt)
diff -rN -u old-shelltestrunner//watch new-shelltestrunner//watch
--- old-shelltestrunner//watch	1970-01-01 00:00:00.000000000 +0000
+++ new-shelltestrunner//watch	2012-03-18 11:43:47.063248966 +0000
@@ -0,0 +1,5 @@
+version=3
+opts="downloadurlmangle=s|archive/([\w\d_-]+)/([\d\.]+)/|archive/$1/$2/$1-$2.tar.gz|,\
+filenamemangle=s|(.*)/$|shelltestrunner-$1.tar.gz|" \
+    http://hackage.haskell.org/packages/archive/shelltestrunner \
+    ([\d\.]*\d)/





More information about the Pkg-haskell-commits mailing list