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
path: root/mcs/build
diff options
context:
space:
mode:
authorAlexander Köplinger <alex.koeplinger@outlook.com>2019-05-06 14:59:03 +0300
committerGitHub <noreply@github.com>2019-05-06 14:59:03 +0300
commit4eea0870e1fda2609617c86f92afb245ee1487e6 (patch)
treef8d72402977e16dec0bd92c44c957b0514f3db45 /mcs/build
parent3bb7f82d0074488bf7449d8b768a15fac92dfd74 (diff)
[tests] Write nunit/xunit exclude categories to a file (#14281)
So we can include it in the SDKs archive.
Diffstat (limited to 'mcs/build')
-rw-r--r--mcs/build/tests.make10
1 files changed, 8 insertions, 2 deletions
diff --git a/mcs/build/tests.make b/mcs/build/tests.make
index 7975901bc2c..257ce2dae27 100644
--- a/mcs/build/tests.make
+++ b/mcs/build/tests.make
@@ -145,7 +145,7 @@ ifdef HAVE_CS_TESTS
test_assemblies += $(test_lib_output)
check: run-test
-test-local: $(test_assemblies)
+test-local: $(test_assemblies) $(test_lib_dir)/nunit-excludes.txt
run-test-local: run-test-lib
run-test-ondotnet-local: run-test-ondotnet-lib
@@ -244,6 +244,9 @@ else
TEST_HARNESS_EXEC=$(TEST_RUNTIME) $(TEST_RUNTIME_FLAGS) $(TEST_COVERAGE_FLAGS) $(AOT_RUN_FLAGS) $(TEST_HARNESS)
endif
+$(test_lib_dir)/nunit-excludes.txt: $(topdir)/build/tests.make | $(test_lib_dir)
+ @echo "$(TEST_HARNESS_EXCLUDES)" > $@
+
## FIXME: i18n problem in the 'sed' command below
run-test-lib: test-local test-local-aot-compile copy-nunitlite-appconfig
ok=:; \
@@ -337,9 +340,12 @@ XTEST_COVERAGE_FLAGS = -O=-aot --profile=coverage:output=$(topdir)/class/lib/$(P
endif
check: run-xunit-test-local
-xunit-test-local: $(xtest_lib_output)
+xunit-test-local: $(xtest_lib_output) $(test_lib_dir)/xunit-excludes.txt
run-xunit-test-local: run-xunit-test-lib
+$(test_lib_dir)/xunit-excludes.txt: $(topdir)/build/tests.make | $(test_lib_dir)
+ @echo "$(XTEST_TRAIT) $(XTEST_TRAIT_PLATFORM)" > $@
+
# cp -rf is a HACK for xunit runner to require xunit.execution.dOTNET.dll file in local folder on .net only
run-xunit-test-lib: xunit-test-local
@cp -rf $(XTEST_HARNESS_PATH)/xunit.execution.dotnet.dll $(test_lib_dir)/xunit.execution.dotnet.dll