X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=scripts%2Fci%2Frun-jenkins.sh;h=ca0cca115eb2ac8fd889b4583b32d02727074133;hb=HEAD;hp=fcc26b7eff6e02dcbe4470a76569be0cae8c8109;hpb=9d0b1967c0566f18faa9993d33e61f66ccb95783;p=mono.git diff --git a/scripts/ci/run-jenkins.sh b/scripts/ci/run-jenkins.sh index fcc26b7eff6..ca0cca115eb 100755 --- a/scripts/ci/run-jenkins.sh +++ b/scripts/ci/run-jenkins.sh @@ -10,23 +10,29 @@ make_timeout=300m if [[ $CI_TAGS == *'collect-coverage'* ]]; then # Collect coverage for further use by lcov and similar tools. # Coverage must be collected with -O0 and debug information. - export CFLAGS="-ggdb3 --coverage -O0" - # Collect coverage on all optimizations - export MONO_ENV_OPTIONS="$MONO_ENV_OPTIONS -O=all" -elif [[ ${CI_TAGS} == *'clang-sanitizer'* ]]; then + export CFLAGS="$CFLAGS -ggdb3 --coverage -O0" +fi + +if [[ ${CI_TAGS} == *'clang-sanitizer'* ]]; then export CC="clang" export CXX="clang++" - export CFLAGS="-g -O1 -fsanitize=thread -fsanitize-blacklist=${MONO_REPO_ROOT}/scripts/ci/clang-thread-sanitizer-blacklist -mllvm -tsan-instrument-atomics=false" + export CFLAGS="$CFLAGS -g -O1 -fsanitize=thread -fsanitize-blacklist=${MONO_REPO_ROOT}/scripts/ci/clang-thread-sanitizer-blacklist -mllvm -tsan-instrument-atomics=false" export LDFLAGS="-fsanitize=thread" # TSAN_OPTIONS are used by programs that were compiled with Clang's ThreadSanitizer # see https://github.com/google/sanitizers/wiki/ThreadSanitizerFlags for more details export TSAN_OPTIONS="history_size=7:exitcode=0:force_seq_cst_atomics=1" make_timeout=30m -elif [[ ${label} == w* ]]; then +fi + +if [[ ${label} == w* ]]; then # Passing -ggdb3 on Cygwin breaks linking against libmonosgen-x.y.dll - export CFLAGS="-g -O2" + export CFLAGS="$CFLAGS -g -O2" else - export CFLAGS="-ggdb3 -O2" + export CFLAGS="$CFLAGS -ggdb3 -O2" +fi + +if [[ $CI_TAGS == *'retry-flaky-tests'* ]]; then + export MONO_FLAKY_TEST_RETRIES=5 fi if [[ ${label} == 'osx-i386' ]]; then EXTRA_CONF_FLAGS="${EXTRA_CONF_FLAGS} --with-libgdiplus=/Library/Frameworks/Mono.framework/Versions/Current/lib/libgdiplus.dylib --build=i386-apple-darwin11.2.0"; fi @@ -104,6 +110,8 @@ ${TESTCMD} --label=make --timeout=${make_timeout} --fatal make ${make_parallelis if [[ ${CI_TAGS} == *'checked-coop'* ]]; then export MONO_CHECK_MODE=gc,thread; fi if [[ ${CI_TAGS} == *'checked-all'* ]]; then export MONO_CHECK_MODE=all; fi +export MONO_ENV_OPTIONS="$MONO_ENV_OPTIONS $MONO_TEST_ENV_OPTIONS" + if [[ ${CI_TAGS} == *'acceptance-tests'* ]]; then $(dirname "${BASH_SOURCE[0]}")/run-test-acceptance-tests.sh