aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-12-13 13:28:56 -0800
committerJunio C Hamano <gitster@pobox.com>2017-12-13 13:28:56 -0800
commitd22512e0191dfceec72fadc6f2ad3690d4f9ca56 (patch)
tree3f7bab8854b182021a57e76d6f413515fa4f49b8
parent41a05ee3a67b08991b48309aa30b249febe9d6dc (diff)
parent5a0526264b472dff1def6b5c6facd0e9a54cbac7 (diff)
downloadgit-d22512e0191dfceec72fadc6f2ad3690d4f9ca56.tar.gz
git-d22512e0191dfceec72fadc6f2ad3690d4f9ca56.tar.xz
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
-rw-r--r--t/README10
1 files changed, 6 insertions, 4 deletions
diff --git a/t/README b/t/README
index 599cd9808..b3f7b449c 100644
--- a/t/README
+++ b/t/README
@@ -332,13 +332,10 @@ Writing Tests
-------------
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:
#!/bin/sh
- #
- # Copyright (c) 2005 Junio C Hamano
- #
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
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>
Check whether a file has the length it is expected to.