ci: compile the manual
[nit.git] / benchmarks / markdown / bench_markdown.sh
index c22e0b5..338ba14 100755 (executable)
@@ -70,6 +70,8 @@ outdir="./out"
 engdir="./engines"
 bncdir="./benches/out"
 mkdir -p $outdir
+html="index.html"
+echo >"$html" "<html><head></head><body>"
 
 function bench_nitmd()
 {
@@ -95,6 +97,30 @@ function bench_nitmd-o()
 }
 bench_nitmd-o
 
+function bench_nitmd2()
+{
+       name="$FUNCNAME"
+       skip_test "$name" && return
+       prepare_res $outdir/nitmd2.dat "nitmd2" "nitmd2"
+       for file in $bncdir/*.md; do
+               bench=`basename $file .md`
+               bench_command "$bench" "" "$engdir/nitmd2/nitmd2" "$file" "$s"
+       done
+}
+bench_nitmd2
+
+function bench_nitmd2-o()
+{
+       name="$FUNCNAME"
+       skip_test "$name" && return
+       prepare_res $outdir/nitmd2-o.dat "nitmd2-o" "nitmd2-o"
+       for file in $bncdir/*.md; do
+               bench=`basename $file .md`
+               bench_command "$bench" "" "$engdir/nitmd2/nitmd2-o" "$file" "$s"
+       done
+}
+bench_nitmd2-o
+
 function bench_txtmark()
 {
        name="$FUNCNAME"
@@ -129,12 +155,15 @@ function bench_pandoc()
                bench_command "$bench" "" "$engdir/pandoc/pandoc" "$file" "$s"
        done
 }
-bench_pandoc
+# FIXME: Fix an reactivate the pandoc engine
+#bench_pandoc
 
 if test "$#" -gt 0; then
     plot $outdir/bench_markdown.gnu
 fi
 
+echo >>"$html" "</body></html>"
+
 if test -n "$died"; then
        echo "Some commands failed"
        exit 1