From ad1a384479c9b59d7e4c8067d6fd805e540b82a2 Mon Sep 17 00:00:00 2001 From: Sergio Durigan Junior Date: Mon, 22 Jun 2015 15:29:22 -0400 Subject: [PATCH] Adding AIX buildslave and builder; adjusting JSON file and reader --- lib/config.json | 12 +++++++++++- master.cfg | 25 +++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 1 deletion(-) diff --git a/lib/config.json b/lib/config.json index 1d8369a..24af5dc 100644 --- a/lib/config.json +++ b/lib/config.json @@ -18,6 +18,9 @@ { "name" : "fedora-ppc64le-1", "arch" : "ppc64le", "jobs" : "16", "admin" : "emachado@linux.vnet.ibm.com" }, + { "name" : "power7-aix-1", "arch" : "power7", "jobs" : "4", + "admin" : "dje.gcc@gmail.com" }, + { "name" : "koobs-freebsd8", "arch" : "x86_64", "jobs" : "1", "admin" : "sergiodj@redhat.com" }, { "name" : "koobs-freebsd9", "arch" : "x86_64", "jobs" : "1", @@ -148,7 +151,14 @@ { "name" : "Fedora-ppc64le-cc-with-index", "type" : "IndexBuild", "builddir" : "fedora-ppc64le-cc-with-index", - "slavenames" : [ "fedora-ppc64le-1" ] } + "slavenames" : [ "fedora-ppc64le-1" ] }, + + + { "name" : "AIX-Power7-plain", + "type" : "GDBPlainAIX", + "builddir" : "aix-power7-plain", + "slavenames" : [ "aix-power7-1" ], + "PATH" : "/opt/freeware/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/home/sergiodj/bin:/usr/bin/X11:/sbin:." } ], "schedulers" : [ { "type" : "AnyBranchScheduler", "name" : "master", diff --git a/master.cfg b/master.cfg index 74f865c..a1f9336 100644 --- a/master.cfg +++ b/master.cfg @@ -781,6 +781,21 @@ class RunTestGDBIndexBuildBSD (RunTestGDBIndexBuild, RunTestGDBBSD_Common): """Testing with the "cc-with-tweaks.sh" passing -i. FIXME: include bitness here.""" pass +# Classes needed for AIX systems + +class RunTestGDBAIX_Common (BuildAndTestGDBFactory): + """Common AIX test configurations""" + def __init__ (self, **kwargs): + # Unfortunately we have to disable -Werror there... + self.extra_conf_flags = [ '--disable-werror' ] + self.make_command = 'gmake' + self.extra_make_flags = [ 'MAKEINFO=true' ] + BuildAndTestGDBFactory.__init__ (self, **kwargs) + +class RunTestGDBPlainAIX (RunTestGDBPlain_c64t64, RunTestGDBBSD_Common): + """Compiling for AIX""" + pass + # All branches that are going to be watched. all_gdb_filter = ChangeFilter (branch_fn = should_watch_branch) @@ -849,6 +864,7 @@ def load_config (c): c['builders'] = [] for b in config['builders']: + myenv = {} if 'arch_triplet' in b: architecture_triplet = [ b.pop ('arch_triplet') ] else: @@ -858,6 +874,15 @@ def load_config (c): b['factory'] = factory (architecture_triplet = architecture_triplet) b['canStartBuild'] = DefaultGDBCanStartBuild b['mergeRequests'] = False + + # AIX hack. Sigh... + try: + mypath = b.pop ('PATH') + myenv['PATH'] = mypath + b['env'] = myenv + except KeyError: + pass + c['builders'].append (b) load_config (c)