From f2d633c78cdb418bc560468fa8148bf3b8f850e6 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 18 Jun 2023 13:41:46 +0200 Subject: [PATCH] update-copyright tests: Add tests for man pages. * tests/test-update-copyright.sh: Add 4 tests that use man page syntax. --- ChangeLog | 5 +++++ tests/test-update-copyright.sh | 37 ++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) diff --git a/ChangeLog b/ChangeLog index f58f4f2ede..ae3a27d565 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2023-06-18 Bruno Haible + + update-copyright tests: Add tests for man pages. + * tests/test-update-copyright.sh: Add 4 tests that use man page syntax. + 2023-06-18 Bruno Haible gettext: Clarify the purpose of this module. diff --git a/tests/test-update-copyright.sh b/tests/test-update-copyright.sh index a84ae34512..5555aa3009 100755 --- a/tests/test-update-copyright.sh +++ b/tests/test-update-copyright.sh @@ -252,6 +252,43 @@ EOF rm $TMP* +## ------------------------ ## +## Examples from man pages ## +## ------------------------ ## + +TMP=$TMP_BASE-man +cat > $TMP.1 < $TMP.2 < $TMP.3 < $TMP.4 < $TMP-stdout 2> $TMP-stderr +compare /dev/null $TMP-stdout || exit 1 +compare /dev/null $TMP-stderr || exit 1 +compare - $TMP.1 <