Skip to content

Commit

Permalink
tests: use "git xyzzy" form (t0000 - t3599)
Browse files Browse the repository at this point in the history
Converts tests between t0050-t3903.

Signed-off-by: Nanako Shiraishi <nanako3@lavabit.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Nanako Shiraishi authored and Junio C Hamano committed Sep 3, 2008
1 parent 7e44c93 commit 0cb0e14
Show file tree
Hide file tree
Showing 26 changed files with 103 additions and 103 deletions.
2 changes: 1 addition & 1 deletion t/t0050-filesystem.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ $test_case 'add (with different case)' '
rm camelcase &&
echo 1 >CamelCase &&
git add CamelCase &&
test $(git-ls-files | grep -i camelcase | wc -l) = 1
test $(git ls-files | grep -i camelcase | wc -l) = 1
'

Expand Down
2 changes: 1 addition & 1 deletion t/t1007-hash-object.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

test_description="git-hash-object"
test_description="git hash-object"

. ./test-lib.sh

Expand Down
2 changes: 1 addition & 1 deletion t/t1200-tutorial.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ test_expect_success 'git whatchanged -p --root' 'cmp whatchanged.expect whatchan
git tag my-first-tag
test_expect_success 'git tag my-first-tag' 'cmp .git/refs/heads/master .git/refs/tags/my-first-tag'

# TODO: test git-clone
# TODO: test git clone

git checkout -b mybranch
test_expect_success 'git checkout -b mybranch' 'cmp .git/refs/heads/master .git/refs/heads/mybranch'
Expand Down
2 changes: 1 addition & 1 deletion t/t1303-wacky-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ 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 &&
check "$SECTION" bar
'
Expand Down
10 changes: 5 additions & 5 deletions t/t1400-update-ref.sh
Original file line number Diff line number Diff line change
Expand Up @@ -228,21 +228,21 @@ test_expect_success \
'echo TEST >F &&
git add F &&
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)
echo The other day this did not work. >M &&
echo And then Bob told me how to fix it. >>M &&
echo OTHER >F &&
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) &&
echo Merged initial commit and a later commit. >M &&
echo $h_TEST >.git/MERGE_HEAD &&
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) &&
rm -f M'

Expand All @@ -253,7 +253,7 @@ $h_OTHER $h_FIXED $GIT_COMMITTER_NAME <$GIT_COMMITTER_EMAIL> 1117151040 +0000 co
$h_FIXED $h_MERGED $GIT_COMMITTER_NAME <$GIT_COMMITTER_EMAIL> 1117151100 +0000 commit (merge): Merged initial commit and a later commit.
EOF
test_expect_success \
'git-commit logged updates' \
'git commit logged updates' \
"diff expect .git/logs/$m"
unset h_TEST h_OTHER h_FIXED h_MERGED

Expand Down
2 changes: 1 addition & 1 deletion t/t1503-rev-parse-verify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ add_line_into_file()
fi

test_tick
git-commit --quiet -m "$MSG" $_file
git commit --quiet -m "$MSG" $_file
}

HASH1=
Expand Down
4 changes: 2 additions & 2 deletions t/t2005-checkout-index-symlinks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ file if core.symlinks is false.'
test_expect_success \
'preparation' '
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'

test_expect_success \
Expand All @@ -23,6 +23,6 @@ test -f symlink'

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'

test_done
4 changes: 2 additions & 2 deletions t/t2050-git-dir-relative.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ chmod +x .git/hooks/post-commit'

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}"
'

Expand Down
2 changes: 1 addition & 1 deletion t/t2101-update-index-reupdate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ test_expect_success 'update-index --remove --again' \
git ls-files -s >current &&
cmp current expected'

test_expect_success 'first commit' 'git-commit -m initial'
test_expect_success 'first commit' 'git commit -m initial'

cat > expected <<\EOF
100644 53ab446c3f4e42ce9bb728a0ccb283a101be4979 0 dir1/file3
Expand Down
2 changes: 1 addition & 1 deletion t/t2102-update-index-symlinks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ even if a plain file is in the working tree if core.symlinks is false.'
test_expect_success \
'preparation' '
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'

