Commit c60a2bd9 authored by Clint Adams's avatar Clint Adams
Browse files

ghc: add autopkgtest

parent 40251373
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
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@debian.org>  Wed, 18 Jul 2018 18:56:46 -0400

+18 −0
Original line number Diff line number Diff line
#!/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"
+2 −0
Original line number Diff line number Diff line
Tests: compile
Depends: @