From 78efb9250245617ff8532371ae4b8375a741f5ea Mon Sep 17 00:00:00 2001 From: Maxim Lipnin Date: Wed, 16 Dec 2020 13:03:58 +0300 Subject: [PATCH] Run wasm console sample on Helix (#45768) - Included the WASM console sample project to the library test build. The sample can still be built/run locally using make file. - Added zipping/copying the sample application to helix directory from where it can be consumed by CI. - To run on Helix, tried to use a simple helix work item which wouldn't rely on generated RunTests.sh and just call the xharness command directly. Relates to https://github.com/dotnet/runtime/issues/43865 --- src/libraries/sendtohelixhelp.proj | 10 ++++++++++ src/libraries/tests.proj | 3 +++ .../sample/wasm/console/WasmSample.csproj | 19 ++++++++++++++++++- 3 files changed, 31 insertions(+), 1 deletion(-) diff --git a/src/libraries/sendtohelixhelp.proj b/src/libraries/sendtohelixhelp.proj index 2ed8cbecff9938..742f4bb0e1df1a 100644 --- a/src/libraries/sendtohelixhelp.proj +++ b/src/libraries/sendtohelixhelp.proj @@ -254,6 +254,16 @@ + + + <_RunOnlyWorkItem Include="$(TestArchiveRoot)runonly/**/*.zip" /> + + %(Identity) + + dotnet exec $XHARNESS_CLI_PATH wasm $XHARNESS_COMMAND --app=. --engine=V8 --engine-arg=--stack-trace-limit=1000 --js-file=runtime.js --output-directory=$XHARNESS_OUT -- --run WasmSample.dll + + + diff --git a/src/libraries/tests.proj b/src/libraries/tests.proj index 101f6d857db32c..26d49b7cdd4508 100644 --- a/src/libraries/tests.proj +++ b/src/libraries/tests.proj @@ -175,6 +175,9 @@ + + Exe bin @@ -116,5 +116,22 @@ + + + + + $(TargetOS).AnyCPU.$(Configuration) + $(ArtifactsDir)helix/ + $(HelixArchiveRoot)runonly/ + $(HelixArchiveRunOnlyRoot)$(OSPlatformConfig)/ + $(OutputPath)/WasmConsoleSample.zip + + + + +