diff options
author | Julian Eisel <julian@blender.org> | 2020-07-01 18:13:57 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2020-07-01 18:13:57 +0300 |
commit | 0829cebeb024095c268f190c34daa8ae9a5a224c (patch) | |
tree | 12ee5a4a1c2a32e12eff47c8eb9bb0ed217791c1 /build_files/buildbot/worker_test.py | |
parent | cfde6ebf450594faa57c4bfeaecff10fe512c91b (diff) | |
parent | 42be3964eb201180f6b0fa1ff6ce43b8c3845bc2 (diff) |
Merge branch 'master' into asset-uuid--archivedasset-uuid--archived
Diffstat (limited to 'build_files/buildbot/worker_test.py')
-rw-r--r-- | build_files/buildbot/worker_test.py | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/build_files/buildbot/worker_test.py b/build_files/buildbot/worker_test.py new file mode 100644 index 00000000000..b959568a5c6 --- /dev/null +++ b/build_files/buildbot/worker_test.py @@ -0,0 +1,39 @@ +# ##### BEGIN GPL LICENSE BLOCK ##### +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software Foundation, +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# ##### END GPL LICENSE BLOCK ##### + +# <pep8 compliant> + +import buildbot_utils +import os +import sys + +def get_ctest_arguments(builder): + args = ['--output-on-failure'] + if builder.platform == 'win': + args += ['-C', 'Release'] + return args + +def test(builder): + os.chdir(builder.build_dir) + + command = builder.command_prefix + ['ctest'] + get_ctest_arguments(builder) + buildbot_utils.call(command) + +if __name__ == "__main__": + builder = buildbot_utils.create_builder_from_arguments() + test(builder) |