Rename git-remote-testgit to git-remote-testpy

This script is not really exercising the remote-helper functionality,
but more the python framework for remote helpers that live in
git_remote_helpers.

It's also not a good example of how to write remote-helpers, unless you
are planning to use python, and even then you might not want to use this
framework.

So let's use a more appropriate name: git-remote-testpy.

A patch that replaces git-remote-testgit with a simpler version is on
the way.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Felipe Contreras
2012-11-28 23:11:00 +01:00
committed by Junio C Hamano
parent 24a1ea5360
commit d0ac3ffd9d
4 changed files with 9 additions and 9 deletions

2
.gitignore vendored
View File

@ -124,7 +124,7 @@
/git-remote-ftps /git-remote-ftps
/git-remote-fd /git-remote-fd
/git-remote-ext /git-remote-ext
/git-remote-testgit /git-remote-testpy
/git-remote-testsvn /git-remote-testsvn
/git-repack /git-repack
/git-replace /git-replace

View File

@ -470,7 +470,7 @@ SCRIPT_PERL += git-relink.perl
SCRIPT_PERL += git-send-email.perl SCRIPT_PERL += git-send-email.perl
SCRIPT_PERL += git-svn.perl SCRIPT_PERL += git-svn.perl
SCRIPT_PYTHON += git-remote-testgit.py SCRIPT_PYTHON += git-remote-testpy.py
SCRIPT_PYTHON += git-p4.py SCRIPT_PYTHON += git-p4.py
SCRIPTS = $(patsubst %.sh,%,$(SCRIPT_SH)) \ SCRIPTS = $(patsubst %.sh,%,$(SCRIPT_SH)) \

View File

@ -3,12 +3,12 @@
# Copyright (c) 2010 Sverre Rabbelier # Copyright (c) 2010 Sverre Rabbelier
# #
test_description='Test remote-helper import and export commands' test_description='Test python remote-helper framework'
. ./test-lib.sh . ./test-lib.sh
if ! test_have_prereq PYTHON ; then if ! test_have_prereq PYTHON ; then
skip_all='skipping remote-testgit tests, python not available' skip_all='skipping python remote-helper tests, python not available'
test_done test_done
fi fi
@ -17,7 +17,7 @@ import sys
if sys.hexversion < 0x02040000: if sys.hexversion < 0x02040000:
sys.exit(1) sys.exit(1)
' || { ' || {
skip_all='skipping remote-testgit tests, python version < 2.4' skip_all='skipping python remote-helper tests, python version < 2.4'
test_done test_done
} }
@ -38,12 +38,12 @@ test_expect_success 'setup repository' '
' '
test_expect_success 'cloning from local repo' ' test_expect_success 'cloning from local repo' '
git clone "testgit::${PWD}/server" localclone && git clone "testpy::${PWD}/server" localclone &&
test_cmp public/file localclone/file test_cmp public/file localclone/file
' '
test_expect_success 'cloning from remote repo' ' test_expect_success 'cloning from remote repo' '
git clone "testgit::file://${PWD}/server" clone && git clone "testpy::file://${PWD}/server" clone &&
test_cmp public/file clone/file test_cmp public/file clone/file
' '
@ -73,11 +73,11 @@ test_expect_success 'pushing to local repo' '
' '
# Generally, skip this test. It demonstrates a now-fixed race in # Generally, skip this test. It demonstrates a now-fixed race in
# git-remote-testgit, but is too slow to leave in for general use. # git-remote-testpy, but is too slow to leave in for general use.
: test_expect_success 'racily pushing to local repo' ' : test_expect_success 'racily pushing to local repo' '
test_when_finished "rm -rf server2 localclone2" && test_when_finished "rm -rf server2 localclone2" &&
cp -R server server2 && cp -R server server2 &&
git clone "testgit::${PWD}/server2" localclone2 && git clone "testpy::${PWD}/server2" localclone2 &&
(cd localclone2 && (cd localclone2 &&
echo content >>file && echo content >>file &&
git commit -a -m three && git commit -a -m three &&