Пример #1
0
        public void HybridAOT_WithManualStrippingOfJustMainExe()
        {
            MMPTests.RunMMPTest(tmpDir => {
                TI.UnifiedTestConfig test = new TI.UnifiedTestConfig(tmpDir)
                {
                    CSProjConfig = AOTTestHybridConfig
                };
                string buildResults = TI.TestUnifiedExecutable(test).BuildOutput;

                TI.RunAndAssert("/Library/Frameworks/Mono.framework/Commands/mono-cil-strip", Path.Combine(GetOutputBundlePath(tmpDir), "UnifiedExample.exe"), "Manually strip IL");

                ValidateAOTStatus(tmpDir, IsFileManagedCode, buildResults);

                TI.RunEXEAndVerifyGUID(tmpDir, test.guid, GetOutputAppPath(tmpDir));
            });
        }
Пример #2
0
        public void HybridAOT_WithManualStrippingOfJustMainExe(bool useProjectTags)
        {
            MMPTests.RunMMPTest(tmpDir => {
                TI.UnifiedTestConfig test = new TI.UnifiedTestConfig(tmpDir)
                {
                    CSProjConfig = GetTestConfig(TestType.Hybrid, useProjectTags)
                };
                TI.TestUnifiedExecutable(test);

                TI.RunAndAssert("/Library/Frameworks/Mono.framework/Commands/mono-cil-strip", new [] { Path.Combine(GetOutputBundlePath(tmpDir), "UnifiedExample.exe") }, "Manually strip IL");

                ValidateAOTStatus(tmpDir, IsFileManagedCode);

                TI.RunEXEAndVerifyGUID(tmpDir, test.guid, GetOutputAppPath(tmpDir));
            });
        }
Пример #3
0
        public void HybridAOT_WithManualStrippingOfAllLibs_SmokeTest()
        {
            MMPTests.RunMMPTest(tmpDir => {
                TI.UnifiedTestConfig test = new TI.UnifiedTestConfig(tmpDir)
                {
                    CSProjConfig = AOTTestHybridConfig
                };
                string buildResults = TI.TestUnifiedExecutable(test).BuildOutput;

                foreach (var file in GetOutputDirInfo(tmpDir).EnumerateFiles())
                {
                    if (IsFileManagedCode(file))
                    {
                        TI.RunAndAssert("/Library/Frameworks/Mono.framework/Commands/mono-cil-strip", file.ToString(), "Manually strip IL");
                    }
                }

                ValidateAOTStatus(tmpDir, IsFileManagedCode, buildResults);

                TI.RunEXEAndVerifyGUID(tmpDir, test.guid, GetOutputAppPath(tmpDir));
            });
        }
Пример #4
0
        public void HybridAOT_WithManualStrippingOfAllLibs_SmokeTest(bool useProjectTags)
        {
            MMPTests.RunMMPTest(tmpDir => {
                TI.UnifiedTestConfig test = new TI.UnifiedTestConfig(tmpDir)
                {
                    CSProjConfig = GetTestConfig(TestType.Hybrid, useProjectTags)
                };
                TI.TestUnifiedExecutable(test);

                foreach (var file in GetOutputDirInfo(tmpDir).EnumerateFiles())
                {
                    if (IsFileManagedCode(file))
                    {
                        TI.RunAndAssert("/Library/Frameworks/Mono.framework/Commands/mono-cil-strip", new [] { file.ToString() }, "Manually strip IL");
                    }
                }

                ValidateAOTStatus(tmpDir, IsFileManagedCode);

                TI.RunEXEAndVerifyGUID(tmpDir, test.guid, GetOutputAppPath(tmpDir));
            });
        }