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

run-test-acceptance-tests.sh « ci « scripts - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2b303586ce8d5a9c9c4b9813e9b388ab86df1322 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash -e

#
# The timeouts are double of time the execution usually takes
#

# run the MS test suite
if [[ ${CI_TAGS} == *'ms-test-suite'* ]]; then
	LANG=en_US.UTF-8 ${TESTCMD} --label=check-ms-test-suite --timeout=10m make -C acceptance-tests check-ms-test-suite

	total_tests=$(find acceptance-tests/ -name TestResult*xml | xargs cat | grep -c "<test-case")
	if [ "$total_tests" -lt "1600" ]
		then echo "*** NOT ENOUGH TEST RESULTS RECORDED, MARKING FAILURE ***"
		exit 1
	fi
fi

# run Roslyn tests, they use Mono from PATH so we need to do a temporary install
${TESTCMD} --label=install-temp-mono --timeout=10m make install
OLD_PATH=$PATH
export PATH=${MONO_REPO_ROOT}/tmp/mono-acceptance-tests/bin:$PATH
${TESTCMD} --label=check-roslyn --timeout=60m make -C acceptance-tests check-roslyn
export PATH=$OLD_PATH
rm -rf "${MONO_REPO_ROOT}/tmp/mono-acceptance-tests"

# run CoreCLR managed tests, we precompile them in parallel so individual steps don't need to do it
${TESTCMD} --label=coreclr-compile-tests --timeout=140m --fatal make -C acceptance-tests coreclr-compile-tests
${TESTCMD} --label=coreclr-runtest-basic --timeout=20m make -C acceptance-tests coreclr-runtest-basic
${TESTCMD} --label=coreclr-runtest-coremanglib --timeout=10m make -C acceptance-tests coreclr-runtest-coremanglib

# run the GC stress tests (on PRs we only run a short version)
${TESTCMD} --label=coreclr-gcstress --timeout=1200m make -C acceptance-tests coreclr-gcstress

${MONO_REPO_ROOT}/scripts/ci/run-upload-sentry.sh