<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/t/Makefile, branch v2.0.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.0.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.0.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2014-03-21T21:10:30Z</updated>
<entry>
<title>t/Makefile: stop setting GIT_CONFIG</title>
<updated>2014-03-21T21:10:30Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2014-03-20T23:13:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a6ca9dfa5cd025353afe21aa4432b3b3663ebef2'/>
<id>urn:sha1:a6ca9dfa5cd025353afe21aa4432b3b3663ebef2</id>
<content type='text'>
Once upon a time, the setting of GIT_CONFIG in the
environment could affect how tests ran. Commit 9c3796f (Fix
setting config variables with an alternative GIT_CONFIG,
2006-06-20) unconditionally set GIT_CONFIG in the Makefile
when running tests to give us a known starting point.

This is insufficient for running the tests outside of the
Makefile, however, and 8565d2d (Make tests independent of
global config files, 2007-02-15) later set GIT_CONFIG
directly in test-lib.sh. At that point the Makefile setting
was redundant, but we never removed it. Let's do so now.

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 'jk/test-output'</title>
<updated>2013-05-29T21:29:11Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2013-05-29T21:29:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=31d176d08383012f9cbd040636151e22724b5ee7'/>
<id>urn:sha1:31d176d08383012f9cbd040636151e22724b5ee7</id>
<content type='text'>
When TEST_OUTPUT_DIRECTORY setting is used, it was handled somewhat
inconsistently between the test framework and t/Makefile, and logic
to summarize the results looked at a wrong place.

* jk/test-output:
  t/Makefile: don't define TEST_RESULTS_DIRECTORY recursively
  test output: respect $TEST_OUTPUT_DIRECTORY
  t/Makefile: fix result handling with TEST_OUTPUT_DIRECTORY