test_expect_success \
Expand Down
12 changes: 6 additions & 6 deletions t/t2200-add-update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ test_expect_success setup '
echo initial >dir2/sub3 &&
git add check dir1 dir2 top foo &&
test_tick
git-commit -m initial &&
git commit -m initial &&
echo changed >check &&
echo changed >top &&
Expand All @@ -40,20 +40,20 @@ test_expect_success update '
'

test_expect_success 'update noticed a removal' '
test "$(git-ls-files dir1/sub1)" = ""
test "$(git ls-files dir1/sub1)" = ""
'

test_expect_success 'update touched correct path' '
test "$(git-diff-files --name-status dir2/sub3)" = ""
test "$(git diff-files --name-status dir2/sub3)" = ""
'

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"
'

test_expect_success 'update did not touch untracked files' '
test "$(git-ls-files dir2/other)" = ""
test "$(git ls-files dir2/other)" = ""
'

test_expect_success 'cache tree has not been corrupted' '
Expand Down
2 changes: 1 addition & 1 deletion t/t3001-ls-files-others-exclude.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ cat > expect << EOF
# three/
EOF

test_expect_success 'git-status honours core.excludesfile' \
test_expect_success 'git status honors core.excludesfile' \
'test_cmp expect output'

test_expect_success 'trailing slash in exclude allows directory match(1)' '
Expand Down
2 changes: 1 addition & 1 deletion t/t3020-ls-files-error-unmatch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ line.

touch foo bar
git update-index --add foo bar
git-commit -m "add foo bar"
git commit -m "add foo bar"

test_expect_success \
'git ls-files --error-unmatch should fail with unmatched path.' \
Expand Down
14 changes: 7 additions & 7 deletions t/t3030-merge-recursive.sh
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ test_expect_success 'merge-recursive simple' '
rm -fr [abcd] &&
git checkout -f "$c2" &&
git-merge-recursive "$c0" -- "$c2" "$c1"
git merge-recursive "$c0" -- "$c2" "$c1"
status=$?
case "$status" in
1)
Expand Down Expand Up @@ -285,7 +285,7 @@ test_expect_success 'merge-recursive remove conflict' '
rm -fr [abcd] &&
git checkout -f "$c1" &&
git-merge-recursive "$c0" -- "$c1" "$c5"
git merge-recursive "$c0" -- "$c1" "$c5"
status=$?
case "$status" in
1)
Expand Down Expand Up @@ -317,7 +317,7 @@ test_expect_success 'merge-recursive d/f simple' '
git reset --hard &&
git checkout -f "$c1" &&
git-merge-recursive "$c0" -- "$c1" "$c3"
git merge-recursive "$c0" -- "$c1" "$c3"
'

test_expect_success 'merge-recursive result' '
Expand All @@ -339,7 +339,7 @@ test_expect_success 'merge-recursive d/f conflict' '
git reset --hard &&
git checkout -f "$c1" &&
git-merge-recursive "$c0" -- "$c1" "$c4"
git merge-recursive "$c0" -- "$c1" "$c4"
status=$?
case "$status" in
1)
Expand Down Expand Up @@ -373,7 +373,7 @@ test_expect_success 'merge-recursive d/f conflict the other way' '
git reset --hard &&
git checkout -f "$c4" &&
git-merge-recursive "$c0" -- "$c4" "$c1"
git merge-recursive "$c0" -- "$c4" "$c1"
status=$?
case "$status" in
1)
Expand Down Expand Up @@ -407,7 +407,7 @@ test_expect_success 'merge-recursive d/f conflict' '
git reset --hard &&
git checkout -f "$c1" &&
git-merge-recursive "$c0" -- "$c1" "$c6"
git merge-recursive "$c0" -- "$c1" "$c6"
status=$?
case "$status" in
1)
Expand Down Expand Up @@ -441,7 +441,7 @@ test_expect_success 'merge-recursive d/f conflict' '
git reset --hard &&
git checkout -f "$c6" &&
git-merge-recursive "$c0" -- "$c6" "$c1"
git merge-recursive "$c0" -- "$c6" "$c1"
status=$?
case "$status" in
1)
Expand Down
Loading

0 comments on commit 0cb0e14

Please sign in to comment.