File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 3838 MACHINES="linux_clang_x86_64 linux_clang_haswell linux_clang_icelake" \
3939 EXTRAS="llvm-cov" \
4040 COV_REPORT=1 \
41+ RACESAN=1 \
4142 contrib/test/ci_tests.sh
4243
4344 - name : ' Authenticate to Google Cloud'
Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ for extra in $EXTRAS; do
2525done
2626export EXTRAS
2727
28+ export FD_LOG_LEVEL_STDERR=3
29+
2830set -x
2931
3032# Build and run tests for all machines
@@ -34,7 +36,7 @@ for MACHINE in ${MACHINES[*]}; do
3436 OBJDIR=" $( make help | grep OBJDIR | awk ' {print $4}' ) "
3537 OBJDIRS+=( " ${OBJDIR} " )
3638 make clean --silent > /dev/null
37- contrib/make-j $TARGETS
39+ contrib/make-j $TARGETS > /dev/null
3840 if [[ " $NOTEST " != 1 ]]; then
3941 make run-unit-test
4042 make run-fuzz-test
@@ -50,6 +52,19 @@ for MACHINE in ${MACHINES[*]}; do
5052 export -n MACHINE
5153done
5254
55+ if [[ " $RACESAN " == 1 ]]; then
56+ rm -rf build/racesan
57+ MACHINE=native CC=clang EXTRAS=" $EXTRAS racesan" BUILDDIR=racesan contrib/make-j unit-test > /dev/null
58+ mkdir -p build/racesan/cov/raw
59+ for test in $( find build/racesan/unit-test -type f -executable -name ' *racesan*' ) ; do
60+ LLVM_PROFILE_FILE=" build/racesan/cov/raw/$( basename " $test " ) .profraw"
61+ export LLVM_PROFILE_FILE
62+ " $test " --page-cnt 2 --page-sz gigantic --log-path ' ' > /dev/null
63+ unset LLVM_PROFILE_FILE
64+ done
65+ OBJDIRS+=( " build/racesan" )
66+ fi
67+
5368# Export coverage report
5469if [[ " $COV_REPORT " == 1 ]]; then
5570 make dist-cov-report OBJDIRS=" ${OBJDIRS[*]} "
You can’t perform that action at this time.
0 commit comments