From 75c4ac706d8ed355c6d8bc580862654495a3861a Mon Sep 17 00:00:00 2001 From: Josef 'Jeff' Sipek Date: Sat, 3 Feb 2007 23:32:16 -0500 Subject: [PATCH] regression: test new patch insertion Test guilt-new inserting a patch as the first in the series, somewhere in the middle, as well as at the end. Signed-off-by: Josef 'Jeff' Sipek --- regression/025-new.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/regression/025-new.sh b/regression/025-new.sh index 2a44972..d4312cf 100755 --- a/regression/025-new.sh +++ b/regression/025-new.sh @@ -58,6 +58,18 @@ f .git/patches/master/foo/bar/patch DONE } +function expected_files_insert +{ + expected_files_subsubdir + echo "f .git/patches/master/insert" +} + +function expected_files_prepend +{ + expected_files_insert + echo "f .git/patches/master/prepend" +} + # the test itself empty_repo cd $REPODIR @@ -75,5 +87,17 @@ for t in $tests; do echo -n "[$t] " done +guilt-pop foo/bar/patch > /dev/null + +guilt-new insert +expected_files_insert | verify_repo .git/patches +echo -n "[insert] " + +guilt-pop -a > /dev/null + +guilt-new prepend +expected_files_prepend | verify_repo .git/patches +echo -n "[prepend] " + complete_test -- 2.11.4.GIT