[llvm-commits] [zorg] r169301 - /zorg/trunk/zorg/buildbot/builders/ClangBuilder.py

David Blaikie dblaikie at gmail.com
Tue Dec 4 13:02:39 PST 2012


Author: dblaikie
Date: Tue Dec  4 15:02:38 2012
New Revision: 169301

URL: http://llvm.org/viewvc/llvm-project?rev=169301&view=rev
Log:
Provide the ability to suppress the coarse-grained baselining of the modern (7.5) GDB test suite.

Modified:
    zorg/trunk/zorg/buildbot/builders/ClangBuilder.py

Modified: zorg/trunk/zorg/buildbot/builders/ClangBuilder.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/zorg/buildbot/builders/ClangBuilder.py?rev=169301&r1=169300&r2=169301&view=diff
==============================================================================
--- zorg/trunk/zorg/buildbot/builders/ClangBuilder.py (original)
+++ zorg/trunk/zorg/buildbot/builders/ClangBuilder.py Tue Dec  4 15:02:38 2012
@@ -39,7 +39,8 @@
             checkout_compiler_rt=False,
             run_gdb=False,
             run_modern_gdb=False,
-            run_gcc=False):
+            run_gcc=False,
+            baseline_modern_gdb=True):
     # Prepare environmental variables. Set here all env we want everywhere.
     merged_env = {
         'TERM' : 'dumb' # Make sure Clang doesn't use color escape sequences.
@@ -241,7 +242,7 @@
         if run_gdb:
             addClangGDBTests(f, ignores, install_prefix)
         if run_modern_gdb:
-            addModernClangGDBTests(f, jobs, install_prefix)
+            addModernClangGDBTests(f, jobs, install_prefix, baseline_modern_gdb)
         if run_gcc:
             addClangGCCTests(f, ignores, install_prefix)
 
@@ -560,8 +561,16 @@
             logfiles={ 'dg.sum' : 'obj/filtered.gdb.sum',
                        'gdb.log' : 'obj/gdb.log' }))
 
-def addModernClangGDBTests(f, jobs, install_prefix):
-    make_vars = [WithProperties('RUNTESTFLAGS=CC_FOR_TARGET="{0}/bin/clang" CXX_FOR_TARGET="{0}/bin/clang++" CFLAGS_FOR_TARGET="-w"'.format(install_prefix)),
+def addModernClangGDBTests(f, jobs, install_prefix, baseline):
+    # strangely, we want to put CC_FOR_TARGET, CXX_FOR_TARGET, etc. inside the
+    # RUNTESTFLAGS value, not as separate parameters to make
+    suppress_baseline = ''
+    if not baseline:
+        suppress_baseline = 'SUPPRESS_CLANG_BASELINE=1'
+    make_vars = [WithProperties('RUNTESTFLAGS=CC_FOR_TARGET="{0}/bin/clang" '
+                                'CXX_FOR_TARGET="{0}/bin/clang++" '
+                                'CFLAGS_FOR_TARGET="-w" '
+                                '{1}'.format(install_prefix, suppress_baseline)),
                  "FORCE_PARALLEL=1"]
     f.addStep(SVN(name='svn-clang-tests', mode='update',
                   svnurl='http://llvm.org/svn/llvm-project/clang-tests-external/trunk/gdb/7.5',





More information about the llvm-commits mailing list