summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhillip Smyth <phillip.smyth@codethink.co.uk>2018-12-05 14:45:14 +0000
committerPhillip Smyth <phillip.smyth@codethink.co.uk>2018-12-05 16:38:34 +0000
commitf7e289f23283661eb2bd111898787bea9f9d2fb6 (patch)
tree03a045eb7b7c9a23992905295909f79a18eab220
parentb5131981d0be4d5ce2f938ebd0559e8fe65e0f33 (diff)
downloadbuildstream-issue-640-contrib-build-all.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-xcontrib/bstShowAllElements.py32
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()