validate dependabot configuration
[cabal.git] / Cabal-tests / tests / hackage / check.sh
blobc67a495dcdce2149474aeec3e9a4eed3a716cbf3
1 #!/bin/sh
3 base_version=1.4.0.2
4 test_version=1.5.6
6 for setup in archive/*/*/Setup.hs archive/*/*/Setup.lhs; do
8 pkgname=$(basename ${setup})
10 if test $(wc -w < ${setup}) -gt 21; then
11 if ghc -package Cabal-${base_version} -S ${setup} -o /dev/null 2> /dev/null; then
13 if ghc -package Cabal-${test_version} -S ${setup} -o /dev/null 2> /dev/null; then
14 echo "OK ${setup}"
15 else
16 echo "FAIL ${setup} does not compile with Cabal-${test_version}"
18 else
19 echo "OK ${setup} (does not compile with Cabal-${base_version})"
21 else
22 echo "trivial ${setup}"
25 done