<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/t/README, branch v2.45.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.45.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.45.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2024-04-03T17:56:19Z</updated>
<entry>
<title>Merge branch 'pb/test-scripts-are-build-targets'</title>
<updated>2024-04-03T17:56:19Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2024-04-03T17:56:19Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=188e94250ae358b6d2cf2592ba3e8696bd96242b'/>
<id>urn:sha1:188e94250ae358b6d2cf2592ba3e8696bd96242b</id>
<content type='text'>
The t/README file now gives a hint on running individual tests in
the "t/" directory with "make t&lt;num&gt;-*.sh t&lt;num&gt;-*.sh".

* pb/test-scripts-are-build-targets:
  t/README: mention test files are make targets
</content>
</entry>
<entry>
<title>Merge branch 'ps/t7800-variable-interpolation-fix'</title>
<updated>2024-04-01T20:21:35Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2024-04-01T20:21:35Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f0c570e20b1adcb0ab2ed5d61d3c762ea4bf86e3'/>
<id>urn:sha1:f0c570e20b1adcb0ab2ed5d61d3c762ea4bf86e3</id>
<content type='text'>
Fix the way recently added tests interpolate variables defined
outside them, and document the best practice to help future
developers.

* ps/t7800-variable-interpolation-fix:
  t/README: document how to loop around test cases
  t7800: use single quotes for test bodies
  t7800: improve test descriptions with empty arguments
</content>
</entry>
<entry>
<title>t/README: mention test files are make targets</title>
<updated>2024-03-25T18:59:48Z</updated>
<author>
<name>Philippe Blain</name>
<email>levraiphilippeblain@gmail.com</email>
</author>
<published>2024-03-24T15:14:05Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8d383806fc98771b42bc0407eedb235e5a6d5d08'/>
<id>urn:sha1:8d383806fc98771b42bc0407eedb235e5a6d5d08</id>
<content type='text'>
Since 23fc63bf8f (make tests ignorable with "make -i", 2005-11-08), each
test file defines a target in the test Makefile, such that one can
invoke:

	make *checkout*

to run all tests with 'checkout' in their filename. This is useful to
run a subset of tests when you have a good idea of what part of the code
is touched by the changes your are testing.

Document that in t/README to help new (or more seasoned) contributors
that might not be aware.

Signed-off-by: Philippe Blain &lt;levraiphilippeblain@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>t/README: document how to loop around test cases</title>
<updated>2024-03-22T14:36:35Z</updated>
<author>
<name>Patrick Steinhardt</name>
<email>ps@pks.im</email>
</author>
<published>2024-03-22T02:23:46Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=7c4449eb31b60e9a39fa22ef8d18277f45610db2'/>
<id>urn:sha1:7c4449eb31b60e9a39fa22ef8d18277f45610db2</id>
<content type='text'>
In some cases it makes sense to loop around test cases so that we can
execute the same test with slightly different arguments. There are some
gotchas around quoting here though that are easy to miss and that may
lead to easy-to-miss errors and portability issues.

Document the proper way to do this in "t/README".

Signed-off-by: Patrick Steinhardt &lt;ps@pks.im&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'js/update-urls-in-doc-and-comment' into maint-2.43</title>
<updated>2024-02-09T00:22:01Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2024-02-09T00:22:01Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=efbae0583bb8556444c57d4c336101f97efa6d66'/>
<id>urn:sha1:efbae0583bb8556444c57d4c336101f97efa6d66</id>
<content type='text'>
Stale URLs have been updated to their current counterparts (or
archive.org) and HTTP links are replaced with working HTTPS links.

* js/update-urls-in-doc-and-comment:
  doc: refer to internet archive
  doc: update links for andre-simon.de
  doc: switch links to https
  doc: update links to current pages
</content>
</entry>
<entry>
<title>t: introduce GIT_TEST_DEFAULT_REF_FORMAT envvar</title>
<updated>2024-01-02T17:24:48Z</updated>
<author>
<name>Patrick Steinhardt</name>
<email>ps@pks.im</email>
</author>
<published>2023-12-29T07:26:56Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=58aaf59133b4167aefaab6083e80deb369894f79'/>
<id>urn:sha1:58aaf59133b4167aefaab6083e80deb369894f79</id>
<content type='text'>
Introduce a new GIT_TEST_DEFAULT_REF_FORMAT environment variable that
lets developers run the test suite with a different default ref format
without impacting the ref format used by non-test Git invocations. This
is modeled after GIT_TEST_DEFAULT_OBJECT_FORMAT, which does the same
thing for the repository's object format.

Adapt the setup of the `REFFILES` test prerequisite to be conditionally
set based on the default ref format.

Signed-off-by: Patrick Steinhardt &lt;ps@pks.im&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'js/update-urls-in-doc-and-comment'</title>
<updated>2023-12-18T22:10:12Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2023-12-18T22:10:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ec5ab1482d3373052784ae5c49d96d8b5cdd139d'/>
<id>urn:sha1:ec5ab1482d3373052784ae5c49d96d8b5cdd139d</id>
<content type='text'>
Stale URLs have been updated to their current counterparts (or
archive.org) and HTTP links are replaced with working HTTPS links.

* js/update-urls-in-doc-and-comment:
  doc: refer to internet archive
  doc: update links for andre-simon.de
  doc: switch links to https
  doc: update links to current pages
</content>
</entry>
<entry>
<title>doc: switch links to https</title>
<updated>2023-11-26T01:07:05Z</updated>
<author>
<name>Josh Soref</name>
<email>jsoref@gmail.com</email>
</author>
<published>2023-11-24T03:35:13Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d05b08cd52cfda627f1d865bdfe6040a2c9521b5'/>
<id>urn:sha1:d05b08cd52cfda627f1d865bdfe6040a2c9521b5</id>
<content type='text'>
These sites offer https versions of their content.
Using the https versions provides some protection for users.

Signed-off-by: Josh Soref &lt;jsoref@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>t/README: fix multi-prerequisite example</title>
<updated>2023-10-05T19:55:38Z</updated>
<author>
<name>Štěpán Němec</name>
<email>stepnem@smrk.net</email>
</author>
<published>2023-10-05T09:00:55Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f0a39ba5047151a1bac5e79afcaa877afa0143b3'/>
<id>urn:sha1:f0a39ba5047151a1bac5e79afcaa877afa0143b3</id>
<content type='text'>
With the broken quoting the test wouldn't even parse correctly, but
there's also the '==' instead of POSIX '=' (of the shells I tested,
busybox ash, bash and ksh (93 and OpenBSD) accept '==', dash and zsh do
not), and 'print 2' from Python 2 days.

(I assume the test failing due to 3 != 4 is intentional or immaterial.)

Fixes: 93a572461386 ("test-lib: Add support for multiple test prerequisites")
Signed-off-by: Štěpán Němec &lt;stepnem@smrk.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>doc: fix some typos, grammar and wording issues</title>
<updated>2023-10-05T19:55:38Z</updated>
<author>
<name>Štěpán Němec</name>
<email>stepnem@smrk.net</email>
</author>
<published>2023-10-05T09:00:51Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=97509a3497cf864bb1ed26229feb9437f76a30ee'/>
<id>urn:sha1:97509a3497cf864bb1ed26229feb9437f76a30ee</id>
<content type='text'>
Signed-off-by: Štěpán Němec &lt;stepnem@smrk.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
