bench/json: output html
authorJean Privat <jean@pryen.org>
Wed, 27 Apr 2016 15:36:04 +0000 (11:36 -0400)
committerJean Privat <jean@pryen.org>
Wed, 27 Apr 2016 15:36:04 +0000 (11:36 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

benchmarks/json/bench_json.sh

index 1e00026..748353c 100755 (executable)
@@ -84,6 +84,8 @@ done
 init_repo
 
 mkdir -p out
+html="index.html"
+echo >"$html" "<html><head></head><body>"
 
 echo "Compiling engines"
 
@@ -126,3 +128,11 @@ rm scripts/nit_adhoc_utf_noropes
 rm scripts/nit_adhoc_utf_ropes
 
 plot out/bench_json.gnu
+
+echo >>"$html" "</body></html>"
+
+if test -n "$died"; then
+       echo "Some commands failed"
+       exit 1
+fi
+exit 0