testing: allow building without client-test

The nightly testing always built client-test. When compiling
for EDS 3.6, we don't actually run any tests on the build platform,
so in that case it was not immediately possible to build client-test
(no cppunit installed). We could build it now, but there's simply
no need for it, so save the time and skip it.
This commit is contained in:
Patrick Ohly 2013-10-23 01:40:35 -07:00
parent db5f24e10d
commit 6e47a118da

View file

@ -992,11 +992,17 @@ if options.prebuilt:
compile.builddir = options.prebuilt
compile.installdir = os.path.join(options.prebuilt, "../install")
else:
compile = SyncEvolutionBuild("compile",
sync.basedir,
"%s %s" % (options.configure, " ".join(source)),
options.shell,
[ libsynthesis.name, sync.name ])
if enabled["compile"] == "no-tests":
# Regular build.
build = AutotoolsBuild
else:
# Also build client-test.
build = SyncEvolutionBuild
compile = build("compile",
sync.basedir,
"%s %s" % (options.configure, " ".join(source)),
options.shell,
[ libsynthesis.name, sync.name ])
context.add(compile)
class SyncEvolutionCross(AutotoolsBuild):