llvm.org GIT mirror llvm / 1dbfdcc
test-release.sh: Move test-suite setup to beginning of the script Summary: We want to catch failures early before do the full 3 stage build. The goal here is to avoid running through the whole build process and have it fail at the end (and not create the binary packages), just because some prerequisites failed to install. Reviewers: rovka, hans Reviewed By: hans Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D36422 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@310939 91177308-0d34-0410-b5e6-96231b3b80d8 Tom Stellard 3 years ago
1 changed file(s) with 13 addition(s) and 8 deletion(s). Raw diff Collapse all Expand all
402402 fi
403403
404404 if [ $do_test_suite = 'yes' ]; then
405 SandboxDir="$BuildDir/sandbox"
406 Lit=$SandboxDir/bin/lit
407 TestSuiteBuildDir="$BuildDir/test-suite-build"
408 TestSuiteSrcDir="$BuildDir/test-suite.src"
409
410 virtualenv $SandboxDir
411 $SandboxDir/bin/python $BuildDir/llvm.src/utils/lit/setup.py install
412 mkdir -p $TestSuiteBuildDir
413405 cd $TestSuiteBuildDir
414406 env CC="$c_compiler" CXX="$cxx_compiler" \
415407 cmake $TestSuiteSrcDir -DTEST_SUITE_LIT=$Lit
463455
464456 if [ "$do_checkout" = "yes" ]; then
465457 export_sources
458 fi
459
460 # Setup the test-suite. Do this early so we can catch failures before
461 # we do the full 3 stage build.
462 if [ $do_test_suite = "yes" ]; then
463 SandboxDir="$BuildDir/sandbox"
464 Lit=$SandboxDir/bin/lit
465 TestSuiteBuildDir="$BuildDir/test-suite-build"
466 TestSuiteSrcDir="$BuildDir/test-suite.src"
467
468 virtualenv $SandboxDir
469 $SandboxDir/bin/python $BuildDir/llvm.src/utils/lit/setup.py install
470 mkdir -p $TestSuiteBuildDir
466471 fi
467472
468473 (