Skip to content

Commit

Permalink
BUILDBOT: Add test step to native scummvm builders to run unit tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
digitall committed Nov 25, 2012
1 parent 97f9fc9 commit c8af332
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions config/master.cfg
@@ -1,8 +1,6 @@
# -*- python -*-
# ex: set syntax=python:

# TODO: Would be nice to run "make test" -- probably as a separate task

#######
####### ScummVM settings for buildbot
#######
Expand Down Expand Up @@ -106,6 +104,9 @@ scumm_platforms_stable = {}
# These platforms are defined as "Desktop" and so will have tools built for them
scumm_desktop_platforms = []

# Native build (for triggering tests - Can't run cross compiled binaries, so can only run test on native)
scumm_native_buildname = "debian-x86"

# debian 32bit.
scumm_env_debian_x86 = copy.deepcopy(scumm_env)
scumm_env_debian_x86["PATH"] = "/usr/bin:%s" % DEFAULT_PATH
Expand Down Expand Up @@ -954,7 +955,7 @@ from buildbot.process import factory
from buildbot.process.properties import WithProperties
from buildbot.steps.source import Git
from buildbot.steps.trigger import Trigger
from buildbot.steps.shell import Compile
from buildbot.steps.shell import Compile, Test

# One lock to rule them all.
# Used to prevent source updates when the nightly schedulers are busy.
Expand Down Expand Up @@ -1105,6 +1106,9 @@ for name, config in scumm_platforms_master.items():
],
env = config["env"]))

if name in scumm_native_buildname:
f.addStep(Test(env = config["env"]))

platform_disttarget = ""
if config.has_key("disttarget"):
platform_disttarget = config["disttarget"]
Expand Down Expand Up @@ -1152,6 +1156,9 @@ for name, config in scumm_platforms_stable.items():
],
env = config["env"]))

if name in scumm_native_buildname:
f.addStep(Test(env = config["env"]))

platform_disttarget = ""
if config.has_key("disttarget"):
platform_disttarget = config["disttarget"]
Expand Down Expand Up @@ -1202,6 +1209,8 @@ for name, config in scumm_platforms_master.items():
],
env = config["env"]))

# No test step for tools as no unit tests currently.

platform_disttarget = ""
if config.has_key("disttarget"):
platform_disttarget = config["disttarget"]
Expand Down

0 comments on commit c8af332

Please sign in to comment.