Skip to content

Commit 3604e7c

Browse files
Nanako Shiraishigitster
authored andcommitted
tests: use "git xyzzy" form (t3600 - t6999)
Converts tests between t3600-t6300. Signed-off-by: Nanako Shiraishi <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 0cb0e14 commit 3604e7c

26 files changed

+130
-130
lines changed

t/t3600-rm.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ test_expect_success \
1212
'Initialize test directory' \
1313
"touch -- foo bar baz 'space embedded' -q &&
1414
git add -- foo bar baz 'space embedded' -q &&
15-
git-commit -m 'add normal files' &&
15+
git commit -m 'add normal files' &&
1616
test_tabs=y &&
1717
if touch -- 'tab embedded' 'newline
1818
embedded'
1919
then
2020
git add -- 'tab embedded' 'newline
2121
embedded' &&
22-
git-commit -m 'add files with tabs and newlines'
22+
git commit -m 'add files with tabs and newlines'
2323
else
2424
say 'Your filesystem does not allow tabs in filenames.'
2525
test_tabs=n

t/t4012-diff-binary.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ test_expect_success 'apply detecting corrupt patch correctly' \
6161
detected=`sed -ne "${detected}p" broken` &&
6262
test "$detected" = xCIT'
6363

64-
test_expect_success 'initial commit' 'git-commit -a -m initial'
64+
test_expect_success 'initial commit' 'git commit -a -m initial'
6565

6666
# Try removal (b), modification (d), and creation (e).
6767
test_expect_success 'diff-index with --binary' \
@@ -72,7 +72,7 @@ test_expect_success 'diff-index with --binary' \
7272
git apply --stat --summary current'
7373

7474
test_expect_success 'apply binary patch' \
75-
'git-reset --hard &&
75+
'git reset --hard &&
7676
git apply --binary --index <current &&
7777
tree1=`git write-tree` &&
7878
test "$tree1" = "$tree0"'

t/t4103-apply-binary.sh

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@ cat file1 >file2
2121
cat file1 >file4
2222

2323
git update-index --add --remove file1 file2 file4
24-
git-commit -m 'Initial Version' 2>/dev/null
24+
git commit -m 'Initial Version' 2>/dev/null
2525

26-
git-checkout -b binary
26+
git checkout -b binary
2727
perl -pe 'y/x/\000/' <file1 >file3
2828
cat file3 >file4
2929
git add file2
3030
perl -pe 'y/\000/v/' <file3 >file1
3131
rm -f file2
3232
git update-index --add --remove file1 file2 file3 file4
33-
git-commit -m 'Second Version'
33+
git commit -m 'Second Version'
3434

3535
git diff-tree -p master binary >B.diff
3636
git diff-tree -p -C master binary >C.diff
@@ -39,47 +39,47 @@ git diff-tree -p --binary master binary >BF.diff
3939
git diff-tree -p --binary -C master binary >CF.diff
4040

4141
test_expect_success 'stat binary diff -- should not fail.' \
42-
'git-checkout master
42+
'git checkout master
4343
git apply --stat --summary B.diff'
4444

4545
test_expect_success 'stat binary diff (copy) -- should not fail.' \
46-
'git-checkout master
46+
'git checkout master
4747
git apply --stat --summary C.diff'
4848

4949
test_expect_success 'check binary diff -- should fail.' \
50-
'git-checkout master &&
50+
'git checkout master &&
5151
test_must_fail git apply --check B.diff'
5252

5353
test_expect_success 'check binary diff (copy) -- should fail.' \
54-
'git-checkout master &&
54+
'git checkout master &&
5555
test_must_fail git apply --check C.diff'
5656

5757
test_expect_success \
5858
'check incomplete binary diff with replacement -- should fail.' '
59-
git-checkout master &&
59+
git checkout master &&
6060
test_must_fail git apply --check --allow-binary-replacement B.diff
6161
'
6262

6363
test_expect_success \
6464
'check incomplete binary diff with replacement (copy) -- should fail.' '
65-
git-checkout master &&
65+
git checkout master &&
6666
test_must_fail git apply --check --allow-binary-replacement C.diff
6767
'
6868

6969
test_expect_success 'check binary diff with replacement.' \
70-
'git-checkout master
70+
'git checkout master
7171
git apply --check --allow-binary-replacement BF.diff'
7272

