Implementing run_testsuite option; adding new builder to test --enable-build-with-cxx
This commit implements the run_testsuite option, which can be used to determine whether the builder should run the testsuite or not. It also adds a new builder to test the --enable-build-with-cxx. This builder makes use of the new run_testsuite flag, because it doesn't need to run the testsuite.
This commit is contained in:
parent
c434c0699d
commit
bc81518c8b
2 changed files with 37 additions and 16 deletions
|
@ -57,6 +57,10 @@
|
|||
"builddir" : "fedora-i686",
|
||||
"slavenames" : [ "fedora-x86-64-1", "fedora-x86-64-2" ] },
|
||||
|
||||
{ "name" : "Fedora-x86_64-cxx-build-m64",
|
||||
"type" : "PlainBuildWithCxx_c64notest",
|
||||
"builddir" : "fedora-x86-64-cxx-build",
|
||||
"slavenames" : [ "fedora-x86-64-1", "fedora-x86-64-2" ] },
|
||||
|
||||
|
||||
{ "name" : "Debian-x86_64-m64",
|
||||
|
|
17
master.cfg
17
master.cfg
|
@ -512,6 +512,9 @@ The parameters of the class are:
|
|||
CompileClass = CompileGDB
|
||||
TestClass = TestGDB
|
||||
|
||||
# Set this to False to skip the test
|
||||
run_testsuite = True
|
||||
|
||||
extra_conf_flags = None
|
||||
|
||||
extra_make_flags = None
|
||||
|
@ -541,6 +544,8 @@ The parameters of the class are:
|
|||
descriptionDone = r"removed old build dir"))
|
||||
self.addStep (CloneOrUpdateGDBMasterRepo ())
|
||||
self.addStep (CloneOrUpdateGDBRepo ())
|
||||
|
||||
if self.run_testsuite:
|
||||
self.addStep (CopyOldGDBSumFile ())
|
||||
|
||||
if not self.extra_conf_flags:
|
||||
|
@ -560,6 +565,8 @@ The parameters of the class are:
|
|||
|
||||
if not self.extra_make_check_flags:
|
||||
self.extra_make_check_flags = []
|
||||
|
||||
if self.run_testsuite:
|
||||
if not self.test_env:
|
||||
self.test_env = {}
|
||||
|
||||
|
@ -670,6 +677,16 @@ class RunTestGDBIndexBuild_c32t32 (BuildAndTestGDBFactory):
|
|||
'RUNTESTFLAGS=--target_board unix/-m32' ]
|
||||
BuildAndTestGDBFactory.__init__ (self, **kwargs)
|
||||
|
||||
# Class for only building GDB, without testing
|
||||
|
||||
class RunTestGDBPlainBuildWithCxx_c64notest (BuildAndTestGDBFactory):
|
||||
"""Compiling for 64-bit with --enable-build-with-cxx. We do not test
|
||||
anything for now."""
|
||||
def __init__ (self, **kwargs):
|
||||
self.extra_conf_flags = [ '--enable-build-with-cxx' ]
|
||||
self.run_testsuite = False
|
||||
BuildAndTestGDBFactory.__init__ (self, **kwargs)
|
||||
|
||||
# Classes needed for BSD systems
|
||||
|
||||
class RunTestGDBBSD_Common (BuildAndTestGDBFactory):
|
||||
|
|
Loading…
Reference in a new issue