Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            // Enter into a test loop
            TestLoop t = new TestLoop();

            if (args.Length >= 1)
            {
                string filename = args[0];
                string basePath = Environment.CurrentDirectory;
                while(filename.StartsWith("..\\"))
                {
                    basePath = Directory.GetParent(basePath).FullName;
                    filename = filename.Substring(3);
                }
                filename = System.IO.Path.Combine(basePath, filename);

                t.SetFpgaFilename(filename);
            }

            t.Run();
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            // Enter into a test loop
            TestLoop t = new TestLoop();

            if (args.Length >= 1)
            {
                string filename = args[0];
                string basePath = Environment.CurrentDirectory;
                while (filename.StartsWith("..\\"))
                {
                    basePath = Directory.GetParent(basePath).FullName;
                    filename = filename.Substring(3);
                }
                filename = System.IO.Path.Combine(basePath, filename);

                t.SetFpgaFilename(filename);
            }

            t.Run();
        }