Beispiel #1
0
        public void BuildBasicApplicationReleaseProfiledAotWithoutDefaultProfile()
        {
            var proj = new XamarinAndroidApplicationProject()
            {
                IsRelease = true,
                AndroidEnableProfiledAot = true,
            };

            proj.SetProperty(proj.ActiveConfigurationProperties, "AndroidUseDefaultAotProfile", "false");
            using (var b = CreateApkBuilder(Path.Combine("temp", TestName))) {
                Assert.IsTrue(b.Build(proj), "Build should have succeeded.");
                StringAssertEx.DoesNotContainRegex(@"\[aot-compiler stdout\] Using profile data file.*build.Xamarin.Android.startup.*\.aotprofile", b.LastBuildOutput, "Should not use default AOT profile", RegexOptions.IgnoreCase);
            }
        }