From 8d30d8a89aa9bf8dfb477cb127af58448bbe9b96 Mon Sep 17 00:00:00 2001 From: Maxim Bublis Date: Fri, 29 Aug 2014 15:53:36 +0400 Subject: [PATCH] t9300: test filedelete command Add new fast-import test series for filedelete command. Signed-off-by: Maxim Bublis Signed-off-by: Junio C Hamano --- t/t9300-fast-import.sh | 104 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 104 insertions(+) diff --git a/t/t9300-fast-import.sh b/t/t9300-fast-import.sh index 5fc9ef262a..9cf5e45ae7 100755 --- a/t/t9300-fast-import.sh +++ b/t/t9300-fast-import.sh @@ -3017,4 +3017,108 @@ test_expect_success 'T: empty reset doesnt delete branch' ' git rev-parse --verify refs/heads/not-to-delete ' +### +### series U (filedelete) +### + +cat >input < $GIT_COMMITTER_DATE +data <input < $GIT_COMMITTER_DATE +data <expect <actual + +test_expect_success 'U: validate file delete result' ' + compare_diff_raw expect actual +' + +cat >input < $GIT_COMMITTER_DATE +data <expect <actual + +test_expect_success 'U: validate directory delete result' ' + compare_diff_raw expect actual +' + +cat >input < $GIT_COMMITTER_DATE +data <expect <actual + +test_expect_failure 'U: validate root delete result' ' + compare_diff_raw expect actual +' + test_done -- 2.47.1