t9010 (svn-fe): Eliminate dependency on svn perl bindings
PATCH 1/1 t9010 (svn-fe): Eliminate dependency on svn perl bindings
From: Ramkumar Ramachandra <[email protected]>
Date: Sun Oct 10 22:00:40 2010 -0500
Running test t9010 without the SVN:: perl modules currently errors out, for no good reason. We can make these tests easier to read and run by not using the perl libsvn bindings and instead duplicating only the relevant code from lib-git-svn.sh.
Signed-off-by Ramkumar Ramachandra <[email protected]>
Signed-off-by Jonathan Nieder <[email protected]>
---
A patch from Ram from a while ago. It's still a good idea; sorry about the delay.
Patch is against the old svn-fe branch (cd9a7b57) but should apply just as well to more recent versions.
t/t9010-svn-fe.sh | 14 ++++++++++++-- 1 files changed, 12 insertions(+), 2 deletions(-)
t/t9010-svn-fe.sh +12 -2
@@ -2,9 +2,19 @@ test_description='check svn dumpfile importer' -. ./lib-git-svn.sh +. ./test-lib.sh -test_dump() { +svnconf=$PWD/svnconf +export svnconf + +svn_cmd () { + subcommand=$1 && + shift && + mkdir -p "$svnconf" && + svn "$subcommand" --config-dir "$svnconf" "$@" +} + +test_dump () { label=$1 dump=$2 test_expect_success "$dump" '
Signature · 1 line
1.7.2.3