From 695c25c894afca1d9d6163c051d588273af37a8b Mon Sep 17 00:00:00 2001 From: EgorBo Date: Mon, 3 Feb 2020 21:07:46 +0300 Subject: [PATCH] Clean up --- src/mono/mono.proj | 31 ++++++++++++----------------- src/mono/netcore/Makefile | 41 ++++++++++++++++----------------------- 2 files changed, 29 insertions(+), 43 deletions(-) diff --git a/src/mono/mono.proj b/src/mono/mono.proj index d4c660825d669..8e574b7d0d690 100644 --- a/src/mono/mono.proj +++ b/src/mono/mono.proj @@ -5,7 +5,6 @@ $(ArtifactsObjDir)mono/$(PlatformConfigPathPart)/ false - $(ArtifactsDir)bin\testhost\$(NetCoreAppCurrent)-$(OSGroup)-$(Configuration)-$(Platform) dotnet.exe dotnet ..\..\.dotnet @@ -89,7 +88,7 @@ - + $([System.IO.Directory]::GetDirectories("$(LocalDotnetDir)\shared\Microsoft.NETCore.App")[0]) @@ -102,16 +101,7 @@ SkipUnchangedFiles="true" /> - - - <_MonoRuntimeArtifacts Include="$(BinDir)\*.*" /> - - - - - + <_MonoRuntimeArtifacts Include="$(BinDir)\*.*" /> @@ -122,13 +112,12 @@ - - - + + - + @@ -136,21 +125,25 @@ - + + + + + + - + - diff --git a/src/mono/netcore/Makefile b/src/mono/netcore/Makefile index 3396bc87356b3..3527ca42c0e26 100644 --- a/src/mono/netcore/Makefile +++ b/src/mono/netcore/Makefile @@ -1,39 +1,32 @@ DOTNET=../../../.dotnet/dotnet -TESTHOST_PATH=../../../artifacts/bin/testhost/ -# let's check ../../../artifacts/bin/testhost/ for available configurations -# it's expected to see there only a single config, e.g. "netcoreapp5.0-OSX-Release-x64" -# otherwise you have to set these variables for desired config -ifeq ($(words $(wildcard $(TESTHOST_PATH)/*)), 1) - TESTHOST_CFG := $(subst -, ,$(notdir $(wildcard $(TESTHOST_PATH)/*))) - CONFIGURATION := $(word 3,$(TESTHOST_CFG)) - MONO_PROPS := /p:Configuration=$(CONFIGURATION) -endif +# run sample using local .dotnet (will be patched with Mono Runtime) +run-sample: + $(DOTNET) msbuild /t:RunSample ../mono.proj -check-config: - @if test -z "$(CONFIGURATION)"; then echo "CONFIGURATION is not set"; exit 1; fi - -run-sample: check-config - $(DOTNET) msbuild /t:RunSample $(MONO_PROPS) ../mono.proj - -run-sample-coreclr: check-config - $(DOTNET) run -c Release -p sample/HelloWorld +# run sample using dotnet from PATH +run-sample-coreclr: + dotnet run -c Release -p sample/HelloWorld runtime: - $(DOTNET) msbuild /t:Build $(MONO_PROPS) ../mono.proj + $(DOTNET) msbuild /t:Build ../mono.proj # temp: makes $(DOTNET) to use mono runtime (to run real-world apps using '$(DOTNET) run') -patch-local-dotnet: check-config - $(DOTNET) msbuild /t:PatchLocalDotnet $(MONO_PROPS) ../mono.proj +patch-local-dotnet: + $(DOTNET) msbuild /t:PatchLocalDotnet ../mono.proj # run specific coreclr test, e.g.: # make run-tests-coreclr CoreClrTest="bash ../../artifacts/tests/coreclr/OSX.x64.Checked/JIT/opt/InstructionCombining/DivToMul/DivToMul.sh" -run-tests-coreclr: check-config - $(DOTNET) msbuild /t:RunCoreClrTest /p:CoreClrTest="$(CoreClrTest)" $(MONO_PROPS) ../mono.proj +run-tests-coreclr: + $(DOTNET) msbuild /t:RunCoreClrTest /p:CoreClrTest="$(CoreClrTest)" ../mono.proj + +# show summary for coreclr tests +tests-coreclr-summary: + $(DOTNET) msbuild /t:CoreClrTestsSummary ../mono.proj # run all coreclr tests -run-tests-coreclr-all: check-config - $(DOTNET) msbuild /t:RunCoreClrTests $(MONO_PROPS) ../mono.proj +run-tests-coreclr-all: + $(DOTNET) msbuild /t:RunCoreClrTests ../mono.proj # run 'dotnet/performance' benchmarks # e.g. 'make run-benchmarks BenchmarksRepo=/prj/performance'