summaryrefslogtreecommitdiff
path: root/t/README
diff options
context:
space:
mode:
authorMatthieu Moy <Matthieu.Moy@imag.fr>2010-08-10 15:17:52 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-08-11 17:21:36 (GMT)
commit2caf20c52b7f646d0a7481c25415c48d687773b2 (patch)
tree0d6ea01a4b9cff3719c67ceede9b94f303982941 /t/README
parentcd035b1cef39811fd3116aa07d99395960ec947a (diff)
downloadgit-2caf20c52b7f646d0a7481c25415c48d687773b2.zip
git-2caf20c52b7f646d0a7481c25415c48d687773b2.tar.gz
git-2caf20c52b7f646d0a7481c25415c48d687773b2.tar.bz2
test-lib: user-friendly alternatives to test [-d|-f|-e]
The helper functions are implemented, documented, and used in a few places to validate them, but not everywhere to avoid useless code churn. Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/README')
-rw-r--r--t/README7
1 files changed, 7 insertions, 0 deletions
diff --git a/t/README b/t/README
index 0d1183c..410499a 100644
--- a/t/README
+++ b/t/README
@@ -467,6 +467,13 @@ 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_path_is_file <file> [<diagnosis>]
+ test_path_is_dir <dir> [<diagnosis>]
+ test_path_is_missing <path> [<diagnosis>]
+
+ Check whether a file/directory exists or doesn't. <diagnosis> will
+ be displayed if the test fails.
+
- test_when_finished <script>
Prepend <script> to a list of commands to run to clean up