From bf14ad38c20536dff922c46311daccd6a85f24a9 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Sat, 19 Nov 2016 00:40:53 +0100 Subject: git-receiver: test manual mirror push --- tests/blogc-git-receiver/check_post_receive.sh.in | 30 +++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'tests') diff --git a/tests/blogc-git-receiver/check_post_receive.sh.in b/tests/blogc-git-receiver/check_post_receive.sh.in index 6ed7f9d..925ab31 100755 --- a/tests/blogc-git-receiver/check_post_receive.sh.in +++ b/tests/blogc-git-receiver/check_post_receive.sh.in @@ -83,4 +83,34 @@ git init --bare "${TEMP}/repos/bar4.git" &> /dev/null HOME="${TEMP}" ${TESTS_ENVIRONMENT} ./hooks/post-receive 2>&1 | tee "${TEMP}/output.txt" grep "warning: failed to parse configuration file " "${TEMP}/output.txt" &> /dev/null +cd .. +cat > "${TEMP}/blogc-git-receiver.ini" < /dev/null +HOME="${TEMP}" ${TESTS_ENVIRONMENT} ./foo.git/hooks/post-receive 2>&1 | tee "${TEMP}/output.txt" +grep "[new branch] *master" "${TEMP}/output.txt" &> /dev/null + +cd .. +cat > "${TEMP}/blogc-git-receiver.ini" < /dev/null +HOME="${TEMP}" ${TESTS_ENVIRONMENT} ./repos/foo.git/hooks/post-receive 2>&1 | tee "${TEMP}/output.txt" +grep "[new branch] *master" "${TEMP}/output.txt" &> /dev/null + rm "${TEMP}/output.txt" -- cgit v1.2.3-18-g5258