| •1 |
#!/usr/bin/bash |
| 2 |
|
| 3 |
set -ex |
| 4 |
set -o pipefail |
| 5 |
|
| 6 |
export COQBIN=$BIN |
| 7 |
export PATH="$COQBIN:$PATH" |
| 8 |
export LC_ALL=C |
| 9 |
|
| 10 |
diff() { |
| 11 |
command diff -a -u --strip-trailing-cr "$1" "$2" |
| 12 |
} |
| 13 |
|
| 14 |
cd misc/bench-render |
| 15 |
|
| 16 |
rocq timelog2html foo.v foo.v.time1 foo.v.time2 > result.html.real |
| 17 |
|
| 18 |
diff result.html result.html.real |
| 19 |
|
| 20 |
if rocq timelog2html foo.v foo.v.time1 foo.v.time3 > bad1v3.html.real 2>stderr1v3.real |
| 21 |
then >&2 echo "Should have failed!"; exit 1 |
| 22 |
fi |
| 23 |
|
| 24 |
diff /dev/null bad1v3.html.real |
| 25 |
diff stderr1v3 stderr1v3.real |
| 26 |
|
| 27 |
if rocq timelog2html foo.v foo.v.time1 foo.v.time4 > bad1v4.html.real 2>stderr1v4.real |
| 28 |
then >&2 echo "Should have failed!"; exit 1 |
| 29 |
fi |
| 30 |
|
| 31 |
diff /dev/null bad1v4.html.real |
| 32 |
diff stderr1v4 stderr1v4.real |