about summary refs log tree commit diff
path: root/benchtests/Makefile
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@redhat.com>2014-06-11 14:16:29 +0530
committerSiddhesh Poyarekar <siddhesh@redhat.com>2014-06-11 14:16:29 +0530
commit42b1161e8c45df468d1696b43a7820c3ffe29da1 (patch)
tree9f736456fa4b53ccb02b0f9459141f23d31f7db2 /benchtests/Makefile
parent4a594c34356b1ae90b69f359fa95e9c4ad8d8694 (diff)
downloadglibc-42b1161e8c45df468d1696b43a7820c3ffe29da1.tar.gz
glibc-42b1161e8c45df468d1696b43a7820c3ffe29da1.tar.xz
glibc-42b1161e8c45df468d1696b43a7820c3ffe29da1.zip
Validate bench.out against a JSON schema
This patch adds a JSON schema for the benchmark output file and also
adds a script that validates the generated output against the schema.
Diffstat (limited to 'benchtests/Makefile')
-rw-r--r--benchtests/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/benchtests/Makefile b/benchtests/Makefile
index fbcee1328b..dc9ee043d6 100644
--- a/benchtests/Makefile
+++ b/benchtests/Makefile
@@ -131,6 +131,8 @@ bench-func: $(binaries-bench)
 	  mv -f $(objpfx)bench.out $(objpfx)bench.out.old; \
 	fi; \
 	mv -f $(objpfx)bench.out-tmp $(objpfx)bench.out
+	scripts/validate_benchout.py $(objpfx)bench.out \
+		scripts/benchout.schema.json
 
 $(timing-type) $(binaries-bench) $(binaries-benchset): %: %.o $(objpfx)json-lib.o \
   $(sort $(filter $(common-objpfx)lib%,$(link-libc))) \