maint.mk: add syntax check for use of compare from init.sh
authorEric Blake <eblake@redhat.com>
Tue, 29 Nov 2011 21:37:14 +0000 (14:37 -0700)
committerEric Blake <eblake@redhat.com>
Tue, 29 Nov 2011 22:56:50 +0000 (15:56 -0700)
commita5f6df2b1f3f0fdc73635de3ad285d21703dab18
tree4e79988af5cd72a4be8fd86226e45bfb45c06d57
parentad55efad1f1becad334f0fe50ba2ea420d7444ea
maint.mk: add syntax check for use of compare from init.sh

Comparing expected against actual gives more consistent diff listings
when reporting test failures.  Enforce this idiom on test files
that use init.sh, and allow projects to recognize an alternate
pattern for recognizing tests scripts that use a compare function.

* top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
moved here from coreutils.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
top/maint.mk