aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/tools/run_tests
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2016-01-20 15:56:06 -0800
committerGravatar Craig Tiller <ctiller@google.com>2016-01-20 15:56:06 -0800
commita0f85171d1efd1bd0c159c6940f34880c247596e (patch)
treea6f0ac3bc1af3977689e1c13615f4aaa5b25ef4f /templates/tools/run_tests
parent65eb565e92914a3ccb19b8282421977ceda885b3 (diff)
Move build configs into build.yaml
Importantly: - allows matching timeout values between makefile and run_tests without repeating ourselves - allows borrowing of compiler flags by other build systems There's still a little too much build configuration built into our Makefile, but we can start attacking that over time.
Diffstat (limited to 'templates/tools/run_tests')
-rw-r--r--templates/tools/run_tests/configs.json.template17
1 files changed, 17 insertions, 0 deletions
diff --git a/templates/tools/run_tests/configs.json.template b/templates/tools/run_tests/configs.json.template
new file mode 100644
index 0000000000..5c82dfb347
--- /dev/null
+++ b/templates/tools/run_tests/configs.json.template
@@ -0,0 +1,17 @@
+%YAML 1.2
+--- |
+ <%
+ import json
+ out_configs = []
+ for name, args in configs.iteritems():
+ config_args={}
+ config_args['config'] = name
+ if args.get('valgrind', None) is not None:
+ config_args['tool_prefix'] = ['valgrind'] + args.valgrind.split(' ')
+ if args.get('timeout_multiplier', 1) != 1:
+ config_args['timeout_multiplier'] = args.timeout_multiplier
+ if args.get('test_environ', None) is not None:
+ config_args['environ'] = args.test_environ
+ out_configs.append(config_args)
+ %>\
+ ${json.dumps(out_configs, sort_keys=True, indent=2)}