[mono-symbolicate/mdoc] Don't fail tests in mcs mode (#5348)
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Thu, 10 Aug 2017 00:33:23 +0000 (02:33 +0200)
committerGitHub <noreply@github.com>
Thu, 10 Aug 2017 00:33:23 +0000 (02:33 +0200)
The checked in test files which the test suites in mono-symbolicate
and mdoc verify their output against have a few roslyn-specific
things in them and would fail when running in mcs mode.

While in theory we could check in both mcs- and roslyn-specific
test files it seems not worth the effort and we should just skip
the tests in mcs mode so we get greener builds on platforms
where we still use mcs by default.

mcs/tools/mdoc/Makefile
mcs/tools/mono-symbolicate/Makefile

index 285a031f5d216538ccc7aacb4e96170a2dcbd6a7..e4bd162730ca1f72810851af9a40176d4c84c2ab 100644 (file)
@@ -55,6 +55,11 @@ DIFF = diff -rupZ
 DIFF_QUIET = diff --brief -Z
 endif
 
+ifdef MCS_MODE
+DIFF = echo "WARNING: running in mcs mode, tests are specific to roslyn and would fail. Skipping diff check."
+DIFF_QUIET = $(DIFF)
+endif
+
 dist-local: dist-default dist-tests
 
 dist-tests:
index ea774840c110573a7faebc0f4caabb47c2eaf3e1..440dfe9f8e65876bdcd3a44346190982a73832c3 100644 (file)
@@ -35,6 +35,10 @@ CHECK_DIFF = @\
                exit 1; \
        fi
 
+ifdef MCS_MODE
+CHECK_DIFF = @echo "WARNING: running in mcs mode, tests are specific to roslyn and would fail. Skipping diff check."
+endif
+
 PREPARE_OUTDIR = @\
        rm -rf $(OUT_DIR); \
        mkdir -p $(OUT_DIR); \