7373
test_expect_success 'check binary diff with replacement (copy).' \
74-
'git-checkout master
74+
'git checkout master
7575
git apply --check --allow-binary-replacement CF.diff'
7676

7777
# Now we start applying them.
7878

7979
do_reset () {
8080
rm -f file? &&
81-
git-reset --hard &&
82-
git-checkout -f master
81+
git reset --hard &&
82+
git checkout -f master
8383
}
8484

8585
test_expect_success 'apply binary diff -- should fail.' \

t/t4124-apply-ws-rule.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22

3-
test_description='core.whitespace rules and git-apply'
3+
test_description='core.whitespace rules and git apply'
44

55
. ./test-lib.sh
66

t/t4127-apply-same-fn.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ test_expect_success 'apply same filename with independent changes' '
2626
git diff >> patch0 &&
2727
cp same_fn same_fn2 &&
2828
git reset --hard &&
29-
git-apply patch0 &&
29+
git apply patch0 &&
3030
diff same_fn same_fn2
3131
'
3232

@@ -39,7 +39,7 @@ test_expect_success 'apply same filename with overlapping changes' '
3939
git diff >> patch0 &&
4040
cp same_fn same_fn2 &&
4141
git reset --hard &&
42-
git-apply patch0 &&
42+
git apply patch0 &&
4343
diff same_fn same_fn2
4444
'
4545

t/t4150-am.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ test_expect_success 'am --keep really keeps the subject' '
164164
git checkout HEAD^ &&
165165
git am --keep patch4 &&
166166
! test -d .git/rebase-apply &&
167-
git-cat-file commit HEAD |
167+
git cat-file commit HEAD |
168168
grep -q -F "Re: Re: Re: [PATCH 1/5 v2] third"
169169
'
170170

t/t4151-am-abort.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,14 @@ do
4444
'
4545

4646
test_expect_success "am$with3 --skip continue after failed am$with3" '
47-
test_must_fail git-am$with3 --skip >output &&
47+
test_must_fail git am$with3 --skip >output &&
4848
test "$(grep "^Applying" output)" = "Applying: 6" &&
4949
test_cmp file-2-expect file-2 &&
5050
test ! -f .git/rr-cache/MERGE_RR
5151
'
5252

5353
test_expect_success "am --abort goes back after failed am$with3" '
54-
git-am --abort &&
54+
git am --abort &&
5555
git rev-parse HEAD >actual &&
5656
git rev-parse initial >expect &&
5757
test_cmp expect actual &&

t/t5300-pack-object.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Copyright (c) 2005 Junio C Hamano
44
#
55

6-
test_description='git-pack-object
6+
test_description='git pack-object
77
88
'
99
. ./test-lib.sh
@@ -236,24 +236,24 @@ test_expect_success \
236236
test_expect_success \
237237
'build pack index for an existing pack' \
238238
'cat test-1-${packname_1}.pack >test-3.pack &&
239-
git-index-pack -o tmp.idx test-3.pack &&
239+
git index-pack -o tmp.idx test-3.pack &&
240240
cmp tmp.idx test-1-${packname_1}.idx &&
241241
242-
git-index-pack test-3.pack &&
242+
git index-pack test-3.pack &&
243243
cmp test-3.idx test-1-${packname_1}.idx &&
244244
245245
cat test-2-${packname_2}.pack >test-3.pack &&
246-
git-index-pack -o tmp.idx test-2-${packname_2}.pack &&
246+
git index-pack -o tmp.idx test-2-${packname_2}.pack &&
247247
cmp tmp.idx test-2-${packname_2}.idx &&
248248
249-
git-index-pack test-3.pack &&
249+
git index-pack test-3.pack &&
250250
cmp test-3.idx test-2-${packname_2}.idx &&
251251
252252
cat test-3-${packname_3}.pack >test-3.pack &&
253-
git-index-pack -o tmp.idx test-3-${packname_3}.pack &&
253+
git index-pack -o tmp.idx test-3-${packname_3}.pack &&
254254
cmp tmp.idx test-3-${packname_3}.idx &&
255255
256-
git-index-pack test-3.pack &&
256+
git index-pack test-3.pack &&
257257
cmp test-3.idx test-3-${packname_3}.idx &&
258258
259259
:'
@@ -266,7 +266,7 @@ test_expect_success \
266266

