Skip to content

Commit

Permalink
[tests] Improve makefiles for .NET's dont link test. (xamarin#12690)
Browse files Browse the repository at this point in the history
This makes it identical to the 'link sdk' and 'link all' makefiles.
  • Loading branch information
rolfbjarne committed Sep 10, 2021
1 parent 033ebd7 commit f559399
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions tests/linker/ios/dont link/dotnet/shared.mk
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ TOP=../../../../../..
include $(TOP)/Make.config
include $(TOP)/mk/colors.mk

TESTNAME:=$(shell basename "$(shell dirname "$(shell dirname "$(CURDIR)")")")

reload:
$(Q) rm -Rf $(TOP)/tests/dotnet/packages
$(Q) $(MAKE) -C $(TOP) -j8 all
Expand All @@ -21,10 +23,16 @@ reload-and-run:
$(Q) $(MAKE) run

build: prepare
$(DOTNET6) build /bl:$@.binlog *.csproj $(MSBUILD_VERBOSITY)
$(Q) $(DOTNET6) build /bl *.csproj $(MSBUILD_VERBOSITY) $(BUILD_ARGUMENTS)

run: prepare
$(DOTNET6) build /bl:$@.binlog *.csproj /v:diag -t:Run
$(Q) $(DOTNET6) build /bl *.csproj $(MSBUILD_VERBOSITY) $(BUILD_ARGUMENTS) -t:Run

run-bare:
$(Q) ./bin/Debug/net6.0-*/*/"$(TESTNAME)".app/Contents/MacOS/"$(TESTNAME)"

diag: prepare
$(Q) $(DOTNET6) build /v:diag msbuild.binlog

diag:
$(DOTNET6) build /v:diag msbuild.binlog
clean:
rm -Rf bin obj *.binlog

0 comments on commit f559399

Please sign in to comment.