Skip to content

Commit 847334e

Browse files
committed
Makefile: add sdksanity rule for testing on Linux
To allow compile-testing the C# code on Linux reintroduce the 'sdksanity' rule which got dropped accidentally. Also run the tests. Fixes: e6afe15 ("Removed erroneously ported recipe.") Signed-off-by: Edwin Török <[email protected]>
1 parent 187d61e commit 847334e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@ doc:
8383
sdk:
8484
dune build --profile=$(PROFILE) @sdkgen xapi-sdk.install @ocaml/sdk-gen/install
8585

86+
# workaround for no .resx generation, just for compilation testing
87+
sdksanity: sdk
88+
cd _build/install/default/share/csharp/src && dotnet add package Newtonsoft.Json && dotnet build -f netstandard2.0
89+
cd _build/install/default/share/csharp && dotnet test XenServerTest -p:DefineConstants=BUILD_FOR_TEST
90+
8691
.PHONY: sdk-build-c
8792

8893
sdk-build-c: sdk

0 commit comments

Comments
 (0)