[zorg] r309971 - [zorg] Add optional checkAll step to Polly buildbot

Pengxuan Zheng via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 3 11:36:22 PDT 2017


Author: pzheng
Date: Thu Aug  3 11:36:22 2017
New Revision: 309971

URL: http://llvm.org/viewvc/llvm-project?rev=309971&view=rev
Log:
[zorg] Add optional checkAll step to Polly buildbot

Summary:
This step does "make check-all" and can be enabled by checkAll (defaults to
false in which case only "make check-polly" is run).

Reviewers: mgrang, zinob, gkistanova, vleschuk, grosser, bollu

Reviewed By: grosser

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D36277

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

Modified: zorg/trunk/zorg/buildbot/builders/PollyBuilder.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/zorg/buildbot/builders/PollyBuilder.py?rev=309971&r1=309970&r2=309971&view=diff
==============================================================================
--- zorg/trunk/zorg/buildbot/builders/PollyBuilder.py (original)
+++ zorg/trunk/zorg/buildbot/builders/PollyBuilder.py Thu Aug  3 11:36:22 2017
@@ -14,6 +14,7 @@ def getPollyBuildFactory(
     install=False,
     make='make',
     jobs=None,
+    checkAll=False,
     extraCmakeArgs=[]):
     llvm_srcdir = "llvm.src"
     llvm_objdir = "llvm.obj"
@@ -25,7 +26,8 @@ def getPollyBuildFactory(
         jobs_cmd = ["-j"+str(jobs)]
     build_cmd = [make] + jobs_cmd
     install_cmd = [make, 'install'] + jobs_cmd
-    check_cmd = [make, 'check-polly'] + jobs_cmd
+    check_all_cmd = [make, 'check-all'] + jobs_cmd
+    check_polly_cmd = [make, 'check-polly'] + jobs_cmd
     cmake_install = []
     if install:
         cmake_install = ["-DCMAKE_INSTALL_PREFIX=../%s" % llvm_instdir]
@@ -101,12 +103,19 @@ def getPollyBuildFactory(
                                description=["install"],
                                workdir=llvm_objdir))
 
-    # Test Polly
-    f.addStep(ShellCommand(name="test_polly",
-                           command=check_cmd,
-                           haltOnFailure=False,
-                           description=["test polly"],
-                           workdir=llvm_objdir))
+    # Test
+    if checkAll:
+        f.addStep(ShellCommand(name="check_all",
+                               command=check_all_cmd,
+                               haltOnFailure=False,
+                               description=["check all"],
+                               workdir=llvm_objdir))
+    else:
+        f.addStep(ShellCommand(name="check_polly",
+                               command=check_polly_cmd,
+                               haltOnFailure=False,
+                               description=["check polly"],
+                               workdir=llvm_objdir))
 
     return f
 




More information about the llvm-commits mailing list