diff options
author | Alina Banerjee <alina@glitchgirl.us> | 2021-06-02 22:54:39 -0500 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-07-27 12:01:15 -0400 |
commit | 07696269824b78d7c9355a4897239e9ec0110c1e (patch) | |
tree | 778da9b93cf4bc9b1f2a3c2489ccf67934177391 /validate | |
parent | 9d8cb93ebda1ace9f0d736248dcb0436c9871b65 (diff) | |
download | haskell-07696269824b78d7c9355a4897239e9ec0110c1e.tar.gz |
validate: change test ghc based on BINDIST value (YES/NO)
Diffstat (limited to 'validate')
-rwxr-xr-x | validate | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -410,7 +410,13 @@ if [ $testsuite_only -eq 1 ] || echo '==== STAGE 2 TESTS ==== ' cat "$basedir"/testsuite_summary.txt else - testghc=$ghc + # If the --fast flag is used, make the test ghc an in tree compiler + if [ -d "$basedir/bindisttest/install dir" ] && [ $BINDIST = "BINDIST=YES" ]; then + testghc="$basedir/bindisttest/install dir/bin/ghc" + elif [ $BINDIST = "BINDIST=NO" ]; then + testghc="stage2" + fi + hadrian_test_with_args="test --test-speed=$HADRIAN_TEST_SPEED \ --test-compiler=\"$testghc\" \ --summary=$basedir/testsuite_summary.txt \ |