[zorg] r254820 - Build TSan with extra debug output on buildbot
Alexey Samsonov via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 4 17:42:58 PST 2015
Author: samsonov
Date: Fri Dec 4 19:42:58 2015
New Revision: 254820
URL: http://llvm.org/viewvc/llvm-project?rev=254820&view=rev
Log:
Build TSan with extra debug output on buildbot
Modified:
zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_standard.sh
Modified: zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_standard.sh
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_standard.sh?rev=254820&r1=254819&r2=254820&view=diff
==============================================================================
--- zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_standard.sh (original)
+++ zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_standard.sh Fri Dec 4 19:42:58 2015
@@ -10,10 +10,13 @@ env
HERE="$(dirname $0)"
. ${HERE}/buildbot_functions.sh
+TSAN_FULL_DEBUG_BUILD_DIR=tsan_full_debug_build
+
if [ "$BUILDBOT_CLOBBER" != "" ]; then
echo @@@BUILD_STEP clobber@@@
rm -rf llvm
rm -rf clang_build
+ rm -rf $TSAN_FULL_DEBUG_BUILD_DIR
fi
ROOT=`pwd`
@@ -42,6 +45,17 @@ CLANG_PATH=$ROOT/clang_build/bin
echo @@@BUILD_STEP test tsan in debug compiler-rt build@@@
(cd clang_build && make -j$MAKE_JOBS check-tsan) || echo @@@STEP_FAILURE@@@
+echo @@@BUILD_STEP build tsan with stats and debug output@@@
+if [ ! -d $TSAN_FULL_DEBUG_BUILD_DIR ]; then
+ mkdir $TSAN_FULL_DEBUG_BUILD_DIR
+fi
+(cd $TSAN_FULL_DEBUG_BUILD_DIR && CC=gcc CXX=g++ cmake -DCMAKE_BUILD_TYPE=Release \
+ ${CMAKE_COMMON_OPTIONS} -DCOMPILER_RT_DEBUG=ON \
+ -DCOMPILER_RT_TSAN_DEBUG_OUTPUT=ON -DLLVM_INCLUDE_TESTS=OFF \
+ ${LLVM_CHECKOUT})
+(cd $TSAN_FULL_DEBUG_BUILD_DIR && make -j$MAKE_JOBS ${TARGETS}) || echo @@@STEP_FAILURE@@@
+(cd $TSAN_FULL_DEBUG_BUILD_DIR && make -j$MAKE_JOBS tsan) || echo @@@STEP_FAILURE@@@
+
echo @@@BUILD_STEP prepare for testing tsan@@@
TSAN_PATH=$ROOT/llvm/projects/compiler-rt/lib/tsan/
More information about the llvm-commits
mailing list