X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=scripts%2Fci%2Frun-jenkins.sh;h=a308f1b252b528b0c4c2ce34e8d0f042641c2136;hb=eb18b8c0deaaf90a7a9cf807693782cdafc801c1;hp=0a3c4d0d8e54be80422cf38e32d25c7a8046deac;hpb=44c78cbed9170219bb916b16fce83f1957bf5e79;p=mono.git diff --git a/scripts/ci/run-jenkins.sh b/scripts/ci/run-jenkins.sh index 0a3c4d0d8e5..a308f1b252b 100755 --- a/scripts/ci/run-jenkins.sh +++ b/scripts/ci/run-jenkins.sh @@ -5,7 +5,13 @@ export TESTCMD=${MONO_REPO_ROOT}/scripts/ci/run-step.sh export TEST_HARNESS_VERBOSE=1 -if [[ ${label} == w* ]]; then +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 [[ ${label} == w* ]]; then # Passing -ggdb3 on Cygwin breaks linking against libmonosgen-x.y.dll export CFLAGS="-g -O2" else @@ -19,8 +25,8 @@ if [[ ${label} == 'w64' ]]; then PLATFORM=x64; EXTRA_CONF_FLAGS="${EXTRA_CONF_FL if [[ ${CI_TAGS} == *'coop-gc'* ]]; then EXTRA_CONF_FLAGS="${EXTRA_CONF_FLAGS} --with-cooperative-gc=yes"; fi -if [[ ${CI_TAGS} == *'checked-coop'* ]]; then EXTRA_CONF_FLAGS="${EXTRA_CONF_FLAGS} --enable-checked-build=gc,thread"; export MONO_CHECK_MODE=gc,thread; fi -if [[ ${CI_TAGS} == *'checked-all'* ]]; then EXTRA_CONF_FLAGS="${EXTRA_CONF_FLAGS} --enable-checked-build=all"; export MONO_CHECK_MODE=all; fi +if [[ ${CI_TAGS} == *'checked-coop'* ]]; then EXTRA_CONF_FLAGS="${EXTRA_CONF_FLAGS} --enable-checked-build=gc,thread"; fi +if [[ ${CI_TAGS} == *'checked-all'* ]]; then EXTRA_CONF_FLAGS="${EXTRA_CONF_FLAGS} --enable-checked-build=all"; fi if [[ ${CI_TAGS} == *'mcs-compiler'* ]]; then EXTRA_CONF_FLAGS="${EXTRA_CONF_FLAGS} --with-csc=mcs"; fi @@ -29,9 +35,10 @@ elif [[ ${CI_TAGS} == *'hybridaot_llvm'* ]]; then EXTRA_CONF_FLAGS="${EXTRA_ elif [[ ${CI_TAGS} == *'aot_llvm'* ]]; then EXTRA_CONF_FLAGS="${EXTRA_CONF_FLAGS} --enable-llvm=yes --with-runtime_preset=aot "; elif [[ ${CI_TAGS} == *'fullaot'* ]]; then EXTRA_CONF_FLAGS="${EXTRA_CONF_FLAGS} --with-runtime_preset=fullaot"; elif [[ ${CI_TAGS} == *'hybridaot'* ]]; then EXTRA_CONF_FLAGS="${EXTRA_CONF_FLAGS} --with-runtime_preset=hybridaot"; +elif [[ ${CI_TAGS} == *'winaot'* ]]; then EXTRA_CONF_FLAGS="${EXTRA_CONF_FLAGS} --with-runtime_preset=winaot"; elif [[ ${CI_TAGS} == *'aot'* ]]; then EXTRA_CONF_FLAGS="${EXTRA_CONF_FLAGS} --with-runtime_preset=aot"; elif [[ ${CI_TAGS} == *'bitcode'* ]]; then EXTRA_CONF_FLAGS="${EXTRA_CONF_FLAGS} --with-runtime_preset=bitcode"; -elif [[ ${CI_TAGS} == *'interpreter'* ]]; then EXTRA_CONF_FLAGS="${EXTRA_CONF_FLAGS} --with-interpreter=yes"; +elif [[ ${CI_TAGS} == *'interpreter'* ]]; then EXTRA_CONF_FLAGS="${EXTRA_CONF_FLAGS} --enable-interpreter"; elif [[ ${CI_TAGS} == *'acceptance-tests'* ]]; then EXTRA_CONF_FLAGS="${EXTRA_CONF_FLAGS} --prefix=${MONO_REPO_ROOT}/tmp/mono-acceptance-tests --with-sgen-default-concurrent=yes"; elif [[ ${label} != w* ]] && [[ ${label} != 'debian-8-ppc64el' ]] && [[ ${label} != 'centos-s390x' ]] && [[ ${CI_TAGS} != *'monolite'* ]]; then @@ -41,6 +48,10 @@ elif [[ ${label} != w* ]] && [[ ${label} != 'debian-8-ppc64el' ]] && [[ ${label} if [[ ${label} == 'ubuntu-1404-amd64' ]]; then # only enable build of the additional profiles on one architecture to save time EXTRA_CONF_FLAGS="${EXTRA_CONF_FLAGS} --with-runtime_preset=all" + # when building profiles like monotouch/monodroid which don't build System.Drawing.dll in the Mono repo we need + # to build the facades against _something_ to satisfy the typeforwards. In CI we can cheat a little and pass + # them System.Drawing.dll from the 'build' profile since we don't test those profiles here (we just ensure they compile). + export EXTERNAL_FACADE_DRAWING_REFERENCE=${MONO_REPO_ROOT}/mcs/class/lib/build/System.Drawing.dll fi fi @@ -52,7 +63,6 @@ if [ -x "/usr/bin/dpkg-architecture" ]; wget -qO- https://download.mono-project.com/test/new-certs.tgz| tar zx -C ~/.config/.mono/ fi - ${TESTCMD} --label=configure --timeout=60m --fatal ./autogen.sh $EXTRA_CONF_FLAGS if [[ ${label} == 'w32' ]]; then @@ -64,6 +74,14 @@ if [[ ${label} == w* ]]; ${TESTCMD} --label=make-msvc-sgen --timeout=60m --fatal /cygdrive/c/Program\ Files\ \(x86\)/MSBuild/14.0/Bin/MSBuild.exe /p:PlatformToolset=v140 /p:Platform=${PLATFORM} /p:Configuration=Release /p:MONO_TARGET_GC=sgen msvc/mono.sln fi +if [[ ${CI_TAGS} == *'winaot'* ]]; + then + # The AOT compiler on Windows requires Visual Studio's clang.exe and link.exe in $PATH + # and we must make sure Visual Studio's link.exe comes before Cygwin's link.exe + VC_ROOT="/cygdrive/c/Program Files (x86)/Microsoft Visual Studio 14.0/VC" + export PATH="$VC_ROOT/ClangC2/bin/amd64:$VC_ROOT/bin/amd64":$PATH +fi + if [[ ${CI_TAGS} == *'monolite'* ]]; then make get-monolite-latest; fi make_parallelism=-j4 @@ -71,15 +89,24 @@ if [[ ${label} == 'debian-8-ppc64el' ]]; then make_parallelism=-j1; fi ${TESTCMD} --label=make --timeout=300m --fatal make ${make_parallelism} -w V=1 +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 + if [[ ${CI_TAGS} == *'acceptance-tests'* ]]; then $(dirname "${BASH_SOURCE[0]}")/run-test-acceptance-tests.sh elif [[ ${CI_TAGS} == *'profiler-stress-tests'* ]]; then - $(dirname "${BASH_SOURCE[0]}")/run-test-profiler-stress-tests.sh + $(dirname "${BASH_SOURCE[0]}")/run-test-profiler-stress-tests.sh +elif [[ ${CI_TAGS} == *'stress-tests'* ]]; + then + $(dirname "${BASH_SOURCE[0]}")/run-test-stress-tests.sh elif [[ ${CI_TAGS} == *'interpreter'* ]]; then $(dirname "${BASH_SOURCE[0]}")/run-test-interpreter.sh +elif [[ ${CI_TAGS} == *'mcs-compiler'* ]]; + then + $(dirname "${BASH_SOURCE[0]}")/run-test-mcs.sh elif [[ ${CI_TAGS} == *'no-tests'* ]]; then exit 0