[commit: ghc] ghc-8.0: validate: Add --build-only (5230fa0)

git at git.haskell.org git at git.haskell.org
Thu Oct 13 15:16:21 UTC 2016


Repository : ssh://git@git.haskell.org/ghc

On branch  : ghc-8.0
Link       : http://ghc.haskell.org/trac/ghc/changeset/5230fa047cf21da1ecd9f5ece337294ec8d0ec62/ghc

>---------------------------------------------------------------

commit 5230fa047cf21da1ecd9f5ece337294ec8d0ec62
Author: Ben Gamari <bgamari.foss at gmail.com>
Date:   Sat Oct 1 20:11:03 2016 -0400

    validate: Add --build-only
    
    This will allow us to split up Harbormaster output for the build and
    test stages of validation.
    
    Test Plan: `./validate --build-only && ./validate --testsuite-only`
    
    Reviewers: thomie, hvr, austin
    
    Differential Revision: https://phabricator.haskell.org/D2553
    
    (cherry picked from commit 4d2b15d5895ea10a64194bffe8c321e447e39683)


>---------------------------------------------------------------

5230fa047cf21da1ecd9f5ece337294ec8d0ec62
 validate | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/validate b/validate
index c386523..6767773 100755
--- a/validate
+++ b/validate
@@ -14,6 +14,7 @@ Flags:
   --no-clean        don't make clean first, just carry on from
                     a previous interrupted validation run
   --testsuite-only  don't build the compiler, just run the test suite
+  --build-only      don't test the compiler, just build it
   --hpc             build stage2 with -fhpc, and see how much of the
                     compiler the test suite covers.
                     2008-07-01: 63% slower than the default.
@@ -46,6 +47,7 @@ EOF
 
 no_clean=0
 testsuite_only=0
+build_only=0
 hpc=NO
 speed=NORMAL
 use_dph=0
@@ -64,6 +66,9 @@ do
     --testsuite-only)
         testsuite_only=1
         ;;
+    --build-only)
+        build_only=1
+        ;;
     --hpc)
         hpc=YES
         ;;
@@ -240,6 +245,16 @@ fi # testsuite-only
 # -----------------------------------------------------------------------------
 # Run the testsuite
 
+if [ "$build_only" -eq 1 ]; then
+    cat <<EOF
+-------------------------------------------------------------------
+Congratulations!  This tree has compiled successfully.
+
+You can now test your new compiler using ./validate --testsuite-only.
+EOF
+    exit 0
+fi
+
 if [ "$hpc" = YES ]
 then
     # XXX With threads we'd need to give a different tix file to each thread



More information about the ghc-commits mailing list