#!/bin/sh setglobal test_description = ''test git-http-backend'' source ./test-lib.sh source "$TEST_DIRECTORY"/lib-httpd.sh start_httpd proc GET { curl --include "$HTTPD_URL/$SMART/repo.git/$1" >out 2>/dev/null && tr '\015' Q act && echo "HTTP/1.1 $2" >exp && test_cmp exp act } proc POST { curl --include --data $2 \ --header "Content-Type: application/x-$1-request" \ "$HTTPD_URL/smart/repo.git/$1" >out 2>/dev/null && tr '\015' Q act && echo "HTTP/1.1 $3" >exp && test_cmp exp act } source "$TEST_DIRECTORY"/t556x_common grep '^[^#]' >exp <act <"$HTTPD_ROOT_PATH"/access.log && test_cmp exp act ' stop_httpd test_done