diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-02-24 16:31:51 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-02-24 16:31:51 +0100 |
commit | 335cea0546d8555c4c8b66090233e6a16a9e3af9 (patch) | |
tree | 4750e331adada38876d9c93d69734321003db1c2 /buildbot/master.cfg | |
parent | b52e7ccad124ece3dae94929ed3edceaf148a139 (diff) | |
download | deployment-335cea0546d8555c4c8b66090233e6a16a9e3af9.tar.gz deployment-335cea0546d8555c4c8b66090233e6a16a9e3af9.tar.bz2 deployment-335cea0546d8555c4c8b66090233e6a16a9e3af9.zip |
extend CHECKER_FACTORY with first actual check rules
Diffstat (limited to 'buildbot/master.cfg')
-rw-r--r-- | buildbot/master.cfg | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/buildbot/master.cfg b/buildbot/master.cfg index 17ffbd8..a021f34 100644 --- a/buildbot/master.cfg +++ b/buildbot/master.cfg @@ -1,6 +1,6 @@ ## # This file is part of TALER -# (C) 2016-2019 Taler Systems SA +# (C) 2016-2020 Taler Systems SA # # TALER is free software; you can redistribute it and/or # modify it under the terms of the GNU Affero General Public @@ -304,6 +304,18 @@ def git_step(repo,target_branch="master"): branch=target_branch ) + +# Convenience function that runs 'make check' in a +# directory of the code inside of a netjail. +def jailed_check(package,srcdir): + return ShellCommand( + name="Test of" . srcdir . " in " . package, + description="Testing " . srcdir . " in " . package, + descriptionDone="Pass", + command=["sudo", "/usr/local/bin/netjail.sh", "make", "check"], + workdir="../../sources/" + package + "/src/" + srcdir + ) + # Convenience function that checks out the deployment. def update_deployment(factory): factory.addStep(ShellCommand( @@ -512,6 +524,10 @@ CHECKER_FACTORY.addStep( workdir="../../deployment/buildbot", ) ) +CHECKER_FACTORY.addStep(jailed_check ("libmicrohttpd", "microhttpd")) +CHECKER_FACTORY.addStep(jailed_check ("libmicrohttpd", "testcurl")) +CHECKER_FACTORY.addStep(jailed_check ("libmicrohttpd", "testzzuf")) + # FIXME: CHECKER_FACTORY is incomplete at this time: we still need # to do the actual 'make check' steps (in a jail!) |