Skip to content

Commit

Permalink
Add test case for AllowDeltaInstall=true
Browse files Browse the repository at this point in the history
  • Loading branch information
BretJohnson committed May 14, 2020
1 parent c64be48 commit 8926a3e
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion tests/MSBuildDeviceIntegration/Tests/DebuggingTest.cs 100644 → 100755
Expand Up @@ -302,13 +302,24 @@ public override void OnCreate ()
/* embedAssemblies */ false,
/* fastDevType */ "Assemblies:Dexes",
},
new object[] {
/* useSharedRuntime */ true,
/* embedAssemblies */ false,
/* fastDevType */ "Assemblies:Dexes",
},
new object[] {
/* useSharedRuntime */ true,
/* embedAssemblies */ false,
/* fastDevType */ "Assemblies:Dexes",
/* allowDeltaInstall */ true,
},
};
#pragma warning restore 414

[Test]
[TestCaseSource (nameof(DebuggerTestCases))]
[Retry (1)]
public void ApplicationRunsWithDebuggerAndBreaks (bool useSharedRuntime, bool embedAssemblies, string fastDevType)
public void ApplicationRunsWithDebuggerAndBreaks (bool useSharedRuntime, bool embedAssemblies, string fastDevType, bool allowDeltaInstall = false)
{
if (!CommercialBuildAvailable) {
Assert.Ignore ("Test does not run on the Open Source Builds.");
Expand All @@ -326,6 +337,8 @@ public void ApplicationRunsWithDebuggerAndBreaks (bool useSharedRuntime, bool em
};
var abis = new string [] { "armeabi-v7a", "x86" };
proj.SetProperty (KnownProperties.AndroidSupportedAbis, string.Join (";", abis));
if (allowDeltaInstall)
proj.SetProperty (KnownProperties.AndroidAllowDeltaInstall, "true");
proj.SetDefaultTargetDevice ();
using (var b = CreateApkBuilder (Path.Combine ("temp", TestName))) {
SetTargetFrameworkAndManifest (proj, b);
Expand Down

0 comments on commit 8926a3e

Please sign in to comment.