From f7e289f23283661eb2bd111898787bea9f9d2fb6 Mon Sep 17 00:00:00 2001 From: Phillip Smyth Date: Wed, 5 Dec 2018 14:45:14 +0000 Subject: contrib/bstShowAllElements.py: Show all elements Created a script to show/validate all elements in a project --- contrib/bstShowAllElements.py | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100755 contrib/bstShowAllElements.py 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 . +# +# Authors: +# Phillip Smyth + +# 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() -- cgit v1.2.1