Ejemplo n.º 1
0
        static void Main(string[] args)
        {
     
            if (args.Count() != 4) 
            {
                Console.WriteLine("Usage: baseline <repoDir> <repoUrl> <baseLineStrategy> <git || svn>");
                Environment.Exit(1);
            }
                
            var dir = Directory.GetCurrentDirectory();
            var path = Path.Combine(Path.GetFullPath(dir), dir);
            Console.WriteLine(path);
            Repository repo = null;
            if (args[3] == "svn") {
              repo = new SVNRepository(path, args[1], args[0]);

            }
            else if (args[3] == "git")
            {
              repo = new GitRepository(path, args[1], args[0]);
            }
            else
            {
              Console.WriteLine("Unrecognized version control " + args[3]);
              System.Environment.Exit(1);
            }
            repo.CheckoutAll();
            var baseliner = new Baseliner(repo);
            baseliner.BaselineWithRebuild(args[2]);
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            if (args.Count() != 4)
            {
                Console.WriteLine("Usage: baseline <repoDir> <repoUrl> <baseLineStrategy> <git || svn>");
                Environment.Exit(1);
            }

            var dir  = Directory.GetCurrentDirectory();
            var path = Path.Combine(Path.GetFullPath(dir), dir);

            Console.WriteLine(path);
            Repository repo = null;

            if (args[3] == "svn")
            {
                repo = new SVNRepository(path, args[1], args[0]);
            }
            else if (args[3] == "git")
            {
                repo = new GitRepository(path, args[1], args[0]);
            }
            else
            {
                Console.WriteLine("Unrecognized version control " + args[3]);
                System.Environment.Exit(1);
            }
            repo.CheckoutAll();
            var baseliner = new Baseliner(repo);

            baseliner.BaselineWithRebuild(args[2]);
        }
Ejemplo n.º 3
0
        public static void RunAll()
        {
            // working directory
            const string dir = "Versions";
            // experimental subjects
            var benchmarks = new KeyValuePair <string, string>[] { new KeyValuePair <string, string>("elysium", "https://elysium.svn.codeplex.com/svn"),
                                                                   new KeyValuePair <string, string>("autodiff", "https://autodiff.svn.codeplex.com/svn"),
                                                                   new KeyValuePair <string, string>("mishrareader", "https://mishrareader.svn.codeplex.com/svn"),
                                                                   new KeyValuePair <string, string>("imageresizer", "https://imageresizer.svn.codeplex.com/svn"),
                                                                   new KeyValuePair <string, string>("virtualrouter", "https://virtualrouter.svn.codeplex.com/svn"),
                                                                   new KeyValuePair <string, string>("wbfsmanager", "https://wbfsmanager.svn.codeplex.com/svn") };

            // run experiments
            foreach (var pair in benchmarks)
            {
                var repo = new SVNRepository(dir, pair.Value, pair.Key);
                repo.CheckoutAll();
                var baseliner = new Baseliner(repo);
                try
                {
                    baseliner.BaselineWithRebuild("typeBased");
                }
                catch (Exception e)
                {
                    Console.WriteLine("Exception encountered: " + e);
                }

                try
                {
                    baseliner.BaselineWithRebuild("ilBased");
                }
                catch (Exception e)
                {
                    Console.WriteLine("Exception encountered: " + e);
                }
            }
        }
Ejemplo n.º 4
0
        public static void RunAll()
        {
            // working directory
            const string dir = "Versions";
            // experimental subjects
            var benchmarks = new KeyValuePair<string, string>[] { new KeyValuePair<string, string>("elysium", "https://elysium.svn.codeplex.com/svn"),  
                                                                  new KeyValuePair<string,string>("autodiff", "https://autodiff.svn.codeplex.com/svn"),
                                                                  new KeyValuePair<string,string>("mishrareader", "https://mishrareader.svn.codeplex.com/svn"),
                                                                  new KeyValuePair<string,string>("imageresizer", "https://imageresizer.svn.codeplex.com/svn"),
                                                                  new KeyValuePair<string,string>("virtualrouter", "https://virtualrouter.svn.codeplex.com/svn"),
                                                                  new KeyValuePair<string,string>("wbfsmanager", "https://wbfsmanager.svn.codeplex.com/svn") };
            // run experiments
            foreach (var pair in benchmarks)
            {
                var repo = new SVNRepository(dir, pair.Value, pair.Key);
                repo.CheckoutAll();
                var baseliner = new Baseliner(repo);
                try
                {
                    baseliner.BaselineWithRebuild("typeBased");
                }
                catch (Exception e)
                {
                    Console.WriteLine("Exception encountered: " + e);
                }

                try
                {
                    baseliner.BaselineWithRebuild("ilBased");
                }
                catch (Exception e)
                {
                    Console.WriteLine("Exception encountered: " + e);
                }
            }
        }