From: Diane Gasselin Date: Wed, 09 Jun 2010 12:44:06 GMT Subject: [RFC/ PATCH 5/5] t7609: test merge and checkout error messages Message-ID: <1276087446-25112-7-git-send-email-diane.gasselin@ensimag.imag.fr> In-Reply-To: <1276087446-25112-6-git-send-email-diane.gasselin@ensimag.imag.fr> From: Diane Test porcelain and plumbing error messages for different types of errors of merge and checkout. Signed-off-by: Diane Gasselin Signed-off-by: Axel Bonnet Signed-off-by: Clément Poulain --- t/t7609-merge-co-error-msgs.sh | 122 ++++++++++++++++++++++++++++++++++++++++ 1 files changed, 122 insertions(+), 0 deletions(-) create mode 100755 t/t7609-merge-co-error-msgs.sh diff --git a/t/t7609-merge-co-error-msgs.sh b/t/t7609-merge-co-error-msgs.sh new file mode 100755 index 0000000..8461e10 --- /dev/null +++ b/t/t7609-merge-co-error-msgs.sh @@ -0,0 +1,122 @@ +#!/bin/sh + +test_description='unpack-trees error messages' + +. ./test-lib.sh + + +test_expect_success 'setup' ' + echo one >one && + git add one && + git commit -a -m First && + + git checkout -b branch && + echo two>two && + echo three>three && + echo four>four && + echo five>five && + git add two three four five && + git commit -m Second && + + git checkout master && + echo other>two && + echo other>three && + echo other>four && + echo other>five +' + +cat> expect < out && + test_cmp out expect +' + +cat> expect < out && + test_cmp out expect +' + +cat> expect <rep/one && + echo two>rep/two && + git add rep/one rep/two && + git commit -m Fourth && + git checkout master && + echo uno>rep/one && + echo dos>rep/two && + ! git checkout branch 2> out && + test_cmp out expect +' + +cat> expect < out && + test_cmp out expect +' + +cat> expect < out && + test_cmp out ../expect +' + +test_done -- 1.6.6.7.ga5fe3