mirror of
https://github.com/git/git
synced 2024-09-12 21:04:12 +00:00
Merge branch 'tg/t-readme-updates'
Developer doc updates. * tg/t-readme-updates: t/README: document test_cmp_rev t/README: remove mention of adding copyright notices
This commit is contained in:
commit
d22512e019
10
t/README
10
t/README
|
@ -332,13 +332,10 @@ Writing Tests
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
The test script is written as a shell script. It should start
|
The test script is written as a shell script. It should start
|
||||||
with the standard "#!/bin/sh" with copyright notices, and an
|
with the standard "#!/bin/sh", and an
|
||||||
assignment to variable 'test_description', like this:
|
assignment to variable 'test_description', like this:
|
||||||
|
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
|
||||||
# Copyright (c) 2005 Junio C Hamano
|
|
||||||
#
|
|
||||||
|
|
||||||
test_description='xxx test (option --frotz)
|
test_description='xxx test (option --frotz)
|
||||||
|
|
||||||
|
@ -677,6 +674,11 @@ library for your script to use.
|
||||||
<expected> file. This behaves like "cmp" but produces more
|
<expected> file. This behaves like "cmp" but produces more
|
||||||
helpful output when the test is run with "-v" option.
|
helpful output when the test is run with "-v" option.
|
||||||
|
|
||||||
|
- test_cmp_rev <expected> <actual>
|
||||||
|
|
||||||
|
Check whether the <expected> rev points to the same commit as the
|
||||||
|
<actual> rev.
|
||||||
|
|
||||||
- test_line_count (= | -lt | -ge | ...) <length> <file>
|
- test_line_count (= | -lt | -ge | ...) <length> <file>
|
||||||
|
|
||||||
Check whether a file has the length it is expected to.
|
Check whether a file has the length it is expected to.
|
||||||
|
|
Loading…
Reference in a new issue