From 07696269824b78d7c9355a4897239e9ec0110c1e Mon Sep 17 00:00:00 2001 From: Alina Banerjee Date: Wed, 2 Jun 2021 22:54:39 -0500 Subject: validate: change test ghc based on BINDIST value (YES/NO) --- validate | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/validate b/validate index 89dbb42b11..b38f31f3c9 100755 --- a/validate +++ b/validate @@ -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 \ -- cgit v1.2.1