For now, builders in bb.pgr.jp are using it.
llvm-svn: 187886
def __init__(self, progname, path, quiet,
useValgrind, valgrindLeakCheck, valgrindArgs,
- debug, isWindows, params, config_prefix = None):
+ noExecute, debug, isWindows,
+ params, config_prefix = None):
# The name of the test runner.
self.progname = progname
# The items to add to the PATH environment variable.
self.useValgrind = bool(useValgrind)
self.valgrindLeakCheck = bool(valgrindLeakCheck)
self.valgrindUserArgs = list(valgrindArgs)
+ self.noExecute = noExecute
self.debug = debug
self.isWindows = bool(isWindows)
self.params = dict(params)
if litConfig.useValgrind:
cmd = litConfig.valgrindArgs + cmd
+ if litConfig.noExecute:
+ return Test.PASS, ''
+
out, err, exitCode = lit.TestRunner.executeCommand(
cmd, env=test.config.environment)
script, isXFail, tmpBase, execdir = res
+ if litConfig.noExecute:
+ return (Test.PASS, '')
+
# Create the output directory if it does not already exist.
Util.mkdir_p(os.path.dirname(tmpBase))
useValgrind = False,
valgrindLeakCheck = False,
valgrindArgs = [],
+ noExecute = False,
debug = False,
isWindows = (platform.system()=='Windows'),
params = {})
group.add_option("", "--time-tests", dest="timeTests",
help="Track elapsed wall time for each test",
action="store_true", default=False)
+ group.add_option("", "--no-execute", dest="noExecute",
+ help="Don't execute any tests (assume PASS)",
+ action="store_true", default=False)
parser.add_option_group(group)
group = OptionGroup(parser, "Test Selection")
useValgrind = opts.useValgrind,
valgrindLeakCheck = opts.valgrindLeakCheck,
valgrindArgs = opts.valgrindArgs,
+ noExecute = opts.noExecute,
debug = opts.debug,
isWindows = (platform.system()=='Windows'),
params = userParams,