ovni/test/emu/ovni/match-doc-events.sh
Rodrigo Arias df0e7b2bd4 Test generated events match documentation
The test ensures that the generated documentation of emulation events is
kept up to date. To locate the events.md file, the source root path is
now exported to tests in OVNI_SOURCE_DIR.

The "Built on ..." message with the date of the build is removed as
otherwise it will always make the comparison fail.
2024-01-30 12:02:02 +01:00

9 lines
173 B
Bash

docs="$OVNI_SOURCE_DIR/doc/user/emulation/events.md"
(
cat "$docs" | grep -v '^Built on' > old.md
ovnievents | grep -v '^Built on' > new.md
diff -up old.md new.md
)