From d662abbb7f25ebbce0ef2055348cc149c2ef6f5b Mon Sep 17 00:00:00 2001 From: Maxim Lipnin Date: Fri, 11 Dec 2020 20:43:05 +0300 Subject: [PATCH] Run Mono Android sample on Helix (#45109) - Included the android sample project to the library test build. - Added copying resulting HelloAndroid.apk to helix test directory from where it can be consumed by CI. - Set up the return value (42) as an expected exit code for xharness. - Xharness for android doesn't support running an application w/o test runner yet Related issue: #43865 --- src/libraries/sendtohelixhelp.proj | 2 + src/libraries/tests.proj | 3 ++ .../netcore/sample/Android/AndroidSampleApp.csproj | 58 ++++++++++++++++++---- 3 files changed, 53 insertions(+), 10 deletions(-) diff --git a/src/libraries/sendtohelixhelp.proj b/src/libraries/sendtohelixhelp.proj index 2d11c86..2ed8cbe 100644 --- a/src/libraries/sendtohelixhelp.proj +++ b/src/libraries/sendtohelixhelp.proj @@ -215,6 +215,8 @@ net.dot.MonoRunner $(_workItemTimeout) + + 42 diff --git a/src/libraries/tests.proj b/src/libraries/tests.proj index de263d7..101f6d8 100644 --- a/src/libraries/tests.proj +++ b/src/libraries/tests.proj @@ -169,6 +169,9 @@ Exclude="@(ProjectExclusions)" BuildInParallel="false" Condition="'$(TestTrimming)' == 'true'" /> + diff --git a/src/mono/netcore/sample/Android/AndroidSampleApp.csproj b/src/mono/netcore/sample/Android/AndroidSampleApp.csproj index 48e85f8..7d88e3a 100644 --- a/src/mono/netcore/sample/Android/AndroidSampleApp.csproj +++ b/src/mono/netcore/sample/Android/AndroidSampleApp.csproj @@ -1,4 +1,4 @@ - + Exe false @@ -32,6 +32,21 @@ + + + arm64-v8a + armeabi-v7a + x86_64 + x86 + + + + + - - - - - - - + + + + + + - - + + + + + + + + $(TargetOS).AnyCPU.$(Configuration) + + $(ArtifactsDir)helix/ + $(TestArchiveRoot)tests/ + $(TestArchiveTestsRoot)$(OSPlatformConfig)/ + + + <_appFiles Include="$(ApkBundlePath)" /> + + + + + + -- 2.7.4