diff options
author | Phillip Smyth <phillip.smyth@codethink.co.uk> | 2018-12-05 14:45:14 +0000 |
---|---|---|
committer | Phillip Smyth <phillip.smyth@codethink.co.uk> | 2018-12-05 16:38:34 +0000 |
commit | f7e289f23283661eb2bd111898787bea9f9d2fb6 (patch) | |
tree | 03a045eb7b7c9a23992905295909f79a18eab220 | |
parent | b5131981d0be4d5ce2f938ebd0559e8fe65e0f33 (diff) | |
download | buildstream-f7e289f23283661eb2bd111898787bea9f9d2fb6.tar.gz |
contrib/bstShowAllElements.py: Show all elementsissue-640-contrib-build-all
Created a script to show/validate all elements in a project
-rwxr-xr-x | contrib/bstShowAllElements.py | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/contrib/bstShowAllElements.py b/contrib/bstShowAllElements.py new file mode 100755 index 000000000..1db147c39 --- /dev/null +++ b/contrib/bstShowAllElements.py @@ -0,0 +1,32 @@ +#!/usr/bin/python3 +# +# Copyright 2018 Bloomberg Finance LP +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2 of the License, or (at your option) any later version. +# +# This library 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 +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library. If not, see <http://www.gnu.org/licenses/>. +# +# Authors: +# Phillip Smyth <phillip.smyth@codethink.co.uk> + +# This is a helper script for validating all the elements in a project + +import os +import bstGetAllElements +import subprocess + +def bst_show_all_elements(): + elements = bstGetAllElements.get_all_buildable_elements() + command = ["bst", "show"] + elements + subprocess.call(command) + +bst_show_all_elements() |