コード例 #1
0
        public override bool Execute()
        {
            if (DebugWaitForInput)
            {
                this.Log.LogMessageFromText($"PID:{Process.GetCurrentProcess().Id} Attach debugger now.", MessageImportance.High);

                while (DebugWaitForInput) ;
            }

            try
            {
                CodeGenOutput.Redirect(new TaskLogOutputWriter(this.Log));

                LoadSuiteGenerator suiteGen = new LoadSuiteGenerator();

                suiteGen.GenerateSuite(this.ParseSeed(), this.SuiteName, this.SuitePath, this.ParseTestPaths(), this.ParseSearchStrings(), this.ParseFrameworkPaths(), this.GetSuiteConfig());

                return true;
                //return this.Log.HasLoggedErrors;
            }
            catch (Exception e)
            {
                this.Log.LogErrorFromException(e);

                return false;
            }
        }
コード例 #2
0
        public override bool Execute()
        {
            if (DebugWaitForInput)
            {
                this.Log.LogMessageFromText($"PID:{Process.GetCurrentProcess().Id} Attach debugger now.", MessageImportance.High);

                while (DebugWaitForInput)
                {
                    ;
                }
            }

            try
            {
                CodeGenOutput.Redirect(new TaskLogOutputWriter(this.Log));

                LoadSuiteGenerator suiteGen = new LoadSuiteGenerator();

                suiteGen.GenerateSuite(this.ParseSeed(), this.SuiteName, this.SuitePath, this.ParseTestPaths(), this.ParseSearchStrings(), this.ParseFrameworkPaths(), this.GetSuiteConfig(), this.DiscoveryCachePath);

                return(true);
                //return this.Log.HasLoggedErrors;
            }
            catch (Exception e)
            {
                this.Log.LogErrorFromException(e);

                return(false);
            }
        }
コード例 #3
0
ファイル: Program.cs プロジェクト: jango2015/corefx-tools
        public static int GenTests(GenTestsArgs args)
        {
            LoadSuiteGenerator suiteGen = new LoadSuiteGenerator();

            int seed = args.Seed == 0 ? new Random().Next() : args.Seed;

            suiteGen.GenerateSuite(seed, args.SuiteName, args.OutputPath, args.TestPaths, args.FileMasks, args.HintPaths, LoadSuiteConfig.Deserialize(args.ConfigPath));

            return 0;
        }
コード例 #4
0
        public override bool Execute()
        {
            if (DebugWaitForInput)
            {
                MessageBox.Show($"PID:{Process.GetCurrentProcess().Id} Attach debugger now.", "Debug GenerateStressSuiteTask", MessageBoxButton.OK);
            }

            try
            {
                CodeGenOutput.Redirect(new TaskLogOutputWriter(this.Log));

                LoadSuiteGenerator suiteGen = new LoadSuiteGenerator();

                suiteGen.GenerateSuite(this.ParseSeed(), this.SuiteName, this.SuitePath, this.ParseTestPaths(), this.ParseSearchStrings(), this.ParseFrameworkPaths(), this.GetSuiteConfig(), this.DiscoveryCachePath, this.UseLegacyProject, this.PackageConfigPath);

                return(true);
            }
            catch (Exception e)
            {
                this.Log.LogErrorFromException(e);

                return(false);
            }
        }
コード例 #5
0
        public override bool Execute()
        {
            if (DebugWaitForInput)
            {
                MessageBox.Show($"PID:{Process.GetCurrentProcess().Id} Attach debugger now.", "Debug GenerateStressSuiteTask", MessageBoxButton.OK);
            }

            try
            {
                CodeGenOutput.Redirect(new TaskLogOutputWriter(this.Log));

                LoadSuiteGenerator suiteGen = new LoadSuiteGenerator();

                suiteGen.GenerateSuite(this.ParseSeed(), this.SuiteName, this.SuitePath, this.ParseTestPaths(), this.ParseSearchStrings(), this.ParseFrameworkPaths(), this.GetSuiteConfig(), this.DiscoveryCachePath, this.UseLegacyProject, this.PackageConfigPath);

                return true;
            }
            catch (Exception e)
            {
                this.Log.LogErrorFromException(e);

                return false;
            }
        }