diff --git a/.external b/.external index b2201c2232c..c69ada16463 100644 --- a/.external +++ b/.external @@ -1,2 +1,2 @@ -xamarin/monodroid:release/8.0.4xx@1a9ee3733285238e0630f230c383cf3df1a6736d +xamarin/monodroid:release/8.0.4xx@352bcbe8cc06aeba358450f57846218ef274bf01 mono/mono:2020-02@6dd9def57ce969ca04a0ecd9ef72c0a8f069112d diff --git a/tests/MSBuildDeviceIntegration/Tests/InstallTests.cs b/tests/MSBuildDeviceIntegration/Tests/InstallTests.cs index 59ef35bb611..dd8282eef50 100644 --- a/tests/MSBuildDeviceIntegration/Tests/InstallTests.cs +++ b/tests/MSBuildDeviceIntegration/Tests/InstallTests.cs @@ -633,6 +633,22 @@ public void AdbTargetChangesAppBundle () Assert.AreNotEqual (before, after, $"{apkset} should change!"); } + [Test] + public void AdbTargetArchitecture () + { + AssertCommercialBuild (); + AssertHasDevices (); + + const string abi = "x86_64"; + var proj = new XamarinAndroidApplicationProject (); + + using var b = CreateApkBuilder (); + b.Verbosity = LoggerVerbosity.Diagnostic; + Assert.IsTrue (b.Install (proj, parameters: [ $"AdbTargetArchitecture={abi}" ]), "install should have succeeded."); + Assert.IsTrue (StringAssertEx.ContainsText (b.LastBuildOutput, $"Using $(AdbTargetArchitecture): {abi}"), + $"`_GetPrimaryCpuAbi` should be skipped for $(AdbTargetArchitecture)!"); + } + [Test] public void AppWithAndroidJavaSource () {