aboutsummaryrefslogtreecommitdiff
path: root/scripts/ci/check-testdata.sh
blob: 7e7166138e44b4d8322e14a6749950e64989aeae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash

CI_PROJECT_DIR=${CI_PROJECT_DIR:-.}
rv=0

set -e -o pipefail

echo "=== Stack resolvers"

$CI_PROJECT_DIR/scripts/ci/update-stack-resolvers.sh \
        | tee tests/stack-resolvers.new

if diff --from-file=tests/stack-resolvers tests/stack-resolvers.new; then
        echo OK
else
        echo FAIL stack
        rv=1
fi

echo; echo; echo "=== Cabal versions"
$CI_PROJECT_DIR/scripts/ci/update-cabal-versions.sh \
        | tee tests/cabal-versions.new

if diff --from-file=tests/cabal-versions tests/cabal-versions.new; then
        echo OK
else
        echo FAIL cabal
        rv=1
fi

exit $rv