zeek/auxil/btest/sphinx/btest-diff-rst
Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

16 lines
426 B
Bash
Executable File

#! /usr/bin/env bash
#
# A finalizer to diff the output generated by one of the other btest-rst-*
# commands. This does nothing if we're running from inside Sphinx.
# btest-rst-cmd generates these files if run from inside btest (but not Sphinx).
if [ "$BTEST_RST_OUTPUT" != "" ]; then
exit 0
fi
while IFS= read -r -d '' output; do
echo "$(pwd)/$output"
btest-diff "$output"
done < <(find btest-"${TEST_NAME}"*)