diff --git a/ghc-zlib.spec b/ghc-zlib.spec index 0e16e1c..b538210 100644 --- a/ghc-zlib.spec +++ b/ghc-zlib.spec @@ -83,11 +83,10 @@ This package provides the Haskell %{pkg_name} profiling library. # End cabal-rpm setup #remove the copy library rm -r cbits -%if %{with tests} -cabal-tweak-remove-upperbound tasty -cabal-tweak-remove-upperbound tasty-hunit -cabal-tweak-remove-upperbound tasty-quickcheck -%endif +# upperbounds +cabal-tweak-dep-ver tasty '< 0.12' '< 1.3' +cabal-tweak-dep-ver tasty-hunit '< 0.10' '< 0.11' +cabal-tweak-dep-ver tasty-quickcheck '== 0.8.*' '> 0.8' %build diff --git a/tests/simple/runtest.sh b/tests/simple/runtest.sh new file mode 100755 index 0000000..6ca8bfc --- /dev/null +++ b/tests/simple/runtest.sh @@ -0,0 +1,11 @@ +#!/usr/bin/sh +set -ex + +SOURCEDIR=$1 + +cd "${SOURCEDIR}" || exit 1 + +cabal update +cabal install --enable-tests --only-dependencies + +cabal test diff --git a/tests/tests.yaml b/tests/tests.yaml new file mode 100644 index 0000000..f2f636a --- /dev/null +++ b/tests/tests.yaml @@ -0,0 +1,20 @@ +--- +- hosts: localhost + roles: + - role: standard-test-source + tags: + - classic + + - role: standard-test-basic + tags: + - classic + required_packages: + - cabal-install + - ghc-tasty-hunit-devel + - ghc-tasty-quickcheck-devel + - ghc-zlib-devel + tests: + - simple: + dir: simple + run: ./runtest.sh {{ tenv_workdir }}/source/ +...