chiark / gitweb /
test suite: gitattributes: try to guess some attr names from manpage
[dgit.git] / tests / tests / gitattributes
index 2e24bba3ab7adfdaf33290fba28740cdd80d2f63..0f71c335b8657c957a92cea4627483874f8020da 100755 (executable)
@@ -3,6 +3,7 @@ set -e
 . tests/lib
 
 t-dependencies bsdgames
+t-dependencies man-db git-man
 t-tstunt-parsechangelog
 
 t-archive-none example
@@ -56,6 +57,15 @@ badattr export-subst
 badattr delta
 badattr encoding no-such-encoding
 
+man gitattributes \
+| perl -ne 'print $1,"\n" if m/^ *(\w[-a-z]*)$/' \
+> grepped-attrs
+
+exec <grepped-attrs
+while read attr; do
+       badattr $attr
+done
+
 sha256sum af/* >sums
 
 # ----- common to source formats -----