From: Matthieu Moy Date: Tue, 10 Aug 2010 15:17:52 +0000 (+0200) Subject: test-lib: user-friendly alternatives to test [-d|-f|-e] X-Git-Tag: v1.7.3-rc0~46^2~2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2caf20c52b7f646d0a7481c25415c48d687773b2;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/t/README b/t/README index 0d1183c3e..410499a09 100644 --- a/t/README +++ b/t/README @@ -467,6 +467,13 @@ 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_path_is_file [] + test_path_is_dir [] + test_path_is_missing [] + + Check whether a file/directory exists or doesn't. will + be displayed if the test fails. + - test_when_finished