[Git][haskell-team/DHG_packages][master] ghc: add autopkgtest

Clint Adams gitlab at salsa.debian.org
Thu Jul 19 00:06:02 BST 2018


Clint Adams pushed to branch master at Debian Haskell Group / DHG_packages


Commits:
c60a2bd9 by Clint Adams at 2018-07-18T19:04:28-04:00
ghc: add autopkgtest

- - - - -


3 changed files:

- p/ghc/debian/changelog
- + p/ghc/debian/tests/compile
- + p/ghc/debian/tests/control


Changes:

=====================================
p/ghc/debian/changelog
=====================================
--- a/p/ghc/debian/changelog
+++ b/p/ghc/debian/changelog
@@ -1,7 +1,8 @@
-ghc (8.2.2-5) UNRELEASED; urgency=medium
+ghc (8.2.2-5) unstable; urgency=medium
 
   * Apply patch to disable -Bsymbolic on unregisterised
     architectures.  closes: #904055.
+  * Add autopkgtest.
 
  -- Clint Adams <clint at debian.org>  Wed, 18 Jul 2018 18:56:46 -0400
 


=====================================
p/ghc/debian/tests/compile
=====================================
--- /dev/null
+++ b/p/ghc/debian/tests/compile
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+set -e
+
+WORKDIR=$(mktemp -d)
+trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM
+cd ${WORKDIR}
+
+cat >simple.hs <<EOF
+main :: IO ()
+main = putStrLn "Hello"
+EOF
+
+ghc -O -Wall -o simple simple.hs
+echo "compile: OK"
+test -x simple
+./simple
+echo "run: OK"


=====================================
p/ghc/debian/tests/control
=====================================
--- /dev/null
+++ b/p/ghc/debian/tests/control
@@ -0,0 +1,2 @@
+Tests: compile
+Depends: @



View it on GitLab: https://salsa.debian.org/haskell-team/DHG_packages/commit/c60a2bd9308703e29dd9698fe1b069a43178df41

-- 
View it on GitLab: https://salsa.debian.org/haskell-team/DHG_packages/commit/c60a2bd9308703e29dd9698fe1b069a43178df41
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-haskell-commits/attachments/20180718/8cb435b7/attachment-0001.html>


More information about the Pkg-haskell-commits mailing list