| 1 | #!/bin/sh |
| 2 | |
| 3 | set -ex |
| 4 | |
| 5 | export COQBIN=$BIN |
| 6 | export PATH="$COQBIN:$PATH" |
| 7 | |
| 8 | diff() { |
| 9 | command diff -a -u --strip-trailing-cr "$1" "$2" |
| 10 | } |
| 11 | |
| 12 | cd misc/comment-lexing/ |
| 13 | rm -rf _test |
| 14 | mkdir _test |
| 15 | cp test.v _test |
| 16 | |
| 17 | cd _test |
| 18 | |
| 19 | rocq c -q -d comment-lexing -beautify test.v > test.out.real 2>&1 |
| 20 | |
| 21 | diff ../test.out test.out.real |
| 22 | |
| 23 | diff ../test.v.beautified test.v.beautified |