From: Ian Jackson Date: Mon, 16 Jan 2017 01:43:19 +0000 (+0000) Subject: test suite: gitattributes: try to guess some attr names from manpage X-Git-Tag: archive/debian/3.3~1 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=ff9c89e4b5841a7d1405780342d416187154ab53;hp=500dfc9bc6b9479698adb3cdc73f37c846d4e15b 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 --- diff --git a/debian/tests/control b/debian/tests/control index 5563a80c..1528fe08 100644 --- a/debian/tests/control +++ b/debian/tests/control @@ -13,7 +13,7 @@ Restrictions: x-dgit-intree-only x-dgit-git-only Tests: gitattributes Tests-Directory: tests/tests -Depends: dgit, dgit-infrastructure, devscripts, debhelper (>=8), fakeroot, build-essential, bsdgames +Depends: dgit, dgit-infrastructure, devscripts, debhelper (>=8), fakeroot, build-essential, bsdgames, man-db, git-man Tests: defdistro-mirror mirror mirror-debnewgit mirror-private Tests-Directory: tests/tests diff --git a/tests/tests/gitattributes b/tests/tests/gitattributes index 2e24bba3..0f71c335 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 sums # ----- common to source formats -----