Example #1
0
        void Compile(AOTOptions options, TestFileEnumerator files, AOTCompilerType compilerType = AOTCompilerType.Bundled64, RunCommandDelegate onRunDelegate = null)
        {
            AOTCompiler compiler = new AOTCompiler(options, compilerType)
            {
                RunCommand      = onRunDelegate != null ? onRunDelegate : OnRunCommand,
                ParallelOptions = new ParallelOptions()
                {
                    MaxDegreeOfParallelism = 1
                },
                XamarinMacPrefix = Driver.WalkUpDirHierarchyLookingForLocalBuild(),                  // HACK - AOT test shouldn't need this from driver.cs
            };

            compiler.Compile(files);
        }
Example #2
0
        public void Init()
        {
            compiler = new AOTCompiler()
            {
                RunCommand      = OnRunCommand,
                ParallelOptions = new ParallelOptions()
                {
                    MaxDegreeOfParallelism = 1
                },
                XamarinMacPrefix = Driver.WalkUpDirHierarchyLookingForLocalBuild(),                  // HACK - AOT test shouldn't need this from driver.cs
            };

            commandsRun = new List <Tuple <string, string> > ();
        }
Example #3
0
		void Compile (AOTOptions options, TestFileEnumerator files, AOTCompilerType compilerType = AOTCompilerType.Bundled64, RunCommandDelegate onRunDelegate = null, bool isRelease = false, bool isModern = false)
		{
			AOTCompiler compiler = new AOTCompiler (options, compilerType, isModern, isRelease)
			{
				RunCommand = onRunDelegate != null ? onRunDelegate : OnRunCommand,
				ParallelOptions = new ParallelOptions () { MaxDegreeOfParallelism = 1 },
				XamarinMacPrefix = Xamarin.Tests.Configuration.SdkRootXM,
			};
			try {
				Profile.Current = new XamarinMacProfile ();
				compiler.Compile (files);
			} finally {
				Profile.Current = null;
			}
		}
Example #4
0
        void Compile(AOTOptions options, TestFileEnumerator files, AOTCompilerType compilerType = AOTCompilerType.Bundled64, RunCommandDelegate onRunDelegate = null, bool isRelease = false, bool isModern = false)
        {
            AOTCompiler compiler = new AOTCompiler(options, compilerType, isModern, isRelease)
            {
                RunCommand      = onRunDelegate != null ? onRunDelegate : OnRunCommand,
                ParallelOptions = new ParallelOptions()
                {
                    MaxDegreeOfParallelism = 1
                },
                XamarinMacPrefix = Driver.WalkUpDirHierarchyLookingForLocalBuild(),                  // HACK - AOT test shouldn't need this from driver.cs
            };

            try {
                Profile.Current = new XamarinMacProfile();
                compiler.Compile(files);
            } finally {
                Profile.Current = null;
            }
        }