[RFC/PATCH v4 32/49] t04*: add 'get_cap' support to helpers
From: Christian Couder <hidden>
Date: 2017-06-20 07:56:40
Subsystem:
the rest · Maintainer:
Linus Torvalds
Signed-off-by: Christian Couder <redacted> --- t/t0400-external-odb.sh | 4 ++++ t/t0410-transfer-e-odb.sh | 8 ++++++++ t/t0420-transfer-http-e-odb.sh | 4 ++++ 3 files changed, 16 insertions(+)
diff --git a/t/t0400-external-odb.sh b/t/t0400-external-odb.sh
index 18d8c38862..efabf90a8b 100755
--- a/t/t0400-external-odb.sh
+++ b/t/t0400-external-odb.sh@@ -13,6 +13,10 @@ die() { } GIT_DIR=$ALT_SOURCE; export GIT_DIR case "$1" in +get_cap) + echo "capability=get" + echo "capability=have" + ;; have) git cat-file --batch-check --batch-all-objects | awk '{print $1 " " $3 " " $2}'
diff --git a/t/t0410-transfer-e-odb.sh b/t/t0410-transfer-e-odb.sh
index 8de9a08d7c..0c9cc3af7d 100755
--- a/t/t0410-transfer-e-odb.sh
+++ b/t/t0410-transfer-e-odb.sh@@ -16,6 +16,10 @@ die() { } GIT_DIR=$ALT_SOURCE1; export GIT_DIR case "$1" in +get_cap) + echo "capability=get" + echo "capability=have" + ;; have) git cat-file --batch-check --batch-all-objects | awk '{print $1 " " $3 " " $2}'
@@ -51,6 +55,10 @@ die() { } GIT_DIR=$ALT_SOURCE2; export GIT_DIR case "$1" in +get_cap) + echo "capability=get" + echo "capability=have" + ;; have) GIT_DIR=$OTHER_SOURCE git for-each-ref --format='%(objectname)' refs/odbs/magic/ | GIT_DIR=$OTHER_SOURCE xargs git show ;;
diff --git a/t/t0420-transfer-http-e-odb.sh b/t/t0420-transfer-http-e-odb.sh
index b8062d14c0..45e66e355c 100755
--- a/t/t0420-transfer-http-e-odb.sh
+++ b/t/t0420-transfer-http-e-odb.sh@@ -22,6 +22,10 @@ die() { } echo >&2 "odb-http-helper args:" "$@" case "$1" in +get_cap) + echo "capability=get" + echo "capability=have" + ;; have) list_url="$HTTPD_URL/list/" curl "$list_url" ||
--
2.13.1.565.gbfcd7a9048