[netcore] Run individual CoreCLR test suites (mono/mono#17753)
authorRyan Lucia <rylucia@microsoft.com>
Fri, 8 Nov 2019 18:14:06 +0000 (13:14 -0500)
committerGitHub <noreply@github.com>
Fri, 8 Nov 2019 18:14:06 +0000 (13:14 -0500)
This is implemented in a lazy way for convenience when manually testing until the tests are wired up to xunit

Commit migrated from https://github.com/mono/mono/commit/68d142912d8a949c1874629391fb7d7b87fccd92

src/mono/netcore/Makefile

index 2311aa4..0cf08ec 100644 (file)
@@ -272,5 +272,15 @@ run-tests-coreclr: prepare update-tests-coreclr corerun
        echo "Failed: $$failures"
 endif
 
+run-tests-coreclr-%: prepare update-tests-coreclr
+       @echo ""
+       @echo "***************** $* *********************"
+       @test_sh=$$(find . -type f -name "$*.sh" | head -n 1); \
+       if [ ! -z "$$test_sh" ]; then \
+               MONO_ENV_OPTIONS="--debug" COMPlus_DebugWriteToStdErr=1 sh $$test_sh -coreroot="$(realpath $(SHAREDRUNTIME))"; \
+       else \
+               echo "Test file $*.sh not found"; \
+       fi
+
 distdir:
 distclean: