tests: use "git xyzzy" form (t0000 - t3599)
PATCH 1/4 tests: use "git xyzzy" form (t0000 - t3599)
Converts tests between t0050-t3903.
Signed-off-by Nanako Shiraishi <[email protected]>
--- t/t0050-filesystem.sh | 2 +- t/t1007-hash-object.sh | 2 +- t/t1200-tutorial.sh | 2 +- t/t1303-wacky-config.sh | 2 +- t/t1400-update-ref.sh | 10 +++--- t/t1503-rev-parse-verify.sh | 2 +- t/t2005-checkout-index-symlinks.sh | 4 +- t/t2050-git-dir-relative.sh | 4 +- t/t2101-update-index-reupdate.sh | 2 +- t/t2102-update-index-symlinks.sh | 2 +- t/t2200-add-update.sh | 12 ++++---- t/t3001-ls-files-others-exclude.sh | 2 +- t/t3020-ls-files-error-unmatch.sh | 2 +- t/t3030-merge-recursive.sh | 14 ++++---- t/t3200-branch.sh | 58 ++++++++++++++++++------------------ t/t3210-pack-refs.sh | 4 +- t/t3400-rebase.sh | 6 ++-- t/t3401-rebase-partial.sh | 22 +++++++------- t/t3403-rebase-skip.sh | 2 +- t/t3404-rebase-interactive.sh | 2 +- t/t3407-rebase-abort.sh | 2 +- t/t3500-cherry.sh | 12 ++++---- t/t3800-mktag.sh | 12 ++++---- t/t3900-i18n-commit.sh | 6 ++-- t/t3901-i18n-patch.sh | 16 +++++----- t/t3903-stash.sh | 2 +- 26 files changed, 103 insertions(+), 103 deletions(-)
t/t0050-filesystem.sh +1 -1
@@ -87,3 +87,3 @@ $test_case 'add (with different case)' ' git add CamelCase && - test $(git-ls-files | grep -i camelcase | wc -l) = 1 + test $(git ls-files | grep -i camelcase | wc -l) = 1
t/t1007-hash-object.sh +1 -1
@@ -2,3 +2,3 @@ -test_description="git-hash-object" +test_description="git hash-object"
t/t1200-tutorial.sh +1 -1
@@ -80,3 +80,3 @@ test_expect_success 'git tag my-first-tag' 'cmp .git/refs/heads/master .git/refs -# TODO: test git-clone +# TODO: test git clone
t/t1303-wacky-config.sh +1 -1
@@ -37,3 +37,3 @@ test_expect_success 'add key in different section' ' SECTION="test.q\"s\\sq'sp e.key" -test_expect_success 'make sure git-config escapes section names properly' ' +test_expect_success 'make sure git config escapes section names properly' ' git config "$SECTION" bar &&
t/t1400-update-ref.sh +5 -5
@@ -230,3 +230,3 @@ test_expect_success \ GIT_AUTHOR_DATE="2005-05-26 23:30" \ - GIT_COMMITTER_DATE="2005-05-26 23:30" git-commit -m add -a && + GIT_COMMITTER_DATE="2005-05-26 23:30" git commit -m add -a && h_TEST=$(git rev-parse --verify HEAD)
@@ -236,6 +236,6 @@ test_expect_success \ GIT_AUTHOR_DATE="2005-05-26 23:41" \ - GIT_COMMITTER_DATE="2005-05-26 23:41" git-commit -F M -a && + GIT_COMMITTER_DATE="2005-05-26 23:41" git commit -F M -a && h_OTHER=$(git rev-parse --verify HEAD) && GIT_AUTHOR_DATE="2005-05-26 23:44" \ - GIT_COMMITTER_DATE="2005-05-26 23:44" git-commit --amend && + GIT_COMMITTER_DATE="2005-05-26 23:44" git commit --amend && h_FIXED=$(git rev-parse --verify HEAD) &&
@@ -244,3 +244,3 @@ test_expect_success \ GIT_AUTHOR_DATE="2005-05-26 23:45" \ - GIT_COMMITTER_DATE="2005-05-26 23:45" git-commit -F M && + GIT_COMMITTER_DATE="2005-05-26 23:45" git commit -F M && h_MERGED=$(git rev-parse --verify HEAD) &&
@@ -255,3 +255,3 @@ EOF test_expect_success \ - 'git-commit logged updates' \ + 'git commit logged updates' \ "diff expect .git/logs/$m"
t/t1503-rev-parse-verify.sh +1 -1
@@ -25,3 +25,3 @@ add_line_into_file() test_tick - git-commit --quiet -m "$MSG" $_file + git commit --quiet -m "$MSG" $_file }
t/t2005-checkout-index-symlinks.sh +2 -2
@@ -15,3 +15,3 @@ test_expect_success \ git config core.symlinks false && -l=$(echo -n file | git-hash-object -t blob -w --stdin) && +l=$(echo -n file | git hash-object -t blob -w --stdin) && echo "120000 $l symlink" | git update-index --index-info'
@@ -25,3 +25,3 @@ test_expect_success \ 'the file must be the blob we added during the setup' ' -test "$(git-hash-object -t blob symlink)" = $l' +test "$(git hash-object -t blob symlink)" = $l'
t/t2050-git-dir-relative.sh +2 -2
@@ -28,4 +28,4 @@ test_expect_success 'post-commit hook used ordinarily' ' echo initial >top && -git-add top -git-commit -m initial && +git add top +git commit -m initial && test -r "${COMMIT_FILE}"
t/t2101-update-index-reupdate.sh +1 -1
@@ -42,3 +42,3 @@ test_expect_success 'update-index --remove --again' \ -test_expect_success 'first commit' 'git-commit -m initial' +test_expect_success 'first commit' 'git commit -m initial'
t/t2102-update-index-symlinks.sh +1 -1
@@ -15,3 +15,3 @@ test_expect_success \ git config core.symlinks false && -l=$(echo -n file | git-hash-object -t blob -w --stdin) && +l=$(echo -n file | git hash-object -t blob -w --stdin) && echo "120000 $l symlink" | git update-index --index-info'
t/t2200-add-update.sh +6 -6
@@ -28,3 +28,3 @@ test_expect_success setup ' test_tick - git-commit -m initial && + git commit -m initial &&
@@ -42,3 +42,3 @@ test_expect_success update ' test_expect_success 'update noticed a removal' ' - test "$(git-ls-files dir1/sub1)" = "" + test "$(git ls-files dir1/sub1)" = "" '
@@ -46,3 +46,3 @@ test_expect_success 'update noticed a removal' ' test_expect_success 'update touched correct path' ' - test "$(git-diff-files --name-status dir2/sub3)" = "" + test "$(git diff-files --name-status dir2/sub3)" = "" '
@@ -50,4 +50,4 @@ test_expect_success 'update touched correct path' ' test_expect_success 'update did not touch other tracked files' ' - test "$(git-diff-files --name-status check)" = "M check" && - test "$(git-diff-files --name-status top)" = "M top" + test "$(git diff-files --name-status check)" = "M check" && + test "$(git diff-files --name-status top)" = "M top" '
@@ -55,3 +55,3 @@ test_expect_success 'update did not touch other tracked files' ' test_expect_success 'update did not touch untracked files' ' - test "$(git-ls-files dir2/other)" = "" + test "$(git ls-files dir2/other)" = "" '
t/t3001-ls-files-others-exclude.sh +1 -1
@@ -98,3 +98,3 @@ EOF -test_expect_success 'git-status honours core.excludesfile' \ +test_expect_success 'git status honors core.excludesfile' \ 'test_cmp expect output'
t/t3020-ls-files-error-unmatch.sh +1 -1
@@ -15,3 +15,3 @@ touch foo bar git update-index --add foo bar -git-commit -m "add foo bar" +git commit -m "add foo bar"
t/t3030-merge-recursive.sh +7 -7
@@ -243,3 +243,3 @@ test_expect_success 'merge-recursive simple' ' - git-merge-recursive "$c0" -- "$c2" "$c1" + git merge-recursive "$c0" -- "$c2" "$c1" status=$?
@@ -287,3 +287,3 @@ test_expect_success 'merge-recursive remove conflict' ' - git-merge-recursive "$c0" -- "$c1" "$c5" + git merge-recursive "$c0" -- "$c1" "$c5" status=$?
@@ -319,3 +319,3 @@ test_expect_success 'merge-recursive d/f simple' ' - git-merge-recursive "$c0" -- "$c1" "$c3" + git merge-recursive "$c0" -- "$c1" "$c3" '
@@ -341,3 +341,3 @@ test_expect_success 'merge-recursive d/f conflict' ' - git-merge-recursive "$c0" -- "$c1" "$c4" + git merge-recursive "$c0" -- "$c1" "$c4" status=$?
@@ -375,3 +375,3 @@ test_expect_success 'merge-recursive d/f conflict the other way' ' - git-merge-recursive "$c0" -- "$c4" "$c1" + git merge-recursive "$c0" -- "$c4" "$c1" status=$?
@@ -409,3 +409,3 @@ test_expect_success 'merge-recursive d/f conflict' ' - git-merge-recursive "$c0" -- "$c1" "$c6" + git merge-recursive "$c0" -- "$c1" "$c6" status=$?
@@ -443,3 +443,3 @@ test_expect_success 'merge-recursive d/f conflict' ' - git-merge-recursive "$c0" -- "$c6" "$c1" + git merge-recursive "$c0" -- "$c6" "$c1" status=$?
t/t3200-branch.sh +29 -29
116 lines not on this page · raw message
t/t3210-pack-refs.sh +2 -2
@@ -19,3 +19,3 @@ test_expect_success \ git update-index --add A && - git-commit -m "Initial commit." && + git commit -m "Initial commit." && HEAD=$(git rev-parse --verify HEAD)'
@@ -99,3 +99,3 @@ test_expect_success \ test_expect_success 'pack, prune and repack' ' - git-tag foo && + git tag foo && git pack-refs --all --prune &&
t/t3400-rebase.sh +3 -3
@@ -18,3 +18,3 @@ test_expect_success \ git update-index --add A && - git-commit -m "Add A." && + git commit -m "Add A." && git checkout -b my-topic-branch &&
@@ -22,3 +22,3 @@ test_expect_success \ git update-index --add B && - git-commit -m "Add B." && + git commit -m "Add B." && git checkout -f master &&
@@ -26,3 +26,3 @@ test_expect_success \ git update-index A && - git-commit -m "Modify A." && + git commit -m "Modify A." && git checkout -b side my-topic-branch &&
t/t3401-rebase-partial.sh +11 -11
@@ -17,5 +17,5 @@ test_expect_success \ git update-index --add A && - git-commit -m "Add A." && + git commit -m "Add A." && - git-checkout -b my-topic-branch && + git checkout -b my-topic-branch &&
@@ -23,3 +23,3 @@ test_expect_success \ git update-index --add B && - git-commit -m "Add B." && + git commit -m "Add B." &&
@@ -27,5 +27,5 @@ test_expect_success \ git update-index --add C && - git-commit -m "Add C." && + git commit -m "Add C." && - git-checkout -f master && + git checkout -f master &&
@@ -33,3 +33,3 @@ test_expect_success \ git update-index A && - git-commit -m "Modify A." + git commit -m "Modify A." '
@@ -39,3 +39,3 @@ test_expect_success \ 'git cherry-pick my-topic-branch^0 && - git-checkout -f my-topic-branch && + git checkout -f my-topic-branch && git branch master-merge master &&
@@ -51,4 +51,4 @@ test_debug \ test_expect_success \ - 'rebase topic branch against new master and check git-am did not get halted' \ - 'git-rebase master && test ! -d .git/rebase-apply' + 'rebase topic branch against new master and check git am did not get halted' \ + 'git rebase master && test ! -d .git/rebase-apply'
@@ -56,4 +56,4 @@ test_expect_success \ 'rebase --merge topic branch that was partially merged upstream' \ - 'git-checkout -f my-topic-branch-merge && - git-rebase --merge master-merge && + 'git checkout -f my-topic-branch-merge && + git rebase --merge master-merge && test ! -d .git/rebase-merge'
t/t3403-rebase-skip.sh +1 -1
@@ -9,3 +9,3 @@ test_description='git rebase --merge --skip tests' -# we assume the default git-am -3 --skip strategy is tested independently +# we assume the default git am -3 --skip strategy is tested independently # and always works :)
t/t3404-rebase-interactive.sh +1 -1
@@ -163,3 +163,3 @@ test_expect_success 'stop on conflicting pick' ' test_cmp expect2 file1 && - test "$(git-diff --name-status | + test "$(git diff --name-status | sed -n -e "/^U/s/^U[^a-z]*//p")" = file1 &&
t/t3407-rebase-abort.sh +1 -1
@@ -54,3 +54,3 @@ testrebase() { test $(git rev-parse HEAD) = $(git rev-parse master) && - git-rebase --abort && + git rebase --abort && test $(git rev-parse to-rebase) = $(git rev-parse pre-rebase) &&
t/t3500-cherry.sh +6 -6
@@ -19,5 +19,5 @@ test_expect_success \ git update-index --add A && - git-commit -m "Add A." && + git commit -m "Add A." && - git-checkout -b my-topic-branch && + git checkout -b my-topic-branch &&
@@ -25,3 +25,3 @@ test_expect_success \ git update-index --add B && - git-commit -m "Add B." && + git commit -m "Add B." &&
@@ -30,5 +30,5 @@ test_expect_success \ git update-index --add C && - git-commit -m "Add C." && + git commit -m "Add C." && - git-checkout -f master && + git checkout -f master && rm -f B C &&
@@ -37,3 +37,3 @@ test_expect_success \ git update-index A && - git-commit -m "Modify A." && + git commit -m "Modify A." &&
t/t3800-mktag.sh +6 -6
@@ -4,3 +4,3 @@ -test_description='git-mktag: tag object verify test' +test_description='git mktag: tag object verify test'
@@ -16,3 +16,3 @@ check_verify_failure () { test_expect_success "$1" ' - ( test_must_fail git-mktag <tag.sig 2>message ) && + ( test_must_fail git mktag <tag.sig 2>message ) && grep "$expect" message
@@ -26,3 +26,3 @@ echo Hello >A git update-index --add A -git-commit -m "Initial commit" +git commit -m "Initial commit" head=$(git rev-parse --verify HEAD)
@@ -224,3 +224,3 @@ test_expect_success \ 'allow empty tag email' \ - 'git-mktag <tag.sig >.git/refs/tags/mytag 2>message' + 'git mktag <tag.sig >.git/refs/tags/mytag 2>message'
@@ -352,3 +352,3 @@ test_expect_success \ 'create valid tag' \ - 'git-mktag <tag.sig >.git/refs/tags/mytag 2>message' + 'git mktag <tag.sig >.git/refs/tags/mytag 2>message'
@@ -359,3 +359,3 @@ test_expect_success \ 'check mytag' \ - 'git-tag -l | grep mytag' + 'git tag -l | grep mytag'
t/t3900-i18n-commit.sh +3 -3
@@ -20,3 +20,3 @@ test_expect_success setup ' git update-ref HEAD $C && - git-tag C0 + git tag C0 '
@@ -32,5 +32,5 @@ do git config i18n.commitencoding $H && - git-checkout -b $H C0 && + git checkout -b $H C0 && echo $H >F && - git-commit -a -F "$TEST_DIRECTORY"/t3900/$H.txt + git commit -a -F "$TEST_DIRECTORY"/t3900/$H.txt '
t/t3901-i18n-patch.sh +8 -8
@@ -105,3 +105,3 @@ test_expect_success 'rebase (U/U)' ' git checkout -b test && - git-rebase master && + git rebase master &&
@@ -116,3 +116,3 @@ test_expect_success 'rebase (U/L)' ' git reset --hard side && - git-rebase master && + git rebase master &&
@@ -128,3 +128,3 @@ test_expect_success 'rebase (L/L)' ' git reset --hard side && - git-rebase master && + git rebase master &&
@@ -141,3 +141,3 @@ test_expect_success 'rebase (L/U)' ' git reset --hard side && - git-rebase master && + git rebase master &&
@@ -213,3 +213,3 @@ test_expect_success 'rebase --merge (U/U)' ' git reset --hard side && - git-rebase --merge master && + git rebase --merge master &&
@@ -224,3 +224,3 @@ test_expect_success 'rebase --merge (U/L)' ' git reset --hard side && - git-rebase --merge master && + git rebase --merge master &&
@@ -236,3 +236,3 @@ test_expect_success 'rebase --merge (L/L)' ' git reset --hard side && - git-rebase --merge master && + git rebase --merge master &&
@@ -249,3 +249,3 @@ test_expect_success 'rebase --merge (L/U)' ' git reset --hard side && - git-rebase --merge master && + git rebase --merge master &&
t/t3903-stash.sh +1 -1
@@ -5,3 +5,3 @@ -test_description='Test git-stash' +test_description='Test git stash'
Signature · 5 lines
1.6.0.1 -- Nanako Shiraishi http://ivory.ap.teacup.com/nanako3/