From: Matthieu Moy Date: Sat, 07 Aug 2010 08:56:05 GMT Subject: [PATCH 2/2] test-lib: user-friendly alternatives to test [!] [-d|-f] Message-ID: <1281171365-15399-2-git-send-email-Matthieu.Moy@imag.fr> In-Reply-To: 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 --- (this one hasn't been modified since last time) 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