[llvm-commits] [zorg] r126561 - /zorg/trunk/zorg/buildbot/builders/ClangBuilder.py
Daniel Dunbar
daniel at zuster.org
Sat Feb 26 19:22:36 PST 2011
Author: ddunbar
Date: Sat Feb 26 21:22:35 2011
New Revision: 126561
URL: http://llvm.org/viewvc/llvm-project?rev=126561&view=rev
Log:
buildbot: Add ClangBuilder.addClangGDBTests()
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=126561&r1=126560&r2=126561&view=diff
==============================================================================
--- zorg/trunk/zorg/buildbot/builders/ClangBuilder.py (original)
+++ zorg/trunk/zorg/buildbot/builders/ClangBuilder.py Sat Feb 26 21:22:35 2011
@@ -346,8 +346,8 @@
return f
-def addClangTests(f, ignores={}, install_prefix="%(builddir)s/llvm.install",
- languages = ('gcc', 'g++', 'objc', 'obj-c++')):
+def addClangGCCTests(f, ignores={}, install_prefix="%(builddir)s/llvm.install",
+ languages = ('gcc', 'g++', 'objc', 'obj-c++')):
make_vars = [WithProperties(
'CC_UNDER_TEST=%s/bin/clang' % install_prefix),
WithProperties(
@@ -365,6 +365,26 @@
logfiles={ 'dg.sum' : 'obj/%s/%s.sum' % (lang, lang) },
ignore=gcc_dg_ignores.get(lang, [])))
+def addClangGDBTests(f, ignores={}, install_prefix="%(builddir)s/llvm.install"):
+ make_vars = [WithProperties(
+ 'CC_UNDER_TEST=%s/bin/clang' % install_prefix),
+ WithProperties(
+ 'CXX_UNDER_TEST=%s/bin/clang++' % install_prefix)]
+ f.addStep(SVN(name='svn-clang-tests', mode='update',
+ baseURL='http://llvm.org/svn/llvm-project/clang-tests/',
+ defaultBranch='trunk', workdir='clang-tests'))
+ gdb_dg_ignores = ignores.get('gdb-1472-testsuite', {})
+ f.addStep(DejaGNUCommand.DejaGNUCommand(
+ name='test-gdb-1472-testsuite',
+ command=["make", "-k", "check"] + make_vars,
+ description="gdb-1472-testsuite",
+ workdir='clang-tests/gdb-1472-testsuite',
+ logfiles={ 'dg.sum' : 'obj/gdb.sum' },
+ ignore=gdb_dg_ignores))
+
+# FIXME: Deprecated.
+addClangTests = addClangGCCTests
+
def getClangTestsIgnoresFromPath(path, key):
def readList(path):
if not os.path.exists(path):
@@ -387,4 +407,12 @@
readList(os.path.join(lang_path, 'XPASS.txt')))
ignores['gcc-4_2-testsuite' ] = gcc_dg_ignores
+ ignores_path = os.path.join(path, 'gdb-1472-testsuite', 'expected_results',
+ key)
+ gdb_dg_ignores = (
+ readList(os.path.join(ignores_path, 'FAIL.txt')) +
+ readList(os.path.join(ignores_path, 'UNRESOLVED.txt')) +
+ readList(os.path.join(ignores_path, 'XPASS.txt')))
+ ignores['gdb-1472-testsuite' ] = gdb_dg_ignores
+
return ignores
More information about the llvm-commits
mailing list