Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[release/8.0.4xx] [tests] add test for $(AdbTargetArchitecture) (#9227) #9317

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .external
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
xamarin/monodroid:release/8.0.4xx@1a9ee3733285238e0630f230c383cf3df1a6736d
xamarin/monodroid:release/8.0.4xx@352bcbe8cc06aeba358450f57846218ef274bf01
mono/mono:2020-02@6dd9def57ce969ca04a0ecd9ef72c0a8f069112d
16 changes: 16 additions & 0 deletions tests/MSBuildDeviceIntegration/Tests/InstallTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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 ()
{
Expand Down
Loading