@@ -4,12 +4,13 @@ test_description='check svn dumpfile importer'
4
4
5
5
. ./test-lib.sh
6
6
7
+ if test_have_prereq ! PIPE
8
+ then
9
+ skip_all=" svn dumpfile importer testing requires the PIPE prerequisite"
10
+ test_done
11
+ fi
12
+
7
13
reinit_git () {
8
- if ! test_declared_prereq PIPE
9
- then
10
- echo >&4 " reinit_git: need to declare PIPE prerequisite"
11
- return 127
12
- fi
13
14
rm -fr .git &&
14
15
rm -f stream backflow &&
15
16
git init &&
@@ -54,19 +55,19 @@ text_no_props () {
54
55
55
56
> empty
56
57
57
- test_expect_success PIPE ' empty dump' '
58
+ test_expect_success ' empty dump' '
58
59
reinit_git &&
59
60
echo "SVN-fs-dump-format-version: 2" >input &&
60
61
try_dump input
61
62
'
62
63
63
- test_expect_success PIPE ' v4 dumps not supported' '
64
+ test_expect_success ' v4 dumps not supported' '
64
65
reinit_git &&
65
66
echo "SVN-fs-dump-format-version: 4" >v4.dump &&
66
67
try_dump v4.dump must_fail
67
68
'
68
69
69
- test_expect_failure PIPE ' empty revision' '
70
+ test_expect_failure ' empty revision' '
70
71
reinit_git &&
71
72
printf "rev <nobody, nobody@local>: %s\n" "" "" >expect &&
72
73
cat >emptyrev.dump <<-\EOF &&
@@ -86,7 +87,7 @@ test_expect_failure PIPE 'empty revision' '
86
87
test_cmp expect actual
87
88
'
88
89
89
- test_expect_success PIPE ' empty properties' '
90
+ test_expect_success ' empty properties' '
90
91
reinit_git &&
91
92
printf "rev <nobody, nobody@local>: %s\n" "" "" >expect &&
92
93
cat >emptyprop.dump <<-\EOF &&
@@ -109,7 +110,7 @@ test_expect_success PIPE 'empty properties' '
109
110
test_cmp expect actual
110
111
'
111
112
112
- test_expect_success PIPE ' author name and commit message' '
113
+ test_expect_success ' author name and commit message' '
113
114
reinit_git &&
114
115
echo "<[email protected] , [email protected] @local>" >expect.author &&
115
116
cat >message <<-\EOF &&
@@ -143,7 +144,7 @@ test_expect_success PIPE 'author name and commit message' '
143
144
test_cmp expect.author actual.author
144
145
'
145
146
146
- test_expect_success PIPE ' unsupported properties are ignored' '
147
+ test_expect_success ' unsupported properties are ignored' '
147
148
reinit_git &&
148
149
echo author >expect &&
149
150
cat >extraprop.dump <<-\EOF &&
@@ -168,7 +169,7 @@ test_expect_success PIPE 'unsupported properties are ignored' '
168
169
test_cmp expect actual
169
170
'
170
171
171
- test_expect_failure PIPE ' timestamp and empty file' '
172
+ test_expect_failure ' timestamp and empty file' '
172
173
echo [email protected] >expect.author &&
173
174
echo 1999-01-01 >expect.date &&
174
175
echo file >expect.files &&
@@ -210,7 +211,7 @@ test_expect_failure PIPE 'timestamp and empty file' '
210
211
test_cmp empty file
211
212
'
212
213
213
- test_expect_success PIPE ' directory with files' '
214
+ test_expect_success ' directory with files' '
214
215
reinit_git &&
215
216
printf "%s\n" directory/file1 directory/file2 >expect.files &&
216
217
echo hi >hi &&
@@ -263,7 +264,7 @@ test_expect_success PIPE 'directory with files' '
263
264
test_cmp hi directory/file2
264
265
'
265
266
266
- test_expect_success PIPE ' branch name with backslash' '
267
+ test_expect_success ' branch name with backslash' '
267
268
reinit_git &&
268
269
sort <<-\EOF >expect.branch-files &&
269
270
trunk/file1
@@ -362,7 +363,7 @@ test_expect_success PIPE 'branch name with backslash' '
362
363
test_cmp expect.branch-files actual.branch-files
363
364
'
364
365
365
- test_expect_success PIPE ' node without action' '
366
+ test_expect_success ' node without action' '
366
367
reinit_git &&
367
368
cat >inaction.dump <<-\EOF &&
368
369
SVN-fs-dump-format-version: 3
@@ -383,7 +384,7 @@ test_expect_success PIPE 'node without action' '
383
384
try_dump inaction.dump must_fail
384
385
'
385
386
386
- test_expect_success PIPE ' action: add node without text' '
387
+ test_expect_success ' action: add node without text' '
387
388
reinit_git &&
388
389
cat >textless.dump <<-\EOF &&
389
390
SVN-fs-dump-format-version: 3
@@ -405,7 +406,7 @@ test_expect_success PIPE 'action: add node without text' '
405
406
try_dump textless.dump must_fail
406
407
'
407
408
408
- test_expect_failure PIPE ' change file mode but keep old content' '
409
+ test_expect_failure ' change file mode but keep old content' '
409
410
reinit_git &&
410
411
cat >expect <<-\EOF &&
411
412
OBJID
@@ -481,7 +482,7 @@ test_expect_failure PIPE 'change file mode but keep old content' '
481
482
test_cmp hello actual.target
482
483
'
483
484
484
- test_expect_success PIPE ' NUL in property value' '
485
+ test_expect_success ' NUL in property value' '
485
486
reinit_git &&
486
487
echo "commit message" >expect.message &&
487
488
{
@@ -507,7 +508,7 @@ test_expect_success PIPE 'NUL in property value' '
507
508
test_cmp expect.message actual.message
508
509
'
509
510
510
- test_expect_success PIPE ' NUL in log message, file content, and property name' '
511
+ test_expect_success ' NUL in log message, file content, and property name' '
511
512
# Caveat: svnadmin 1.6.16 (r1073529) truncates at \0 in the
512
513
# svn:specialQnotreally example.
513
514
reinit_git &&
@@ -587,7 +588,7 @@ test_expect_success PIPE 'NUL in log message, file content, and property name' '
587
588
test_cmp expect.hello2 actual.hello2
588
589
'
589
590
590
- test_expect_success PIPE ' change file mode and reiterate content' '
591
+ test_expect_success ' change file mode and reiterate content' '
591
592
reinit_git &&
592
593
cat >expect <<-\EOF &&
593
594
OBJID
@@ -667,7 +668,7 @@ test_expect_success PIPE 'change file mode and reiterate content' '
667
668
test_cmp hello actual.target
668
669
'
669
670
670
- test_expect_success PIPE ' deltas supported' '
671
+ test_expect_success ' deltas supported' '
671
672
reinit_git &&
672
673
{
673
674
# (old) h + (inline) ello + (old) \n
@@ -731,7 +732,7 @@ test_expect_success PIPE 'deltas supported' '
731
732
try_dump delta.dump
732
733
'
733
734
734
- test_expect_success PIPE ' property deltas supported' '
735
+ test_expect_success ' property deltas supported' '
735
736
reinit_git &&
736
737
cat >expect <<-\EOF &&
737
738
OBJID
@@ -796,7 +797,7 @@ test_expect_success PIPE 'property deltas supported' '
796
797
test_cmp expect actual
797
798
'
798
799
799
- test_expect_success PIPE ' properties on /' '
800
+ test_expect_success ' properties on /' '
800
801
reinit_git &&
801
802
cat <<-\EOF >expect &&
802
803
OBJID
@@ -850,7 +851,7 @@ test_expect_success PIPE 'properties on /' '
850
851
test_cmp expect actual
851
852
'
852
853
853
- test_expect_success PIPE ' deltas for typechange' '
854
+ test_expect_success ' deltas for typechange' '
854
855
reinit_git &&
855
856
cat >expect <<-\EOF &&
856
857
OBJID
@@ -935,7 +936,7 @@ test_expect_success PIPE 'deltas for typechange' '
935
936
test_cmp expect actual
936
937
'
937
938
938
- test_expect_success PIPE ' deltas need not consume the whole preimage' '
939
+ test_expect_success ' deltas need not consume the whole preimage' '
939
940
reinit_git &&
940
941
cat >expect <<-\EOF &&
941
942
OBJID
@@ -1040,7 +1041,7 @@ test_expect_success PIPE 'deltas need not consume the whole preimage' '
1040
1041
test_cmp expect.3 actual.3
1041
1042
'
1042
1043
1043
- test_expect_success PIPE ' no hang for delta trying to read past end of preimage' '
1044
+ test_expect_success ' no hang for delta trying to read past end of preimage' '
1044
1045
reinit_git &&
1045
1046
{
1046
1047
# COPY 1
@@ -1087,7 +1088,7 @@ test_expect_success 'set up svn repo' '
1087
1088
fi
1088
1089
'
1089
1090
1090
- test_expect_success SVNREPO,PIPE ' t9135/svn.dump' '
1091
+ test_expect_success SVNREPO ' t9135/svn.dump' '
1091
1092
mkdir -p simple-git &&
1092
1093
(
1093
1094
cd simple-git &&
0 commit comments