diff options
author | Ben Gamari <bgamari.foss@gmail.com> | 2016-10-01 20:11:03 -0400 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2016-10-01 20:11:12 -0400 |
commit | 4d2b15d5895ea10a64194bffe8c321e447e39683 (patch) | |
tree | fa3776ac491a284c1f2d31f0df12f11c0b17151e /validate | |
parent | 23cf32da76fe6ed29fa141047749d390df763f94 (diff) | |
download | haskell-4d2b15d5895ea10a64194bffe8c321e447e39683.tar.gz |
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
Diffstat (limited to 'validate')
-rwxr-xr-x | validate | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -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 |