diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2017-01-16 01:43:19 +0000 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2017-01-16 01:44:24 +0000 |
commit | ff9c89e4b5841a7d1405780342d416187154ab53 (patch) | |
tree | c13dad547cd06cf648d01b423c5e2c657579c63d /tests/tests/gitattributes | |
parent | 500dfc9bc6b9479698adb3cdc73f37c846d4e15b (diff) |
test suite: gitattributes: try to guess some attr names from manpage
This may allow the test suite to detect if git gains new attributes.
The worst case is that we add unknown attributes to our test package.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'tests/tests/gitattributes')
-rwxr-xr-x | tests/tests/gitattributes | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/tests/gitattributes b/tests/tests/gitattributes index 2e24bba..0f71c33 100755 --- a/tests/tests/gitattributes +++ b/tests/tests/gitattributes @@ -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 ----- |