-
Notifications
You must be signed in to change notification settings - Fork 514
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[tests] Add make target to build (not run) all the test suites. (#21575)
This is useful to verify that sweeping code changes actually compile everywhere.
- Loading branch information
1 parent
43768cf
commit 95a0ad2
Showing
9 changed files
with
48 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,2 @@ | ||
TOP=../../.. | ||
include $(TOP)/Make.config | ||
|
||
build-all: | ||
for platform in $(DOTNET_PLATFORMS); do \ | ||
echo "Building in $$platform"; \ | ||
$(MAKE) -C "$$platform" build; \ | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,2 @@ | ||
TOP=../../.. | ||
include $(TOP)/Make.config | ||
|
||
build-all: | ||
for platform in $(DOTNET_PLATFORMS); do \ | ||
echo "Building in $$platform"; \ | ||
$(MAKE) -C "$$platform" build; \ | ||
done | ||
include $(TOP)/tests/common/shared-dotnet-test.mk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
TOP=../../.. | ||
include $(TOP)/tests/common/shared-dotnet-test.mk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
TOP=../../../.. | ||
TOP=../../../../.. | ||
include $(TOP)/tests/common/shared-dotnet-test.mk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
TOP=../../../.. | ||
TOP=../../../../.. | ||
include $(TOP)/tests/common/shared-dotnet-test.mk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
TOP=../.. | ||
include $(TOP)/Make.config | ||
|
||
# Example TEST_FILTER: | ||
# TEST_FILTER="--filter FullyQualifiedName~BuildMyCocoaApp" | ||
# Docs: https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-test#filter-option-details | ||
|
||
build-bindings-analyzer-tests: | ||
$(Q) $(DOTNET) build Microsoft.Macios.Bindings.Analyzer.Tests/Microsoft.Macios.Bindings.Analyzer.Tests.csproj $(DOTNET_BUILD_VERBOSITY) | ||
|
||
run-bindings-analyzer-tests: | ||
$(Q) $(DOTNET) test Microsoft.Macios.Bindings.Analyzer.Tests/Microsoft.Macios.Bindings.Analyzer.Tests.csproj $(TEST_FILTER) | ||
|
||
build-generator-tests: | ||
$(Q) $(DOTNET) build Microsoft.Macios.Generator.Tests/Microsoft.Macios.Generator.Tests.csproj $(DOTNET_BUILD_VERBOSITY) | ||
|
||
run-generator-tests: | ||
$(Q) $(DOTNET) test Microsoft.Macios.Generator.Tests/Microsoft.Macios.Generator.Tests.csproj $(TEST_FILTER) | ||
|
||
build-all: build-bindings-analyzer-tests build-generator-tests | ||
|
||
run-tests run test: run-bindings-analyzer-tests run-generator-tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,2 @@ | ||
TOP=../../.. | ||
include $(TOP)/Make.config | ||
|
||
build-all: | ||
for platform in $(DOTNET_PLATFORMS); do \ | ||
echo "Building in $$platform"; \ | ||
$(MAKE) -C "$$platform" build; \ | ||
done | ||
include $(TOP)/tests/common/shared-dotnet-test.mk |
This comment was marked as outdated.
Sorry, something went wrong.
This comment was marked as outdated.
Sorry, something went wrong.
This comment was marked as outdated.
Sorry, something went wrong.
This comment was marked as outdated.
Sorry, something went wrong.
This comment was marked as outdated.
Sorry, something went wrong.