Index: utils/release/test-release.sh =================================================================== --- utils/release/test-release.sh +++ utils/release/test-release.sh @@ -173,13 +173,6 @@ shift done -if [ "$do_test_suite" = "yes" ]; then - # See llvm.org/PR26146. - echo Skipping test-suite build when using CMake. - echo It will still be exported. - do_test_suite="export-only" -fi - # Check required arguments. if [ -z "$Release" ]; then echo "error: no release number specified" @@ -315,11 +308,7 @@ projsrc=llvm.src/projects/$proj ;; test-suite) - if [ $do_test_suite = 'yes' ]; then - projsrc=llvm.src/projects/$proj - else - projsrc=$proj.src - fi + projsrc=$proj.src ;; *) echo "error: unknown project $proj" @@ -418,6 +407,19 @@ fi cd $BuildDir + if [ $do_test_suite = 'yes' ]; then + SandboxDir=`pwd`/'sandbox' + Lit=$SandboxDir/bin/lit + virtualenv $SandboxDir + $SandboxDir/bin/python $BuildDir/llvm.src/utils/lit/setup.py install + + mkdir test-suite-build + cd test-suite-build + cmake ../test-suite.src -DTEST_SUITE_LIT=$Lit + make + make check + cd $BuildDir + fi } # Clean RPATH. Libtool adds the build directory to the search path, which is