Index: utils/lit/lit/LitConfig.py =================================================================== --- utils/lit/lit/LitConfig.py +++ utils/lit/lit/LitConfig.py @@ -20,7 +20,7 @@ def __init__(self, progname, path, quiet, useValgrind, valgrindLeakCheck, valgrindArgs, - noExecute, debug, isWindows, + noExecute, runUnder, debug, isWindows, params, config_prefix = None): # The name of the test runner. self.progname = progname @@ -31,6 +31,7 @@ self.valgrindLeakCheck = bool(valgrindLeakCheck) self.valgrindUserArgs = list(valgrindArgs) self.noExecute = noExecute + self.runUnder = runUnder self.debug = debug self.isWindows = bool(isWindows) self.params = dict(params) Index: utils/lit/lit/main.py =================================================================== --- utils/lit/lit/main.py +++ utils/lit/lit/main.py @@ -205,6 +205,9 @@ group.add_option("", "--xunit-xml-output", dest="xunit_output_file", help=("Write XUnit-compatible XML test reports to the" " specified file"), default=None) + group.add_option("", "--run-under", dest="run_under", help=("Wrap test" + " execution within specified command"), + default=None) parser.add_option_group(group) group = OptionGroup(parser, "Test Selection") @@ -284,6 +287,7 @@ valgrindLeakCheck = opts.valgrindLeakCheck, valgrindArgs = opts.valgrindArgs, noExecute = opts.noExecute, + runUnder = opts.run_under, debug = opts.debug, isWindows = isWindows, params = userParams,