[Pkg-haskell-commits] darcs: haskell-yesod-bin: Add autopkg test case to see if all dependencies for "yesod init" are avialable.

Joachim Breitner mail at joachim-breitner.de
Fri May 2 08:53:27 UTC 2014


Fri May  2 08:35:36 UTC 2014  Joachim Breitner <mail at joachim-breitner.de>
  * Add autopkg test case to see if all dependencies for "yesod init" are avialable.

    M ./changelog -1 +3
    M ./control +1
    A ./tests/
    A ./tests/control
    A ./tests/scaffold

Fri May  2 08:35:36 UTC 2014  Joachim Breitner <mail at joachim-breitner.de>
  * Add autopkg test case to see if all dependencies for "yesod init" are avialable.
diff -rN -u old-haskell-yesod-bin/changelog new-haskell-yesod-bin/changelog
--- old-haskell-yesod-bin/changelog	2014-05-02 08:53:27.258864569 +0000
+++ new-haskell-yesod-bin/changelog	2014-05-02 08:53:27.266864571 +0000
@@ -1,6 +1,8 @@
 haskell-yesod-bin (1.2.7.3-2) UNRELEASED; urgency=medium
 
-  * Update recommends 
+  * Update recommends
+  * Add autopkg test case to see if all dependencies for "yesod init" are
+    avialable.
 
  -- Joachim Breitner <nomeata at debian.org>  Fri, 02 May 2014 09:48:29 +0200
 
diff -rN -u old-haskell-yesod-bin/control new-haskell-yesod-bin/control
--- old-haskell-yesod-bin/control	2014-05-02 08:53:27.258864569 +0000
+++ new-haskell-yesod-bin/control	2014-05-02 08:53:27.262864570 +0000
@@ -60,6 +60,7 @@
 Homepage: http://hackage.haskell.org/package/yesod-bin
 Vcs-Darcs: http://darcs.debian.org/pkg-haskell/haskell-yesod-bin
 Vcs-Browser: http://darcs.debian.org/cgi-bin/darcsweb.cgi?r=pkg-haskell/haskell-yesod-bin
+XS-Testsuite: autopkgtest
 
 Package: yesod
 Architecture: any
diff -rN -u old-haskell-yesod-bin/tests/control new-haskell-yesod-bin/tests/control
--- old-haskell-yesod-bin/tests/control	1970-01-01 00:00:00.000000000 +0000
+++ new-haskell-yesod-bin/tests/control	2014-05-02 08:53:27.262864570 +0000
@@ -0,0 +1,3 @@
+Tests: scaffold
+Depends: yesod, cabal-install
+Restrictions: needs-recommends
diff -rN -u old-haskell-yesod-bin/tests/scaffold new-haskell-yesod-bin/tests/scaffold
--- old-haskell-yesod-bin/tests/scaffold	1970-01-01 00:00:00.000000000 +0000
+++ new-haskell-yesod-bin/tests/scaffold	2014-05-02 08:53:27.266864571 +0000
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+set -e
+
+cd $ADTTMP
+
+# Set up cabal just enough that it doesn't think it needs to update.
+export HOME="$(pwd)"
+mkdir -p .cabal/packages/hackage.haskell.org
+tar -cf .cabal/packages/hackage.haskell.org/00-index.tar -T /dev/null
+
+echo -e 'some-project\ns\n' | yesod init 
+cd some-project
+yesod test




More information about the Pkg-haskell-commits mailing list