From 741c1ef7a4f2ac316ad6e557ddbe03023413478d Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 6 May 2024 04:22:06 +0200 Subject: Adding upstream version 1:4.5. Signed-off-by: Daniel Baumann --- tests/common/log.sh | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 tests/common/log.sh (limited to 'tests/common/log.sh') diff --git a/tests/common/log.sh b/tests/common/log.sh new file mode 100644 index 0000000..4887970 --- /dev/null +++ b/tests/common/log.sh @@ -0,0 +1,46 @@ +# Helpers to log messages / status + +log_start () +{ + test="$1" + rationale="$2" + cat << EOF + +############################################################################### +# +# Test: $test +# +############################################################################### +# +# Rationale: $rationale +# +############################################################################### +EOF +} + +log_end () +{ + test="$1" + cat << EOF +############################################################################### +# +# End of test $test +# +############################################################################### + +EOF +} + +log_status () +{ + test="$1" + status="$2" + cat << EOF +############################################################################### +# +# Status of test $test: $status +# +############################################################################### +EOF +} + -- cgit v1.2.3