diff options
| author | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2024-03-19 19:01:01 +0100 |
|---|---|---|
| committer | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2025-06-15 01:30:27 +0200 |
| commit | 1808888b907287727eb7723ccbfe2db71ad3ec3a (patch) | |
| tree | fc1967043ae9c89cb3551871eb7c451944f506da | |
| parent | 8b0cc264e1134d35990d00cdbdef95d5c067fc7c (diff) | |
| download | haunt-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-x | tests.sh | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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. |
