Skip to content

Commit

Permalink
Add a test to check for README.md, but don't run it.
Browse files Browse the repository at this point in the history
  • Loading branch information
larsbrinkhoff committed Oct 25, 2016
1 parent c54dcb3 commit f40b95e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f40b95e

Please sign in to comment.