static void Main(string[] args) { bool test = args.Contains("--test"); bool benchmark = args.Contains("--benchmark"); bool plot = args.Contains("--plot"); Log log = new ConsoleLog() { Verbosity = MessageType.Info }; Test tester = new Test(); foreach (string i in args.Where(i => !i.StartsWith("--"))) { foreach (string File in Globber.Glob(i)) { System.Console.WriteLine(File); Circuit.Circuit C = Schematic.Load(File, log).Build(); C.Name = Path.GetFileNameWithoutExtension(File); if (test) { Dictionary <Expression, List <double> > outputs = tester.Run(C, t => Harmonics(t, 0.5, 82, 2), SampleRate, Samples, Oversample, Iterations); if (plot) { tester.PlotAll(C.Name, outputs); } } if (benchmark) { tester.Benchmark(C, t => Harmonics(t, 0.5, 82, 2), SampleRate, Oversample, Iterations); } System.Console.WriteLine(""); } } }