From f40b95e44902d9ec981061eb6aa9c6ff7ef47c77 Mon Sep 17 00:00:00 2001 From: Lars Brinkhoff Date: Tue, 25 Oct 2016 07:24:23 +0200 Subject: [PATCH] Add a test to check for README.md, but don't run it. --- tests.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) 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