aboutsummaryrefslogtreecommitdiffstats
path: root/test/monniaux/genmake.py
diff options
context:
space:
mode:
authorCyril SIX <cyril.six@kalray.eu>2019-05-17 12:03:18 +0200
committerCyril SIX <cyril.six@kalray.eu>2019-05-17 12:03:18 +0200
commit4f3b7c0d75fd90ac064419d19d7af2e340d516aa (patch)
tree8e5b880c997c204fdf9b100b4aefbecdced33654 /test/monniaux/genmake.py
parente3b4b3280ffd0d57d4f40f5ca253a1c570ddd6c6 (diff)
downloadcompcert-kvx-4f3b7c0d75fd90ac064419d19d7af2e340d516aa.tar.gz
compcert-kvx-4f3b7c0d75fd90ac064419d19d7af2e340d516aa.zip
Adding more measures
Diffstat (limited to 'test/monniaux/genmake.py')
-rwxr-xr-xtest/monniaux/genmake.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/test/monniaux/genmake.py b/test/monniaux/genmake.py
index ddbdf839..30db9ac4 100755
--- a/test/monniaux/genmake.py
+++ b/test/monniaux/genmake.py
@@ -88,11 +88,17 @@ def print_measure_rule(environments, measures):
print("measures.csv: $(PRODUCTS_OUT)")
print(' echo ", {}" > $@'.format(make_env_list(environments)))
for measure in measures:
- print(' echo "{name} {measure}"'.format(name=basename if not name else name, measure=measure if len(measures) > 1 else ""), end="")
+ display_measure_name = (len(measures) > 1)
+ if isinstance(measure, list):
+ measure_name, measure_short = measure
+ display_measure_name = True
+ else:
+ measure_name = measure_short = measure
+ print(' echo "{name} {measure}"'.format(name=basename if not name else name, measure=measure_short if display_measure_name else ""), end="")
for env in environments:
for optim in env.optimizations:
print(", $$(grep '{measure}' {outfile} | cut -d':' -f2)".format(
- measure=measure, outfile=make_product(env, optim) + ".out"), end="")
+ measure=measure_name, outfile=make_product(env, optim) + ".out"), end="")
print('>> $@')
products = []