Imported Upstream version 6.12.0.86

Former-commit-id: 7a84ce7d08c42c458ac8e74b27186ca863315d79
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2020-07-10 08:44:59 +00:00
parent 92747312ea
commit 0b380204a4
812 changed files with 26901 additions and 9053 deletions

24
netcore/Makefile Executable file → Normal file
View File

@@ -205,7 +205,7 @@ run-tests-corefx: prepare update-tests-corefx
counter=$$((counter+1)); \
testname=$$(basename $$testdir); \
if [ -n "$$USE_TIMEOUT" ]; then timeoutcmd="../scripts/ci/run-step.sh --label=$$testname --timeout=10m --fatal"; fi; \
$$timeoutcmd $(MAKE) run-tests-corefx-$$testname TEST_COUNTER="($$counter / $$tests_count) " || echo $$testname >> .failures; \
$$timeoutcmd $(MAKE) run-tests-corefx-$$testname XUNIT_MONO_ENV_OPTIONS="$(XUNIT_MONO_ENV_OPTIONS)" XUNIT_ARGS="$(XUNIT_ARGS)" TEST_COUNTER="($$counter / $$tests_count) " || echo $$testname >> .failures; \
done; \
$(MAKE) xunit-summary; \
if [ -e ".failures" ]; then \
@@ -274,6 +274,28 @@ run-tests-coreclr: prepare update-tests-coreclr corerun
echo "Failed: $$failures"
endif
run-tests-mono: prepare
failures=0; \
counter=0; \
test_prj_dir=''; \
test_prj_name=''; \
test_projects=$$(find tests -type f -name "*.csproj"); \
for test_prj in $$test_projects; do \
counter=$$((counter+1)); \
echo "Running $$test_prj_dir"; \
test_prj_dir=$$(dirname $$test_prj); \
test_prj_name=$$(basename $$test_prj); \
test_prj_name=$${test_prj_name%.*}; \
$(DOTNET) build -c Release $$test_prj; \
MONO_ENV_OPTIONS="--debug $(MONO_ENV_OPTIONS)" COMPlus_DebugWriteToStdErr=1 ./dotnet --fx-version "$(NETCOREAPP_VERSION)" $$test_prj_dir/bin/netcoreapp3.0/$$test_prj_name.dll; \
if [ $$? -ne 0 ]; then \
failures=$$((failures+1)); \
fi; \
done; \
echo "======================"; \
echo "Tests Count: $$counter"; \
echo "Failed: $$failures"
run-tests-coreclr-%: prepare update-tests-coreclr
@echo ""
@echo "***************** $* *********************"