From ce37047336fb2eb190b1cce15dd93dcc6146adc2 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Wed, 4 Jan 2017 20:49:27 +0100 Subject: git-receiver: support blogc-make --- tests/blogc-git-receiver/check_pre_receive.sh.in | 32 +++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) (limited to 'tests/blogc-git-receiver') diff --git a/tests/blogc-git-receiver/check_pre_receive.sh.in b/tests/blogc-git-receiver/check_pre_receive.sh.in index ba3d78c..eff8691 100755 --- a/tests/blogc-git-receiver/check_pre_receive.sh.in +++ b/tests/blogc-git-receiver/check_pre_receive.sh.in @@ -59,7 +59,7 @@ cat > "${TEMP}/payload.txt" <&1 | tee "${TEMP}/output.txt" -grep "warning: no makefile found. skipping ..." "${TEMP}/output.txt" &> /dev/null +grep "warning: no blogcfile or Makefile found. skipping ..." "${TEMP}/output.txt" &> /dev/null cd "${TEMP}" git init --bare "${TEMP}/repos/foo2.git" &> /dev/null @@ -171,4 +171,34 @@ HOME="${TEMP}" ${TESTS_ENVIRONMENT} ./repos/foo3.git/hooks/pre-receive 2>&1 | te [[ "${DEST}" != "$(readlink repos/foo3.git/htdocs)" ]] [[ ! -e "${DEST}" ]] +cd "${TEMP}" +git init --bare "${TEMP}/repos/foo4.git" &> /dev/null +ln -s "${SELF}" "${TEMP}/repos/foo4.git/hooks/pre-receive" + +cat > "${TEMP}/tmp.txt" < 1483558736 +0100 +committer Rafael G. Martins 1483558736 +0100 +data 12 +testing3... +M 100644 :1 blogcfile + +EOF + +cd "${TEMP}/repos/foo4.git" +git fast-import < "${TEMP}/tmp.txt" &> /dev/null + +cat > "${TEMP}/payload.txt" <&1 | tee "${TEMP}/output.txt" || true +grep "blogc-make: error: settings: " "${TEMP}/output.txt" &> /dev/null + rm "${TEMP}/output.txt" -- cgit v1.2.3-18-g5258