se.py (8436:5648986156db) | se.py (8467:82ff928182c5) |
---|---|
1# Copyright (c) 2006-2008 The Regents of The University of Michigan 2# All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions are 6# met: redistributions of source code must retain the above copyright 7# notice, this list of conditions and the following disclaimer; 8# redistributions in binary form must reproduce the above copyright --- 56 unchanged lines hidden (view full) --- 65 default=joinpath(m5_root, "tests/test-progs/hello/bin/%s/linux/hello" % \ 66 buildEnv['TARGET_ISA']), 67 help="The binary to run in syscall emulation mode.") 68parser.add_option("-o", "--options", default="", 69 help='The options to pass to the binary, use " " around the entire string') 70parser.add_option("-i", "--input", default="", help="Read stdin from a file.") 71parser.add_option("--output", default="", help="Redirect stdout to a file.") 72parser.add_option("--errout", default="", help="Redirect stderr to a file.") | 1# Copyright (c) 2006-2008 The Regents of The University of Michigan 2# All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions are 6# met: redistributions of source code must retain the above copyright 7# notice, this list of conditions and the following disclaimer; 8# redistributions in binary form must reproduce the above copyright --- 56 unchanged lines hidden (view full) --- 65 default=joinpath(m5_root, "tests/test-progs/hello/bin/%s/linux/hello" % \ 66 buildEnv['TARGET_ISA']), 67 help="The binary to run in syscall emulation mode.") 68parser.add_option("-o", "--options", default="", 69 help='The options to pass to the binary, use " " around the entire string') 70parser.add_option("-i", "--input", default="", help="Read stdin from a file.") 71parser.add_option("--output", default="", help="Redirect stdout to a file.") 72parser.add_option("--errout", default="", help="Redirect stderr to a file.") |
73parser.add_option("--ruby", action="store_true") | |
74 | 73 |
74if 'PROTOCOL' in buildEnv: 75 parser.add_option("--ruby", action="store_true") 76 |
|
75execfile(os.path.join(config_root, "common", "Options.py")) 76 | 77execfile(os.path.join(config_root, "common", "Options.py")) 78 |
77(options, args) = parser.parse_args() 78 79if options.ruby: | 79if '--ruby' in sys.argv: |
80 Ruby.define_options(parser) | 80 Ruby.define_options(parser) |
81 (options, args) = parser.parse_args() | |
82 | 81 |
82(options, args) = parser.parse_args() 83 |
|
83if args: 84 print "Error: script doesn't take any positional arguments" 85 sys.exit(1) 86 87multiprocesses = [] 88apps = [] 89 90if options.bench: --- 108 unchanged lines hidden --- | 84if args: 85 print "Error: script doesn't take any positional arguments" 86 sys.exit(1) 87 88multiprocesses = [] 89apps = [] 90 91if options.bench: --- 108 unchanged lines hidden --- |