</content>
</entry>
<entry>
<title>t/Makefile: don't define TEST_RESULTS_DIRECTORY recursively</title>
<updated>2013-05-06T15:20:28Z</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2013-05-06T12:35:46Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b3e0c4ed07e9f76e501c67c3677776e4f257d274'/>
<id>urn:sha1:b3e0c4ed07e9f76e501c67c3677776e4f257d274</id>
<content type='text'>
Commit 54bb901 (t/Makefile: fix result handling with
TEST_OUTPUT_DIRECTORY - 2013-04-26) incorrectly defined
TEST_RESULTS_DIRECTORY relative to itself, when it should be relative to
TEST_OUTPUT_DIRECTORY.  Fix this.

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>t/Makefile: remove smoke test targets</title>
<updated>2013-04-28T21:04:41Z</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2013-04-26T17:58:24Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6a776acabf1f83846e03acb0ccc4d14d0be5ab69'/>
<id>urn:sha1:6a776acabf1f83846e03acb0ccc4d14d0be5ab69</id>
<content type='text'>
Commit d24fbca (Remove Git's support for smoke testing - 2011-12-23)
removed the smoke test support from the test suite but it was
re-added by commit 342e9ef (Introduce a performance testing
framework - 2012-02-17).  This appears to be the result of a
mis-rebase, since re-adding the smoke testing infrastructure does
not relate to the subject of that commit.

The current 'smoke' target is broken since the 'harness' script it
uses no longer exists, so just reapply this section of commit d24fbca
and remove all of the smoke testing section in the makefile.

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
Acked-by: Thomas Rast &lt;trast@inf.ethz.ch&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>t/Makefile: fix result handling with TEST_OUTPUT_DIRECTORY</title>
<updated>2013-04-27T20:41:31Z</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2013-04-26T18:55:52Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=54bb9015c817728371b48e908257fdf6a078eb60'/>
<id>urn:sha1:54bb9015c817728371b48e908257fdf6a078eb60</id>
<content type='text'>
When TEST_OUTPUT_DIRECTORY is set, the test results will be generated in
"$TEST_OUTPUT_DIRECTORY/test-results", which may not be the same as
"test-results" in t/Makefile.  This causes the aggregate-results target
to fail as it finds no count files.

Fix this by introducing TEST_RESULTS_DIRECTORY and using it wherever
test-results is referenced.

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'tb/test-shell-lint'</title>
<updated>2013-01-10T21:47:04Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2013-01-10T21:47:04Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4249d850cff0d1d36b3a9c4cf38066c50365cfd1'/>
<id>urn:sha1:4249d850cff0d1d36b3a9c4cf38066c50365cfd1</id>
<content type='text'>
Check for common mistakes in the test scripts, based on simple
pattern-matching.

* tb/test-shell-lint:
  test: Add check-non-portable-shell.pl
</content>
</entry>
<entry>
<title>tests: turn on test-lint by default</title>
<updated>2013-01-03T16:03:46Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2013-01-03T07:17:51Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=81127d74c4367b383b6949846a4ccbd185012734'/>
<id>urn:sha1:81127d74c4367b383b6949846a4ccbd185012734</id>
<content type='text'>
The test Makefile knows about a few "lint" checks for common
errors. However, they are not enabled as part of "make test"
by default, which means that many people do not bother
running them. Since they are both quick to run and accurate
(i.e., no false positives), there should be no harm in
turning them on and helping submitters catch errors earlier.

We could just set:

  TEST_LINT = test-lint

to enable all tests. But that would be unnecessarily
annoying later on if we add slower or less accurate tests
that should not be part of the default. Instead, we name the
tests individually.

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>test: Add check-non-portable-shell.pl</title>
<updated>2013-01-03T00:06:42Z</updated>
<author>
<name>Torsten Bögershausen</name>
<email>tboegi@web.de</email>
</author>
<published>2013-01-02T23:20:19Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c7ce70ace9794a8f0b4774d803536a7ecdf318de'/>
<id>urn:sha1:c7ce70ace9794a8f0b4774d803536a7ecdf318de</id>
<content type='text'>
Add the perl script "check-non-portable-shell.pl" to detect
non-portable shell syntax.

"echo -n" is an example of a shell command working on Linux, but not
on Mac OS X.

These shell commands are checked and reported as error:

 - "echo -n" (printf should be used)
 - "sed -i" (GNUism; use a temp file instead)
 - "declare" (bashism, often used with arrays)
 - "which" (unreliable exit status and output; use type instead)
 - "test a == b" (bashism for "test a = b")

"make test-lint-shell-syntax" can be used to run only the check.

Helped-By: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Torsten Bögershausen &lt;tboegi@web.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Makefile: whitespace style fixes in macro definitions</title>
<updated>2012-12-10T16:35:56Z</updated>
<author>
<name>Stefano Lattarini</name>
<email>stefano.lattarini@gmail.com</email>
</author>
<published>2012-12-09T10:36:17Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=dd6fc7ca91f79f9cee70943e64c4a4d4569ca4dd'/>
<id>urn:sha1:dd6fc7ca91f79f9cee70943e64c4a4d4569ca4dd</id>
<content type='text'>
Consistently use a single space before and after the "=" (or ":=", "+=",
etc.) in assignments to make macros.  Granted, this was not a big deal,
but I did find the needless inconsistency quite distracting.

Signed-off-by: Stefano Lattarini &lt;stefano.lattarini@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>t/Makefile: retain cache t/.prove across prove runs</title>
<updated>2012-05-20T21:19:18Z</updated>
<author>
<name>Michael Haggerty</name>
<email>mhagger@alum.mit.edu</email>
</author>
<published>2012-05-02T15:31:52Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=60f26f634875b8fd2e8172ecf8c81d885c3d82f7'/>
<id>urn:sha1:60f26f634875b8fd2e8172ecf8c81d885c3d82f7</id>
<content type='text'>
prove(1) can write a summary of its test results and timings into a
cache file, t/.prove, then use this information during later runs for
various purposes.  But deleting t/.prove after every test run defeats
this purpose.  So do not delete t/.prove as part of "make
DEFAILT_TEST_TARGET=prove test".  (Continue to delete the file on
"make clean".)

Signed-off-by: Michael Haggerty &lt;mhagger@alum.mit.edu&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
