[PATCH] D29840: test-release.sh: Remove workaround for test-suite build
Tom Stellard via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 27 06:45:54 PST 2017
tstellar updated this revision to Diff 89874.
tstellar added a comment.
Build and run the test suite when do_test_release=yes
https://reviews.llvm.org/D29840
Files:
utils/release/test-release.sh
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29840.89874.patch
Type: text/x-patch
Size: 1395 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170227/e46d6aea/attachment.bin>
More information about the llvm-commits
mailing list