From: Matthieu Moy Date: Thu, 05 Aug 2010 17:03:51 GMT Subject: [PATCH v2] test-lib: user-friendly alternatives to test [!] [-d|-f] Message-ID: <1281027831-22739-1-git-send-email-Matthieu.Moy@imag.fr> In-Reply-To: <1281027281-21055-2-git-send-email-Matthieu.Moy@imag.fr> 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 --- Sooooory, the first version was plain broken (the tests did not even pass anymore), forget it. This should be better. t/README | 8 ++++++++ t/t3404-rebase-interactive.sh | 18 +++++++++--------- t/t3407-rebase-abort.sh | 6 +++--- t/test-lib.sh | 32 ++++++++++++++++++++++++++++++++ 4 files changed, 52 insertions(+), 12 deletions(-) diff --git a/t/README b/t/README index 0d1183c..be760b9 100644 --- a/t/README +++ b/t/README @@ -467,6 +467,14 @@ 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_file_must_exist [] + test_file_must_not_exist [] + test_dir_must_exist [] + test_dir_must_not_exist [] + + check whether a file/directory exists or doesn't. will + be displayed if the test fails. + - test_when_finished