@matheusbsbs / matheus-bagliano / commits / 5ca64e488f
Fork 0

Retire t5501-old-fetch-and-upload test.

Signed-off-by: Junio C Hamano <junkio@cox.net>

Junio C Hamano committed Apr 11, 2006 at 16:35 UTC 5ca64e488fcf4574fd1b52f7d523d9f31fbead4f
1 file changed -48
t/t5501-old-fetch-and-upload.sh deleted
-48
@@ -1,48 +0,0 @@
1 -#!/bin/sh
2 -#
3 -# Copyright (c) 2005 Johannes Schindelin
4 -#
5 -
6 -# Test that the current fetch-pack/upload-pack plays nicely with
7 -# an old counterpart
8 -
9 -cd $(dirname $0) || exit 1
10 -: ${SHELL_PATH=/bin/sh}
11 -
12 -tmp=`pwd`/.tmp$$
13 -
14 -retval=0
15 -
16 -if [ -z "$1" ]; then
17 - list="fetch upload"
18 -else
19 - list="$@"
20 -fi
21 -
22 -for i in $list; do
23 - case "$i" in
24 - fetch) pgm="old-git-fetch-pack"; replace="$pgm";;
25 - upload) pgm="old-git-upload-pack"; replace="git-fetch-pack --exec=$pgm";;
26 - both) pgm="old-git-upload-pack"; replace="old-git-fetch-pack --exec=$pgm";;
27 - esac
28 -
29 - if where=`LANG=C LC_ALL=C which "$pgm" 2>/dev/null` &&
30 - case "$where" in
31 - "no "*) (exit 1) ;;
32 - esac
33 - then
34 - echo "Testing with $pgm"
35 - sed -e "s/git-fetch-pack/$replace/g" \
36 - -e "s/# old fails/warn/" < t5500-fetch-pack.sh > $tmp
37 -
38 - "$SHELL_PATH" "$tmp" || retval=$?
39 - rm -f "$tmp"
40 -
41 - test $retval != 0 && exit $retval
42 - else
43 - echo "Skipping test for $i, since I cannot find $pgm"
44 - fi
45 -done
46 -
47 -exit 0
48 -