diff --git a/tests.sh b/tests.sh index c8d6603..13857d6 100644 --- a/tests.sh +++ b/tests.sh @@ -40,6 +40,16 @@ test_commits() { echo OK } +test_readme() { + echo -n "Checking that every directory has a README.md... " + + for i in *; do + if test -d "$i"; then + test -f "$i/README.md" || error "The $i directory has no README.md." + fi + done +} + test_directory_size test_commits