[llvm-commits] [LNT] r168246 - /lnt/trunk/lnt/tests/nt.py

Michael Gottesman mgottesman at apple.com
Fri Nov 16 18:55:40 PST 2012


Author: mgottesman
Date: Fri Nov 16 20:55:40 2012
New Revision: 168246

URL: http://llvm.org/viewvc/llvm-project?rev=168246&view=rev
Log:
[lnt nt] Add in functionality for passing generic arguments to a makefile script.

I am going to use this to pass in arguments such as EXTRA_PROGRAMS_TO_SKIP which I do not think
should be a separate option in the LNT nt test.

Modified:
    lnt/trunk/lnt/tests/nt.py

Modified: lnt/trunk/lnt/tests/nt.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/tests/nt.py?rev=168246&r1=168245&r2=168246&view=diff
==============================================================================
--- lnt/trunk/lnt/tests/nt.py (original)
+++ lnt/trunk/lnt/tests/nt.py Fri Nov 16 20:55:40 2012
@@ -576,6 +576,15 @@
     else:
         warning("unable to infer ARCH, some tests may not run correctly!")
 
+    # Add in any additional make flags passed in via --make-params.
+    for entry in opts.make_parameters:
+        if '=' not in entry:
+            name,value = entry,''
+        else:
+            name,value = entry.split('=', 1)
+        print "make",name,value
+        make_variables[name] = value
+    
     return make_variables
 
 def prepare_report_dir(opts, start_time):
@@ -1001,6 +1010,10 @@
         group.add_option("", "--llvm-arch", dest="llvm_arch",
                          help="Set the ARCH value used in the makefiles to [%default]",
                          type=str, default=None)
+        group.add_option("", "--make-param", dest="make_parameters",
+                         metavar="NAME=VAL",
+                         help="Add 'NAME' = 'VAL' to the makefile parameters",
+                         type=str, action="append", default=[])
         group.add_option("", "--isysroot", dest="isysroot", metavar="PATH",
                          help="Set -isysroot in TARGET_FLAGS [%default]",
                          type=str, default=None)





More information about the llvm-commits mailing list