diff options
author | Matthieu Moy <Matthieu.Moy@imag.fr> | 2010-08-10 17:17:52 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-08-11 10:21:36 -0700 |
commit | 2caf20c52b7f646d0a7481c25415c48d687773b2 (patch) | |
tree | 0d6ea01a4b9cff3719c67ceede9b94f303982941 /t/README | |
parent | cd035b1cef39811fd3116aa07d99395960ec947a (diff) | |
download | git-2caf20c52b7f646d0a7481c25415c48d687773b2.tar.gz |
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/README | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 |