[PATCH] D36277: [zorg] Add optional checkAll step to Polly buildbot

Pengxuan Zheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 3 11:30:28 PDT 2017


pzheng created this revision.
Herald added a reviewer: bollu.

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


https://reviews.llvm.org/D36277

Files:
  zorg/buildbot/builders/PollyBuilder.py


Index: zorg/buildbot/builders/PollyBuilder.py
===================================================================
--- zorg/buildbot/builders/PollyBuilder.py
+++ zorg/buildbot/builders/PollyBuilder.py
@@ -14,6 +14,7 @@
     install=False,
     make='make',
     jobs=None,
+    checkAll=False,
     extraCmakeArgs=[]):
     llvm_srcdir = "llvm.src"
     llvm_objdir = "llvm.obj"
@@ -25,7 +26,8 @@
         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 @@
                                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
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36277.109604.patch
Type: text/x-patch
Size: 1797 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170803/62376a48/attachment.bin>


More information about the llvm-commits mailing list