<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/t/t0000-basic.sh, branch v1.8.2.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v1.8.2.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v1.8.2.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2013-01-03T18:29:12Z</updated>
<entry>
<title>Merge branch 'as/test-tweaks'</title>
<updated>2013-01-03T18:29:12Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2013-01-03T18:29:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6fedcd8188dc50276a8d77d14f200fe99c228ee0'/>
<id>urn:sha1:6fedcd8188dc50276a8d77d14f200fe99c228ee0</id>
<content type='text'>
Output from the tests is coloured using "green is okay, yellow is
questionable, red is bad and blue is informative" scheme.

* as/test-tweaks:
  tests: paint unexpectedly fixed known breakages in bold red
  tests: test the test framework more thoroughly
  tests: refactor mechanics of testing in a sub test-lib
  tests: change info messages from yellow/brown to cyan
  tests: paint skipped tests in blue
  tests: paint known breakages in yellow
  tests: test number comes first in 'not ok $count - $message'
</content>
</entry>
<entry>
<title>tests: paint unexpectedly fixed known breakages in bold red</title>
<updated>2012-12-20T22:22:12Z</updated>
<author>
<name>Adam Spiers</name>
<email>git@adamspiers.org</email>
</author>
<published>2012-12-16T18:28:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b73d9a2363beedd59c212b5aa6b9db2977c38b2b'/>
<id>urn:sha1:b73d9a2363beedd59c212b5aa6b9db2977c38b2b</id>
<content type='text'>
Change color of unexpectedly fixed known breakages to bold red.  An
unexpectedly passing test indicates that the test code is somehow
broken or out of sync with the code it is testing.  Either way this is
an error which is potentially as bad as a failing test, and as such is
no longer portrayed as a pass in the output.

Signed-off-by: Adam Spiers &lt;git@adamspiers.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>tests: test the test framework more thoroughly</title>
<updated>2012-12-20T22:22:12Z</updated>
<author>
<name>Adam Spiers</name>
<email>git@adamspiers.org</email>
</author>
<published>2012-12-16T18:28:14Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=5ebf89e88637fa641ced15edc10be0cf8d5dcbc8'/>
<id>urn:sha1:5ebf89e88637fa641ced15edc10be0cf8d5dcbc8</id>
<content type='text'>
Add 5 new full test suite runs each with a different number of
passing/failing/broken/fixed tests, in order to ensure that the
correct exit code and output are generated in each case.  As before,
these are run in a subdirectory to avoid disrupting the metrics for
the parent tests.

Signed-off-by: Adam Spiers &lt;git@adamspiers.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>tests: refactor mechanics of testing in a sub test-lib</title>
<updated>2012-12-20T22:22:12Z</updated>
<author>
<name>Adam Spiers</name>
<email>git@adamspiers.org</email>
</author>
<published>2012-12-16T18:28:13Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=565b6fa87bb0554eb7f1b8ec004df93e55d177a9'/>
<id>urn:sha1:565b6fa87bb0554eb7f1b8ec004df93e55d177a9</id>
<content type='text'>
This will allow us to test the test framework more thoroughly
without disrupting the top-level test metrics.

Signed-off-by: Adam Spiers &lt;git@adamspiers.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>tests: test number comes first in 'not ok $count - $message'</title>
<updated>2012-12-16T20:01:58Z</updated>
<author>
<name>Adam Spiers</name>
<email>git@adamspiers.org</email>
</author>
<published>2012-12-16T18:28:09Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=5e5c006eb713b785c6761c32b907e02abc277f9a'/>
<id>urn:sha1:5e5c006eb713b785c6761c32b907e02abc277f9a</id>
<content type='text'>
The old output to say "not ok - 1 messsage" was working by accident
only because the test numbers are optional in TAP.

Signed-off-by: Adam Spiers &lt;git@adamspiers.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>test-lib: allow negation of prerequisites</title>
<updated>2012-11-16T01:47:24Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2012-11-15T00:33:25Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=bdccd3c1fb261dc6d4aaf9fae446eea7136b76e2'/>
<id>urn:sha1:bdccd3c1fb261dc6d4aaf9fae446eea7136b76e2</id>
<content type='text'>
You can set and test a prerequisite like this:

  test_set_prereq FOO
  test_have_prereq FOO &amp;&amp; echo yes

