test-lib: self-test that --verbose works
commit517cd55fd51ebf4c6c20597055ff191fefe5dda0
authorThomas Rast <trast@inf.ethz.ch>
Sun, 23 Jun 2013 18:12:55 +0000 (23 20:12 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 23 Jun 2013 19:24:05 +0000 (23 12:24 -0700)
tree7420d21d786c0ef900b10f902090fef3622458f1
parentae75342cff145a326b2213128cca453023521400
test-lib: self-test that --verbose works

t0000 contains some light self-tests of test-lib.sh, but --verbose was
not covered.  Add a test.

The only catch is that the presence of a test harness influences the
output (specifically, the presence of some empty lines).  So we need
to unset TEST_HARNESS or set it to a known value.  Leaving it unset
leads to spurious test failures in the final summary, which come from
the subtest.  So we always set it.

Signed-off-by: Thomas Rast <trast@inf.ethz.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t0000-basic.sh
t/test-lib.sh