Re: [PATCH v3 5/7] t4052: Add tests to illustrate issues with restrictive COLUMNS
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Apr 16, 2012, 18:48 UTC
- Message-ID
- <7v7gxfv7h5.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <1334573095-32286-6-git-send-email-lucian.poston@gmail.com>
Lucian Poston <lucian.poston@gmail.com> writes:
> Signed-off-by: Lucian Poston <lucian.poston@gmail.com> > ---
Sorry, the patch text itself does not tell me what it wants to "illustate" at all.
I _guess_ that you are saying that the output for expect1 and expect1-graph should be limited to very narrow width, not like the humongous output like we see in the added test vector, and it will be fixed with your patch 6/7.
If that is the case, please structure this part of the series like this:
5/7: add test vector to illustrate what the correct output should be, but mark the test with "test_expect_failure".
6/7: update the code to fix it, and flip the "test_expect_failure"
in 5/7 to "test_expect_success".And 7/7 will become unneeded.
Thanks.
Show 13 quoted lines
> t/t4052-stat-output.sh | 28 ++++++++++++++++++++++++++++ > 1 files changed, 28 insertions(+), 0 deletions(-) > > diff --git a/t/t4052-stat-output.sh b/t/t4052-stat-output.sh > index d748e5e..6cac95b 100755 > --- a/t/t4052-stat-output.sh > +++ b/t/t4052-stat-output.sh > @@ -284,6 +284,34 @@ respects expect200 show --stat > respects expect200 log -1 --stat > EOF > > +cat >expect1 <<'EOF' > + ...aaaaaaaaaaaaaa | 1000 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > +EOF > +cat >expect1-graph <<'EOF' > +| ...aaaaaaaaaaaaaa | 1000 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++
Show 27 quoted lines
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > +EOF > +while read verb expect cmd args > +do > + test_expect_success "$cmd $verb prefix greater than COLUMNS (big change)" ' > + COLUMNS=1 git $cmd $args >output > + grep " | " output >actual && > + test_cmp "$expect" actual > + ' > + > + test "$cmd" != diff || continue > + > + test_expect_success "$cmd --graph $verb prefix greater than COLUMNS (big change)" ' > + COLUMNS=1 git $cmd $args --graph >output > + grep " | " output >actual && > + test_cmp "$expect-graph" actual > + ' > +done <<\EOF > +ignores expect80 format-patch -1 --stdout > +respects expect1 diff HEAD^ HEAD --stat > +respects expect1 show --stat > +respects expect1 log -1 --stat > +EOF > + > cat >expect <<'EOF' > abcd | 1000 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > EOF