git-svn: update tests for recent changes
* Enable test for delta transfers in full-svn-test. * Run tests against the root of the repository so we won't have to revisit 308906fa6e98132cab839a4f42701386fba368ef and efe4631def181d32f932672a7ea31e52ee0ab308 again. The graft-branches test still runs as before. Signed-off-by: Eric Wong <normalperson@yhbt.net> Signed-off-by: Junio C Hamano <junkio@cox.net>
Eric Wong committed
Nov 27, 2006 at 21:46 UTC
e15161198a381334b8c8ccee707392163f3a1ab7
4 files changed
+10
-2
t/Makefile
+2
-1
@@ -23,8 +23,9 @@ clean:
23
24
# we can test NO_OPTIMIZE_COMMITS independently of LC_ALL
25
full-svn-test:
26
+ $(MAKE) $(TSVN) GIT_SVN_NO_LIB=0 GIT_SVN_DELTA_FETCH=1 \
27
+ GIT_SVN_NO_OPTIMIZE_COMMITS=1 LC_ALL=C
28
$(MAKE) $(TSVN) GIT_SVN_NO_LIB=1 GIT_SVN_NO_OPTIMIZE_COMMITS=1 LC_ALL=C
27
- $(MAKE) $(TSVN) GIT_SVN_NO_LIB=0 GIT_SVN_NO_OPTIMIZE_COMMITS=1 LC_ALL=C
29
$(MAKE) $(TSVN) GIT_SVN_NO_LIB=1 GIT_SVN_NO_OPTIMIZE_COMMITS=0 \
30
LC_ALL=en_US.UTF-8
31
$(MAKE) $(TSVN) GIT_SVN_NO_LIB=0 GIT_SVN_NO_OPTIMIZE_COMMITS=0 \
t/lib-git-svn.sh
+1
-1
@@ -45,6 +45,6 @@ else
45
svnadmin create "$svnrepo"
46
fi
47
48
-svnrepo="file://$svnrepo/test-git-svn"
48
+svnrepo="file://$svnrepo"
49
50
t/t9100-git-svn-basic.sh
+5
@@ -228,6 +228,11 @@ tree 56a30b966619b863674f5978696f4a3594f2fca9
228
tree d667270a1f7b109f5eb3aaea21ede14b56bfdd6e
229
tree 8f51f74cf0163afc9ad68a4b1537288c4558b5a4
230
EOF
231
+
232
+if test -z "$GIT_SVN_NO_LIB" || test "$GIT_SVN_NO_LIB" -eq 0; then
233
+ echo tree 4b825dc642cb6eb9a060e54bf8d69288fbee4904 >> expected
234
+fi
235
+
236
test_expect_success "$name" "diff -u a expected"
237
238
test_done
t/t9103-git-svn-graft-branches.sh
+2
@@ -1,6 +1,8 @@
1
test_description='git-svn graft-branches'
2
. ./lib-git-svn.sh
3
4
+svnrepo="$svnrepo/test-git-svn"
5
+
6
test_expect_success 'initialize repo' "
7
mkdir import &&
8
cd import &&