From 51b7a525223bfa856b0ab44c7afe517dfeed465a Mon Sep 17 00:00:00 2001 From: Thomas Gummerer Date: Sun, 26 Nov 2017 20:20:59 +0000 Subject: t/README: remove mention of adding copyright notices We generally no longer include copyright notices in new test scripts. However t/README still mentions it as something to include at the top of every new script. Remove that mention as it's outdated. Signed-off-by: Thomas Gummerer Signed-off-by: Junio C Hamano diff --git a/t/README b/t/README index 4b079e4..448569b 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) -- cgit v0.10.2-6-g49f6 From 5a0526264b472dff1def6b5c6facd0e9a54cbac7 Mon Sep 17 00:00:00 2001 From: Thomas Gummerer Date: Sun, 26 Nov 2017 20:21:00 +0000 Subject: t/README: document test_cmp_rev test_cmp_rev is a useful function that's used in quite a few test scripts. It is however not documented in t/README. Document it. Signed-off-by: Thomas Gummerer Signed-off-by: Junio C Hamano diff --git a/t/README b/t/README index 448569b..e867d1f 100644 --- a/t/README +++ b/t/README @@ -674,6 +674,11 @@ library for your script to use. file. This behaves like "cmp" but produces more helpful output when the test is run with "-v" option. + - test_cmp_rev + + Check whether the rev points to the same commit as the + rev. + - test_line_count (= | -lt | -ge | ...) Check whether a file has the length it is expected to. -- cgit v0.10.2-6-g49f6