add python options for input file and command line options for live process
authorAli Saidi <saidi@eecs.umich.edu>
Mon, 26 Jun 2006 20:50:19 +0000 (16:50 -0400)
committerAli Saidi <saidi@eecs.umich.edu>
Mon, 26 Jun 2006 20:50:19 +0000 (16:50 -0400)
--HG--
extra : convert_revision : 3db1e6d29846812378aa5174179a0686f0141580

configs/test/test.py

index a570c1a08606b710ae83d3de7a2df6c1d519fe07..738219d82e8d78e30ebbe4cf55787e95ab411e9d 100644 (file)
@@ -12,6 +12,8 @@ from FullO3Config import *
 parser = optparse.OptionParser(option_list=m5.standardOptions)
 
 parser.add_option("-c", "--cmd", default="hello")
+parser.add_option("-o", "--options", default="")
+parser.add_option("-i", "--input", default="")
 parser.add_option("-t", "--timing", action="store_true")
 parser.add_option("-d", "--detailed", action="store_true")
 parser.add_option("-m", "--maxtick", type="int")
@@ -28,7 +30,9 @@ this_dir = os.path.dirname(__file__)
 
 process = LiveProcess()
 process.executable = os.path.join(this_dir, options.cmd)
-process.cmd = options.cmd
+process.cmd = options.cmd + " " + options.options
+if options.input != "":
+    process.input = options.input
 
 magicbus = Bus()
 mem = PhysicalMemory()