summaryrefslogtreecommitdiffstats
path: root/utils/lit/lit.py
diff options
context:
space:
mode:
authorrdivacky <rdivacky@FreeBSD.org>2009-11-05 17:17:44 +0000
committerrdivacky <rdivacky@FreeBSD.org>2009-11-05 17:17:44 +0000
commitded64d5d348ce8d8c5aa42cf63f6de9dd84b7e89 (patch)
treeadc0bc5dc9cb37579ee90d3c0f08c98c0711bebe /utils/lit/lit.py
parentee2025263d979561bba11dc526f01d690a2565e7 (diff)
downloadFreeBSD-src-ded64d5d348ce8d8c5aa42cf63f6de9dd84b7e89.zip
FreeBSD-src-ded64d5d348ce8d8c5aa42cf63f6de9dd84b7e89.tar.gz
Update LLVM to r86140.
Diffstat (limited to 'utils/lit/lit.py')
-rwxr-xr-xutils/lit/lit.py16
1 files changed, 15 insertions, 1 deletions
diff --git a/utils/lit/lit.py b/utils/lit/lit.py
index a856473..462f912 100755
--- a/utils/lit/lit.py
+++ b/utils/lit/lit.py
@@ -321,6 +321,10 @@ def main():
parser.add_option("", "--config-prefix", dest="configPrefix",
metavar="NAME", help="Prefix for 'lit' config files",
action="store", default=None)
+ parser.add_option("", "--param", dest="userParameters",
+ metavar="NAME=VAL",
+ help="Add 'NAME' = 'VAL' to the user defined parameters",
+ type=str, action="append", default=[])
group = OptionGroup(parser, "Output Format")
# FIXME: I find these names very confusing, although I like the
@@ -396,6 +400,15 @@ def main():
inputs = args
+ # Create the user defined parameters.
+ userParams = {}
+ for entry in opts.userParameters:
+ if '=' not in entry:
+ name,val = entry,''
+ else:
+ name,val = entry.split('=', 1)
+ userParams[name] = val
+
# Create the global config object.
litConfig = LitConfig.LitConfig(progname = os.path.basename(sys.argv[0]),
path = opts.path,
@@ -405,7 +418,8 @@ def main():
useTclAsSh = opts.useTclAsSh,
noExecute = opts.noExecute,
debug = opts.debug,
- isWindows = (platform.system()=='Windows'))
+ isWindows = (platform.system()=='Windows'),
+ params = userParams)
# Load the tests from the inputs.
tests = []
OpenPOWER on IntegriCloud