tests: simplify checks for some expected variables values in Makefiles
authorStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 19 Jun 2013 14:09:47 +0000 (16:09 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 19 Jun 2013 14:18:58 +0000 (16:18 +0200)
commitf387e513e36f2b7858befc4de6b41d7838d94482
tree320404d47d42a3df8d0dd8dfe6a2dedc814fc3be
parent3f1d7622a9a4c818d5d0b20d8a52c09754806d99
tests: simplify checks for some expected variables values in Makefiles

Do so by using our custom 'is' auxiliary script rather than grepping
the output from make.  This is more natural, more robust, and often
shorter to write.

Unfortunately, we can't do that in all cases: sometimes we really need
to match the content of a variable against a regular expressions, and
we can't know nor are interested in its exact value.

This is basically a follow-up on commit v1.11-1830-g96401cb of
2012-02-08 (tests: better way to compare lists in Makefile rules).

* t/subst-no-trailing-empty-line.sh: Adjust.
* t/pluseq10.sh: Likewise.
* t/check5.sh: Likewise, and enhance a little while at it.
* t/check7.sh: Likewise.
* t/exeext.sh: Likewise.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
t/check5.sh
t/check7.sh
t/exeext.sh
t/pluseq10.sh
t/subst-no-trailing-empty-line.sh