summaryrefslogtreecommitdiff
path: root/validate
diff options
context:
space:
mode:
authorIan Lynagh <ian@well-typed.com>2013-05-30 20:38:51 +0100
committerIan Lynagh <ian@well-typed.com>2013-05-30 20:38:51 +0100
commit26c7d94426825b95c3828d929b2630baf7d0e09b (patch)
treebe9dfbd4a1983e3180a6ddcfa838e7b1ea64442c /validate
parent896d0f1ad4e67af1d3a731af21ab65a3f5d406e3 (diff)
downloadhaskell-26c7d94426825b95c3828d929b2630baf7d0e09b.tar.gz
Run ghc-pkg check during validate
Should help to track down cache-out-of-date problems
Diffstat (limited to 'validate')
-rwxr-xr-xvalidate19
1 files changed, 19 insertions, 0 deletions
diff --git a/validate b/validate
index 91616dcebe..170bb2db25 100755
--- a/validate
+++ b/validate
@@ -49,6 +49,17 @@ do
shift
done
+check_packages () {
+ echo "== Start $1 package check"
+ if [ "$bindistdir" = "" ]
+ then
+ inplace/bin/ghc-pkg check -v
+ else
+ "$bindistdir"/bin/ghc-pkg check -v
+ fi
+ echo "== End $1 package check"
+}
+
if ! [ -d testsuite ]
then
echo 'You need the testsuite to validate' >&2
@@ -97,6 +108,8 @@ echo "ValidateHpc=$hpc" >> mk/are-validating.mk
$make -j$threads
# For a "debug make", add "--debug=b --debug=m"
+check_packages post-build
+
# -----------------------------------------------------------------------------
# Build and test a binary distribution (not --fast)
@@ -112,7 +125,11 @@ if [ $speed != "FAST" ]; then
#
bindistdir="bindisttest/install dir"
+ check_packages post-install
+
$make validate_build_xhtml BINDIST_PREFIX="$thisdir/$bindistdir"
+
+ check_packages post-xhtml
fi
fi # testsuite-only
@@ -147,6 +164,8 @@ esac
$make $MAKE_TEST_TARGET stage=2 $BINDIST THREADS=$threads 2>&1 | tee testlog
+check_packages post-testsuite
+
if [ "$hpc" = YES ]
then
utils/hpc/hpc markup --hpcdir=. --srcdir=compiler --srcdir=testsuite/hpc_output --destdir=testsuite/hpc_output testsuite/hpc_output/ghc.tix