aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/tools/run_tests
diff options
context:
space:
mode:
authorGravatar Craig Tiller <craig.tiller@gmail.com>2015-01-18 10:23:26 -0800
committerGravatar Craig Tiller <craig.tiller@gmail.com>2015-01-18 10:23:26 -0800
commite9c959d78e3998855d0a16e5af9b10970299bb46 (patch)
tree11fe75c12149e17bfbd19dbfc4f7622f2e80e15b /templates/tools/run_tests
parent59140fc1164922acf40f10f1ee043faf3711410e (diff)
Only run language specified tests
Add a template to generate a complete list of tests for C/C++, and use it to generate the list of binaries to run tests for.
Diffstat (limited to 'templates/tools/run_tests')
-rw-r--r--templates/tools/run_tests/tests.json.template8
1 files changed, 8 insertions, 0 deletions
diff --git a/templates/tools/run_tests/tests.json.template b/templates/tools/run_tests/tests.json.template
new file mode 100644
index 0000000000..3a9e103281
--- /dev/null
+++ b/templates/tools/run_tests/tests.json.template
@@ -0,0 +1,8 @@
+<%!
+import json
+%>
+
+${json.dumps([{"name": tgt.name, "language": tgt.language}
+ for tgt in targets
+ if tgt.build == "test" and tgt.name[-5:] == "_test"])}
+