#!/bin/sh test_description='test git-http-backend' . ./test-lib.sh . "$TEST_DIRECTORY"/lib-httpd.sh start_httpd 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 } 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 } . "$TEST_DIRECTORY"/t556x_common grep '^[^#]' >exp <act <"$HTTPD_ROOT_PATH"/access.log && test_cmp exp act ' stop_httpd test_done