[zorg] r182322 - Add a build factory for the gcc test suites for the phased buildmaster.
David Dean
david_dean at apple.com
Mon May 20 14:54:24 PDT 2013
Author: ddean
Date: Mon May 20 16:54:23 2013
New Revision: 182322
URL: http://llvm.org/viewvc/llvm-project?rev=182322&view=rev
Log:
Add a build factory for the gcc test suites for the phased buildmaster.
Added:
zorg/trunk/zorg/buildbot/builders/gccSuiteBuilder.py
Added: zorg/trunk/zorg/buildbot/builders/gccSuiteBuilder.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/zorg/buildbot/builders/gccSuiteBuilder.py?rev=182322&view=auto
==============================================================================
--- zorg/trunk/zorg/buildbot/builders/gccSuiteBuilder.py (added)
+++ zorg/trunk/zorg/buildbot/builders/gccSuiteBuilder.py Mon May 20 16:54:23 2013
@@ -0,0 +1,27 @@
+import os
+import buildbot
+from zorg.buildbot.PhasedBuilderUtils import getBuildDir, setProperty
+from zorg.buildbot.Artifacts import GetCompilerArtifacts
+import zorg.buildbot.builders.ClangBuilder as ClangBuilder
+
+def gccRunSuite(languages):
+ f = buildbot.process.factory.BuildFactory()
+ # Determine the build directory.
+ getBuildDir(f)
+ # Download compiler from upstream builder.
+ GetCompilerArtifacts(f)
+ # Load the ignore set.
+ #
+ # FIXME: This is lame, it is only loaded at startup.
+ ignores = ClangBuilder.getClangTestsIgnoresFromPath(
+ os.path.expanduser('~/public/clang-tests'),
+ 'clang-x86_64-darwin10')
+ # Convert languages to GCC style names.
+ languages = [{'c' : 'gcc', 'c++' : 'g++', 'obj-c' : 'objc',
+ 'obj-c++' : 'obj-c++'}[l]
+ for l in languages]
+ # Run gcc test suite.
+ ClangBuilder.addClangGCCTests(f, ignores,
+ install_prefix = '%(builddir)s/host-compiler',
+ languages = languages)
+ return f
More information about the llvm-commits
mailing list