You can negate the test in the shell like this:

  ! test_have_prereq &amp;&amp; echo no

However, when you are using the automatic prerequisite
checking in test_expect_*, there is no opportunity to use
the shell negation.  This patch introduces the syntax "!FOO"
to indicate that the test should only run if a prerequisite
is not meant.

One alternative is to set an explicit negative prerequisite,
like:

  if system_has_foo; then
	  test_set_prereq FOO
  else
	  test_set_prereq NO_FOO
  fi

However, this doesn't work for lazy prerequisites, which
associate a single test with a single name. We could teach
the lazy prereq evaluator to set both forms, but the code
change ends up quite similar to this one (because we still
need to convert NO_FOO into FOO to find the correct lazy
script).

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'rr/test-make-sure-we-have-git'</title>
<updated>2012-09-25T17:40:24Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2012-09-25T17:40:24Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=86bdfa395559b8d99fbec9b8366524aaa311399b'/>
<id>urn:sha1:86bdfa395559b8d99fbec9b8366524aaa311399b</id>
<content type='text'>
Only the first test t0000 in the test suite made sure we have built
Git to be tested; move the check to test-lib so that it applies to
all tests equally.

* rr/test-make-sure-we-have-git:
  t/test-lib: make sure Git has already been built
</content>
</entry>
<entry>
<title>t/test-lib: make sure Git has already been built</title>
<updated>2012-09-18T21:22:19Z</updated>
<author>
<name>Ramkumar Ramachandra</name>
<email>artagnon@gmail.com</email>
</author>
<published>2012-09-17T17:06:19Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2006f0adaee036145b4261b942d944adb18647ed'/>
<id>urn:sha1:2006f0adaee036145b4261b942d944adb18647ed</id>
<content type='text'>
When tests were run without building git, they stopped with:

    .: 54: Can't open /path/to/git/source/t/../GIT-BUILD-OPTIONS

Move the check that makes sure that git has already been built from
t0000 to test-lib, so that any test will do so before it runs.

Signed-off-by: Ramkumar Ramachandra &lt;artagnon@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>t0060: move tests of real_path() from t0000 to here</title>
<updated>2012-09-06T23:19:57Z</updated>
<author>
<name>Michael Haggerty</name>
<email>mhagger@alum.mit.edu</email>
</author>
<published>2012-09-06T22:40:57Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8da650b456d8fd744abf401a67535acbdd6c22c7'/>
<id>urn:sha1:8da650b456d8fd744abf401a67535acbdd6c22c7</id>
<content type='text'>
Suggested by: Johannes Sixt &lt;j6t@kdbg.org&gt;

Signed-off-by: Michael Haggerty &lt;mhagger@alum.mit.edu&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>t0000: modernise style</title>
<updated>2012-03-02T23:19:59Z</updated>
<author>
<name>Stefano Lattarini</name>
<email>stefano.lattarini@gmail.com</email>
</author>
<published>2012-03-02T09:08:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1b5b2b641adb1735086a58f4a77c72ba34c87231'/>
<id>urn:sha1:1b5b2b641adb1735086a58f4a77c72ba34c87231</id>
<content type='text'>
Match the style to more modern test scripts, namely:

 - Prefer tabs for indentation.

 - The first line of each test has prereq, title and opening sq for the
   script body.

 - Move cleanup or initialization of data used by a test inside the test
   itself.

 - Put a newline before the closing sq for each test.

 - Don't conclude the test descriptions with a full stop.

 - Prefer 'test_line_count = COUNT FILE' over 'test $(wc -l &lt;FILE) = COUNT'

 - Prefer 'test_line_count = 0 FILE' over 'cmp -s /dev/null FILE'

 - Use '&lt;&lt;-EOF' style for here documents, so that they can be indented
   as well.  Bot don't do that in case the resulting lines would be too
   long.  Also when there is no $variable_substitution in the body of a
   here document, quote \EOF.

 - Don't redirect the output of commands to /dev/null unconditionally,
   the git testing framework should already take care of handling test
   verbosity transparently and uniformly.

Signed-off-by: Stefano Lattarini &lt;stefano.lattarini@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
