diff options
author | Alina Banerjee <alina@glitchgirl.us> | 2021-06-02 22:54:39 -0500 |
---|---|---|
committer | Alina Banerjee <alina@glitchgirl.us> | 2021-06-05 02:51:23 -0500 |
commit | 316fa24c96144bf172e7cd04b3452cf14721ea12 (patch) | |
tree | fc97412990db6f6d47255891ce82fe8f65aa4636 | |
parent | 7433eec304ef59114b988beb67d9e0aeea2071ef (diff) | |
download | haskell-316fa24c96144bf172e7cd04b3452cf14721ea12.tar.gz |
validate: change test ghc based on BINDIST value (YES/NO)
-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 \ |