Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Christoforides <alexis@thenull.net>2017-10-19 06:58:06 +0300
committerAlexis Christoforides <alexis@thenull.net>2017-10-20 19:22:31 +0300
commitf5ee4a398cc71b976f5b173048c8745e64565313 (patch)
treec9df4c926f17dab9033fe63c68d4f8c7437c64bb
parent0b60a62ee7907e2b47f2981c4127c29973fcde48 (diff)
Add MacSDK test script
-rwxr-xr-xscripts/ci/run-jenkins.sh14
-rwxr-xr-xscripts/ci/run-test-mac-sdk.sh18
2 files changed, 29 insertions, 3 deletions
diff --git a/scripts/ci/run-jenkins.sh b/scripts/ci/run-jenkins.sh
index ca0cca115eb..05084d95c3a 100755
--- a/scripts/ci/run-jenkins.sh
+++ b/scripts/ci/run-jenkins.sh
@@ -80,8 +80,10 @@ if [ -x "/usr/bin/dpkg-architecture" ];
mkdir -p ~/.config/.mono/
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 [[ ${CI_TAGS} != *'mac-sdk'* ]]; # Mac SDK builds Mono itself
+ then
+ ${TESTCMD} --label=configure --timeout=60m --fatal ./autogen.sh $EXTRA_CONF_FLAGS
+fi
if [[ ${label} == 'w32' ]];
then
# only build boehm on w32 (only windows platform supporting boehm).
@@ -105,7 +107,10 @@ if [[ ${CI_TAGS} == *'monolite'* ]]; then make get-monolite-latest; fi
make_parallelism=-j4
if [[ ${label} == 'debian-8-ppc64el' ]]; then make_parallelism=-j1; fi
-${TESTCMD} --label=make --timeout=${make_timeout} --fatal make ${make_parallelism} -w V=1
+if [[ ${CI_TAGS} != *'mac-sdk'* ]]; # Mac SDK builds Mono itself
+ then
+ ${TESTCMD} --label=make --timeout=${make_timeout} --fatal make ${make_parallelism} -w V=1
+fi
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
@@ -127,6 +132,9 @@ elif [[ ${CI_TAGS} == *'interpreter'* ]];
elif [[ ${CI_TAGS} == *'mcs-compiler'* ]];
then
$(dirname "${BASH_SOURCE[0]}")/run-test-mcs.sh
+elif [[ ${CI_TAGS} == *'mac-sdk'* ]];
+ then
+ $(dirname "${BASH_SOURCE[0]}")/run-test-mac-sdk.sh
elif [[ ${CI_TAGS} == *'no-tests'* ]];
then
exit 0
diff --git a/scripts/ci/run-test-mac-sdk.sh b/scripts/ci/run-test-mac-sdk.sh
new file mode 100755
index 00000000000..b4d81186a5d
--- /dev/null
+++ b/scripts/ci/run-test-mac-sdk.sh
@@ -0,0 +1,18 @@
+#!/bin/bash -e
+
+${TESTCMD} --label=bockbuild --timeout=180m ${MONO_REPO_ROOT}/scripts/mac-sdk-package.sh
+
+# switch to using package Mono instead of system
+export PATH=${MONO_REPO_ROOT}/external/bockbuild/stage/bin:$PATH
+
+# Bundled MSBuild
+cd ${MONO_REPO_ROOT}/external/bockbuild/builds/msbuild-15.4/
+${TESTCMD} --label="msbuild-tests" --timeout=180m ./cibuild.sh --scope Test --host Mono --target Mono
+
+# Bundled LLVM
+cd ${MONO_REPO_ROOT}/external/bockbuild/builds/mono
+${TESTCMD} --label="runtime-tests-llvm" --timeout=240m make -C mono/tests -k test-wrench MONO_ENV_OPTIONS=--llvm V=1 CI=1 M=1
+${TESTCMD} --label="corlib-tests-llvm" --timeout=60m make -C mcs/class/corlib run-test PLATFORM_TEST_HARNESS_EXCLUDES=NotOnMac,MacNotWorking,LLVMNotWorking, MONO_ENV_OPTIONS=--llvm
+
+# Bundled libgdiplus
+${TESTCMD} --label="System.Drawing" --timeout=60m make -C mcs/class/System.Drawing run-test