267267
test_expect_success \
268268
'make sure index-pack detects the SHA1 collision' \
269-
'test_must_fail git-index-pack -o bad.idx test-3.pack'
269+
'test_must_fail git index-pack -o bad.idx test-3.pack'
270270

271271
test_expect_success \
272272
'honor pack.packSizeLimit' \

t/t5301-sliding-window.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ test_expect_success \
1919
tree=`git write-tree` &&
2020
commit1=`git commit-tree $tree </dev/null` &&
2121
git update-ref HEAD $commit1 &&
22-
git-repack -a -d &&
22+
git repack -a -d &&
2323
test "`git count-objects`" = "0 objects, 0 kilobytes" &&
2424
pack1=`ls .git/objects/pack/*.pack` &&
2525
test -f "$pack1"'
@@ -45,7 +45,7 @@ test_expect_success \
4545
git config core.packedGitLimit 512 &&
4646
commit2=`git commit-tree $tree -p $commit1 </dev/null` &&
4747
git update-ref HEAD $commit2 &&
48-
git-repack -a -d &&
48+
git repack -a -d &&
4949
test "`git count-objects`" = "0 objects, 0 kilobytes" &&
5050
pack2=`ls .git/objects/pack/*.pack` &&
5151
test -f "$pack2"

t/t5302-pack-index.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ test_expect_success \
4848

4949
test_expect_success \
5050
'index-pack with index version 1' \
51-
'git-index-pack --index-version=1 -o 1.idx "test-1-${pack1}.pack"'
51+
'git index-pack --index-version=1 -o 1.idx "test-1-${pack1}.pack"'
5252

5353
test_expect_success \
5454
'index-pack with index version 2' \
55-
'git-index-pack --index-version=2 -o 2.idx "test-1-${pack1}.pack"'
55+
'git index-pack --index-version=2 -o 2.idx "test-1-${pack1}.pack"'
5656

5757
test_expect_success \
5858
'index-pack results should match pack-objects ones' \
@@ -85,7 +85,7 @@ test_expect_success \
8585
test "$have_64bits" &&
8686
test_expect_success \
8787
'index v2: force some 64-bit offsets with index-pack' \
88-
'git-index-pack --index-version=2,0x40000 -o 3.idx "test-1-${pack1}.pack"'
88+
'git index-pack --index-version=2,0x40000 -o 3.idx "test-1-${pack1}.pack"'
8989

9090
test "$have_64bits" &&
9191
test_expect_success \
@@ -94,7 +94,7 @@ test_expect_success \
9494

9595
test_expect_success \
9696
'[index v1] 1) stream pack to repository' \
97-
'git-index-pack --index-version=1 --stdin < "test-1-${pack1}.pack" &&
97+
'git index-pack --index-version=1 --stdin < "test-1-${pack1}.pack" &&
9898
git prune-packed &&
9999
git count-objects | ( read nr rest && test "$nr" -eq 1 ) &&
100100
cmp "test-1-${pack1}.pack" ".git/objects/pack/pack-${pack1}.pack" &&
@@ -132,7 +132,7 @@ test_expect_success \
132132
test_expect_success \
133133
'[index v2] 1) stream pack to repository' \
134134
'rm -f .git/objects/pack/* &&
135-
git-index-pack --index-version=2 --stdin < "test-1-${pack1}.pack" &&
135+
git index-pack --index-version=2 --stdin < "test-1-${pack1}.pack" &&
136136
git prune-packed &&
137137
git count-objects | ( read nr rest && test "$nr" -eq 1 ) &&
138138
cmp "test-1-${pack1}.pack" ".git/objects/pack/pack-${pack1}.pack" &&
@@ -165,7 +165,7 @@ test_expect_success \
165165
test_expect_success \
166166
'[index v2] 6) verify-pack detects CRC mismatch' \
167167
'rm -f .git/objects/pack/* &&
168-
git-index-pack --index-version=2 --stdin < "test-1-${pack1}.pack" &&
168+
git index-pack --index-version=2 --stdin < "test-1-${pack1}.pack" &&
169169
git verify-pack ".git/objects/pack/pack-${pack1}.pack" &&
170170
chmod +w ".git/objects/pack/pack-${pack1}.idx" &&
171171
dd if=/dev/zero of=".git/objects/pack/pack-${pack1}.idx" conv=notrunc \

0 commit comments

Comments
 (0)