aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2024-03-19 19:01:01 +0100
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2025-06-15 01:30:27 +0200
commit1808888b907287727eb7723ccbfe2db71ad3ec3a (patch)
treefc1967043ae9c89cb3551871eb7c451944f506da
parent8b0cc264e1134d35990d00cdbdef95d5c067fc7c (diff)
downloadhaunt-blog-1808888b907287727eb7723ccbfe2db71ad3ec3a.tar.gz
haunt-blog-1808888b907287727eb7723ccbfe2db71ad3ec3a.tar.bz2
haunt-blog-1808888b907287727eb7723ccbfe2db71ad3ec3a.zip
tests.sh: Also test authorsihp information.
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rwxr-xr-xtests.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests.sh b/tests.sh
index 71e3d94..38ae6b7 100755
--- a/tests.sh
+++ b/tests.sh
@@ -17,14 +17,22 @@
nr_errors=0
-# Test the CommonMark files for license compliance.
+# Test the CommonMark files
for file in markdown/*.md ; do
+ # Test licenses compliance.
if grep '^licenses: ' "${file}" > /dev/null ; then
echo "[ OK ] ${file}: has a license."
else
echo "[ !! ] ${file}: license is missing."
nr_errors=$((nr_errors + 1))
fi
+ # Test for authorship information.
+ if grep '^authors: ' "${file}" > /dev/null ; then
+ echo "[ OK ] ${file}: has a authorship information."
+ else
+ echo "[ !! ] ${file}: authorship information missing."
+ nr_errors=$((nr_errors + 1))
+ fi
done
# Test generated HTML files.