Browse Source

tests: use "git xyzzy" form (t7200 - t9001)

Converts tests between t7201-t9001.

Signed-off-by: Nanako Shiraishi <nanako3@lavabit.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Nanako Shiraishi 17 years ago committed by Junio C Hamano
parent
commit
47a528ad24
  1. 2
      t/t7201-co.sh
  2. 72
      t/t7300-clean.sh
  3. 48
      t/t7400-submodule-basic.sh
  4. 2
      t/t7401-submodule-summary.sh
  5. 2
      t/t7500-commit.sh
  6. 48
      t/t7501-commit.sh
  7. 2
      t/t7502-status.sh
  8. 2
      t/t7505-prepare-commit-msg-hook.sh
  9. 2
      t/t7506-status-submodule.sh
  10. 2
      t/t7600-merge.sh
  11. 2
      t/t7601-merge-pull-config.sh
  12. 2
      t/t7602-merge-octopus-many.sh
  13. 2
      t/t7603-merge-reduce-heads.sh
  14. 2
      t/t7604-merge-custom-message.sh
  15. 2
      t/t7605-merge-resolve.sh
  16. 2
      t/t7610-mergetool.sh
  17. 2
      t/t7701-repack-unpack-unreachable.sh
  18. 2
      t/t9001-send-email.sh

2
t/t7201-co.sh

@ -3,7 +3,7 @@
# Copyright (c) 2006 Junio C Hamano # Copyright (c) 2006 Junio C Hamano
# #


test_description='git-checkout tests. test_description='git checkout tests.


Creates master, forks renamer and side branches from it. Creates master, forks renamer and side branches from it.
Test switching across them. Test switching across them.

72
t/t7300-clean.sh

@ -3,7 +3,7 @@
# Copyright (c) 2007 Michael Spang # Copyright (c) 2007 Michael Spang
# #


test_description='git-clean basic tests' test_description='git clean basic tests'


. ./test-lib.sh . ./test-lib.sh


@ -16,17 +16,17 @@ test_expect_success 'setup' '
echo build >.gitignore && echo build >.gitignore &&
echo \*.o >>.gitignore && echo \*.o >>.gitignore &&
git add . && git add . &&
git-commit -m setup && git commit -m setup &&
touch src/part2.c README && touch src/part2.c README &&
git add . git add .


' '


test_expect_success 'git-clean' ' test_expect_success 'git clean' '


mkdir -p build docs && mkdir -p build docs &&
touch a.out src/part3.c docs/manual.txt obj.o build/lib.so && touch a.out src/part3.c docs/manual.txt obj.o build/lib.so &&
git-clean && git clean &&
test -f Makefile && test -f Makefile &&
test -f README && test -f README &&
test -f src/part1.c && test -f src/part1.c &&
@ -39,11 +39,11 @@ test_expect_success 'git-clean' '


' '


test_expect_success 'git-clean src/' ' test_expect_success 'git clean src/' '


mkdir -p build docs && mkdir -p build docs &&
touch a.out src/part3.c docs/manual.txt obj.o build/lib.so && touch a.out src/part3.c docs/manual.txt obj.o build/lib.so &&
git-clean src/ && git clean src/ &&
test -f Makefile && test -f Makefile &&
test -f README && test -f README &&
test -f src/part1.c && test -f src/part1.c &&
@ -56,11 +56,11 @@ test_expect_success 'git-clean src/' '


' '


test_expect_success 'git-clean src/ src/' ' test_expect_success 'git clean src/ src/' '


mkdir -p build docs && mkdir -p build docs &&
touch a.out src/part3.c docs/manual.txt obj.o build/lib.so && touch a.out src/part3.c docs/manual.txt obj.o build/lib.so &&
git-clean src/ src/ && git clean src/ src/ &&
test -f Makefile && test -f Makefile &&
test -f README && test -f README &&
test -f src/part1.c && test -f src/part1.c &&
@ -73,11 +73,11 @@ test_expect_success 'git-clean src/ src/' '


' '


test_expect_success 'git-clean with prefix' ' test_expect_success 'git clean with prefix' '


mkdir -p build docs src/test && mkdir -p build docs src/test &&
touch a.out src/part3.c docs/manual.txt obj.o build/lib.so src/test/1.c && touch a.out src/part3.c docs/manual.txt obj.o build/lib.so src/test/1.c &&
(cd src/ && git-clean) && (cd src/ && git clean) &&
test -f Makefile && test -f Makefile &&
test -f README && test -f README &&
test -f src/part1.c && test -f src/part1.c &&
@ -91,7 +91,7 @@ test_expect_success 'git-clean with prefix' '


' '


test_expect_success 'git-clean with relative prefix' ' test_expect_success 'git clean with relative prefix' '


mkdir -p build docs && mkdir -p build docs &&
touch a.out src/part3.c docs/manual.txt obj.o build/lib.so && touch a.out src/part3.c docs/manual.txt obj.o build/lib.so &&
@ -106,7 +106,7 @@ test_expect_success 'git-clean with relative prefix' '
} }
' '


test_expect_success 'git-clean with absolute path' ' test_expect_success 'git clean with absolute path' '


mkdir -p build docs && mkdir -p build docs &&
touch a.out src/part3.c docs/manual.txt obj.o build/lib.so && touch a.out src/part3.c docs/manual.txt obj.o build/lib.so &&
@ -121,7 +121,7 @@ test_expect_success 'git-clean with absolute path' '
} }
' '


test_expect_success 'git-clean with out of work tree relative path' ' test_expect_success 'git clean with out of work tree relative path' '


mkdir -p build docs && mkdir -p build docs &&
touch a.out src/part3.c docs/manual.txt obj.o build/lib.so && touch a.out src/part3.c docs/manual.txt obj.o build/lib.so &&
@ -131,7 +131,7 @@ test_expect_success 'git-clean with out of work tree relative path' '
) )
' '


test_expect_success 'git-clean with out of work tree absolute path' ' test_expect_success 'git clean with out of work tree absolute path' '


mkdir -p build docs && mkdir -p build docs &&
touch a.out src/part3.c docs/manual.txt obj.o build/lib.so && touch a.out src/part3.c docs/manual.txt obj.o build/lib.so &&
@ -142,11 +142,11 @@ test_expect_success 'git-clean with out of work tree absolute path' '
) )
' '


test_expect_success 'git-clean -d with prefix and path' ' test_expect_success 'git clean -d with prefix and path' '


mkdir -p build docs src/feature && mkdir -p build docs src/feature &&
touch a.out src/part3.c src/feature/file.c docs/manual.txt obj.o build/lib.so && touch a.out src/part3.c src/feature/file.c docs/manual.txt obj.o build/lib.so &&
(cd src/ && git-clean -d feature/) && (cd src/ && git clean -d feature/) &&
test -f Makefile && test -f Makefile &&
test -f README && test -f README &&
test -f src/part1.c && test -f src/part1.c &&
@ -160,12 +160,12 @@ test_expect_success 'git-clean -d with prefix and path' '


' '


test_expect_success 'git-clean symbolic link' ' test_expect_success 'git clean symbolic link' '


mkdir -p build docs && mkdir -p build docs &&
touch a.out src/part3.c docs/manual.txt obj.o build/lib.so && touch a.out src/part3.c docs/manual.txt obj.o build/lib.so &&
ln -s docs/manual.txt src/part4.c ln -s docs/manual.txt src/part4.c
git-clean && git clean &&
test -f Makefile && test -f Makefile &&
test -f README && test -f README &&
test -f src/part1.c && test -f src/part1.c &&
@ -179,10 +179,10 @@ test_expect_success 'git-clean symbolic link' '


' '


test_expect_success 'git-clean with wildcard' ' test_expect_success 'git clean with wildcard' '


touch a.clean b.clean other.c && touch a.clean b.clean other.c &&
git-clean "*.clean" && git clean "*.clean" &&
test -f Makefile && test -f Makefile &&
test -f README && test -f README &&
test -f src/part1.c && test -f src/part1.c &&
@ -193,11 +193,11 @@ test_expect_success 'git-clean with wildcard' '


' '


test_expect_success 'git-clean -n' ' test_expect_success 'git clean -n' '


mkdir -p build docs && mkdir -p build docs &&
touch a.out src/part3.c docs/manual.txt obj.o build/lib.so && touch a.out src/part3.c docs/manual.txt obj.o build/lib.so &&
git-clean -n && git clean -n &&
test -f Makefile && test -f Makefile &&
test -f README && test -f README &&
test -f src/part1.c && test -f src/part1.c &&
@ -210,11 +210,11 @@ test_expect_success 'git-clean -n' '


' '


test_expect_success 'git-clean -d' ' test_expect_success 'git clean -d' '


mkdir -p build docs && mkdir -p build docs &&
touch a.out src/part3.c docs/manual.txt obj.o build/lib.so && touch a.out src/part3.c docs/manual.txt obj.o build/lib.so &&
git-clean -d && git clean -d &&
test -f Makefile && test -f Makefile &&
test -f README && test -f README &&
test -f src/part1.c && test -f src/part1.c &&
@ -227,11 +227,11 @@ test_expect_success 'git-clean -d' '


' '


test_expect_success 'git-clean -d src/ examples/' ' test_expect_success 'git clean -d src/ examples/' '


mkdir -p build docs examples && mkdir -p build docs examples &&
touch a.out src/part3.c docs/manual.txt obj.o build/lib.so examples/1.c && touch a.out src/part3.c docs/manual.txt obj.o build/lib.so examples/1.c &&
git-clean -d src/ examples/ && git clean -d src/ examples/ &&
test -f Makefile && test -f Makefile &&
test -f README && test -f README &&
test -f src/part1.c && test -f src/part1.c &&
@ -245,11 +245,11 @@ test_expect_success 'git-clean -d src/ examples/' '


' '


test_expect_success 'git-clean -x' ' test_expect_success 'git clean -x' '


mkdir -p build docs && mkdir -p build docs &&
touch a.out src/part3.c docs/manual.txt obj.o build/lib.so && touch a.out src/part3.c docs/manual.txt obj.o build/lib.so &&
git-clean -x && git clean -x &&
test -f Makefile && test -f Makefile &&
test -f README && test -f README &&
test -f src/part1.c && test -f src/part1.c &&
@ -262,11 +262,11 @@ test_expect_success 'git-clean -x' '


' '


test_expect_success 'git-clean -d -x' ' test_expect_success 'git clean -d -x' '


mkdir -p build docs && mkdir -p build docs &&
touch a.out src/part3.c docs/manual.txt obj.o build/lib.so && touch a.out src/part3.c docs/manual.txt obj.o build/lib.so &&
git-clean -d -x && git clean -d -x &&
test -f Makefile && test -f Makefile &&
test -f README && test -f README &&
test -f src/part1.c && test -f src/part1.c &&
@ -279,11 +279,11 @@ test_expect_success 'git-clean -d -x' '


' '


test_expect_success 'git-clean -X' ' test_expect_success 'git clean -X' '


mkdir -p build docs && mkdir -p build docs &&
touch a.out src/part3.c docs/manual.txt obj.o build/lib.so && touch a.out src/part3.c docs/manual.txt obj.o build/lib.so &&
git-clean -X && git clean -X &&
test -f Makefile && test -f Makefile &&
test -f README && test -f README &&
test -f src/part1.c && test -f src/part1.c &&
@ -296,11 +296,11 @@ test_expect_success 'git-clean -X' '


' '


test_expect_success 'git-clean -d -X' ' test_expect_success 'git clean -d -X' '


mkdir -p build docs && mkdir -p build docs &&
touch a.out src/part3.c docs/manual.txt obj.o build/lib.so && touch a.out src/part3.c docs/manual.txt obj.o build/lib.so &&
git-clean -d -X && git clean -d -X &&
test -f Makefile && test -f Makefile &&
test -f README && test -f README &&
test -f src/part1.c && test -f src/part1.c &&
@ -331,7 +331,7 @@ test_expect_success 'clean.requireForce and -n' '


mkdir -p build docs && mkdir -p build docs &&
touch a.out src/part3.c docs/manual.txt obj.o build/lib.so && touch a.out src/part3.c docs/manual.txt obj.o build/lib.so &&
git-clean -n && git clean -n &&
test -f Makefile && test -f Makefile &&
test -f README && test -f README &&
test -f src/part1.c && test -f src/part1.c &&
@ -346,7 +346,7 @@ test_expect_success 'clean.requireForce and -n' '


test_expect_success 'clean.requireForce and -f' ' test_expect_success 'clean.requireForce and -f' '


git-clean -f && git clean -f &&
test -f README && test -f README &&
test -f src/part1.c && test -f src/part1.c &&
test -f src/part2.c && test -f src/part2.c &&

48
t/t7400-submodule-basic.sh

@ -6,7 +6,7 @@
test_description='Basic porcelain support for submodules test_description='Basic porcelain support for submodules


This test tries to verify basic sanity of the init, update and status This test tries to verify basic sanity of the init, update and status
subcommands of git-submodule. subcommands of git submodule.
' '


. ./test-lib.sh . ./test-lib.sh
@ -22,16 +22,16 @@ subcommands of git-submodule.
# #
test_expect_success 'Prepare submodule testing' ' test_expect_success 'Prepare submodule testing' '
: > t && : > t &&
git-add t && git add t &&
git-commit -m "initial commit" && git commit -m "initial commit" &&
git branch initial HEAD && git branch initial HEAD &&
mkdir init && mkdir init &&
cd init && cd init &&
git init && git init &&
echo a >a && echo a >a &&
git add a && git add a &&
git-commit -m "submodule commit 1" && git commit -m "submodule commit 1" &&
git-tag -a -m "rev-1" rev-1 && git tag -a -m "rev-1" rev-1 &&
rev1=$(git rev-parse HEAD) && rev1=$(git rev-parse HEAD) &&
if test -z "$rev1" if test -z "$rev1"
then then
@ -42,13 +42,13 @@ test_expect_success 'Prepare submodule testing' '
echo a >a && echo a >a &&
echo z >z && echo z >z &&
git add a init z && git add a init z &&
git-commit -m "super commit 1" && git commit -m "super commit 1" &&
mv init .subrepo && mv init .subrepo &&
GIT_CONFIG=.gitmodules git config submodule.example.url git://example.com/init.git GIT_CONFIG=.gitmodules git config submodule.example.url git://example.com/init.git
' '


test_expect_success 'status should fail for unmapped paths' ' test_expect_success 'status should fail for unmapped paths' '
if git-submodule status if git submodule status
then then
echo "[OOPS] submodule status succeeded" echo "[OOPS] submodule status succeeded"
false false
@ -60,16 +60,16 @@ test_expect_success 'status should fail for unmapped paths' '
' '


test_expect_success 'status should only print one line' ' test_expect_success 'status should only print one line' '
lines=$(git-submodule status | wc -l) && lines=$(git submodule status | wc -l) &&
test $lines = 1 test $lines = 1
' '


test_expect_success 'status should initially be "missing"' ' test_expect_success 'status should initially be "missing"' '
git-submodule status | grep "^-$rev1" git submodule status | grep "^-$rev1"
' '


test_expect_success 'init should register submodule url in .git/config' ' test_expect_success 'init should register submodule url in .git/config' '
git-submodule init && git submodule init &&
url=$(git config submodule.example.url) && url=$(git config submodule.example.url) &&
if test "$url" != "git://example.com/init.git" if test "$url" != "git://example.com/init.git"
then then
@ -84,7 +84,7 @@ test_expect_success 'init should register submodule url in .git/config' '


test_expect_success 'update should fail when path is used by a file' ' test_expect_success 'update should fail when path is used by a file' '
echo "hello" >init && echo "hello" >init &&
if git-submodule update if git submodule update
then then
echo "[OOPS] update should have failed" echo "[OOPS] update should have failed"
false false
@ -100,7 +100,7 @@ test_expect_success 'update should fail when path is used by a file' '
test_expect_success 'update should fail when path is used by a nonempty directory' ' test_expect_success 'update should fail when path is used by a nonempty directory' '
mkdir init && mkdir init &&
echo "hello" >init/a && echo "hello" >init/a &&
if git-submodule update if git submodule update
then then
echo "[OOPS] update should have failed" echo "[OOPS] update should have failed"
false false
@ -116,7 +116,7 @@ test_expect_success 'update should fail when path is used by a nonempty director
test_expect_success 'update should work when path is an empty dir' ' test_expect_success 'update should work when path is an empty dir' '
rm -rf init && rm -rf init &&
mkdir init && mkdir init &&
git-submodule update && git submodule update &&
head=$(cd init && git rev-parse HEAD) && head=$(cd init && git rev-parse HEAD) &&
if test -z "$head" if test -z "$head"
then then
@ -130,14 +130,14 @@ test_expect_success 'update should work when path is an empty dir' '
' '


test_expect_success 'status should be "up-to-date" after update' ' test_expect_success 'status should be "up-to-date" after update' '
git-submodule status | grep "^ $rev1" git submodule status | grep "^ $rev1"
' '


test_expect_success 'status should be "modified" after submodule commit' ' test_expect_success 'status should be "modified" after submodule commit' '
cd init && cd init &&
echo b >b && echo b >b &&
git add b && git add b &&
git-commit -m "submodule commit 2" && git commit -m "submodule commit 2" &&
rev2=$(git rev-parse HEAD) && rev2=$(git rev-parse HEAD) &&
cd .. && cd .. &&
if test -z "$rev2" if test -z "$rev2"
@ -145,19 +145,19 @@ test_expect_success 'status should be "modified" after submodule commit' '
echo "[OOPS] submodule git rev-parse returned nothing" echo "[OOPS] submodule git rev-parse returned nothing"
false false
fi && fi &&
git-submodule status | grep "^+$rev2" git submodule status | grep "^+$rev2"
' '


test_expect_success 'the --cached sha1 should be rev1' ' test_expect_success 'the --cached sha1 should be rev1' '
git-submodule --cached status | grep "^+$rev1" git submodule --cached status | grep "^+$rev1"
' '


test_expect_success 'git diff should report the SHA1 of the new submodule commit' ' test_expect_success 'git diff should report the SHA1 of the new submodule commit' '
git-diff | grep "^+Subproject commit $rev2" git diff | grep "^+Subproject commit $rev2"
' '


test_expect_success 'update should checkout rev1' ' test_expect_success 'update should checkout rev1' '
git-submodule update init && git submodule update init &&
head=$(cd init && git rev-parse HEAD) && head=$(cd init && git rev-parse HEAD) &&
if test -z "$head" if test -z "$head"
then then
@ -171,12 +171,12 @@ test_expect_success 'update should checkout rev1' '
' '


test_expect_success 'status should be "up-to-date" after update' ' test_expect_success 'status should be "up-to-date" after update' '
git-submodule status | grep "^ $rev1" git submodule status | grep "^ $rev1"
' '


test_expect_success 'checkout superproject with subproject already present' ' test_expect_success 'checkout superproject with subproject already present' '
git-checkout initial && git checkout initial &&
git-checkout master git checkout master
' '


test_expect_success 'apply submodule diff' ' test_expect_success 'apply submodule diff' '
@ -188,8 +188,8 @@ test_expect_success 'apply submodule diff' '
git commit -m "change subproject" git commit -m "change subproject"
) && ) &&
git update-index --add init && git update-index --add init &&
git-commit -m "change init" && git commit -m "change init" &&
git-format-patch -1 --stdout >P.diff && git format-patch -1 --stdout >P.diff &&
git checkout second && git checkout second &&
git apply --index P.diff && git apply --index P.diff &&
D=$(git diff --cached master) && D=$(git diff --cached master) &&

2
t/t7401-submodule-summary.sh

@ -5,7 +5,7 @@


test_description='Summary support for submodules test_description='Summary support for submodules


This test tries to verify the sanity of summary subcommand of git-submodule. This test tries to verify the sanity of summary subcommand of git submodule.
' '


. ./test-lib.sh . ./test-lib.sh

2
t/t7500-commit.sh

@ -3,7 +3,7 @@
# Copyright (c) 2007 Steven Grimm # Copyright (c) 2007 Steven Grimm
# #


test_description='git-commit test_description='git commit


Tests for selected commit options.' Tests for selected commit options.'



48
t/t7501-commit.sh

@ -6,7 +6,7 @@
# FIXME: Test the various index usages, -i and -o, test reflog, # FIXME: Test the various index usages, -i and -o, test reflog,
# signoff # signoff


test_description='git-commit' test_description='git commit'
. ./test-lib.sh . ./test-lib.sh


test_tick test_tick
@ -14,52 +14,52 @@ test_tick
test_expect_success \ test_expect_success \
"initial status" \ "initial status" \
"echo 'bongo bongo' >file && "echo 'bongo bongo' >file &&
git-add file && \ git add file && \
git-status | grep 'Initial commit'" git status | grep 'Initial commit'"


test_expect_success \ test_expect_success \
"fail initial amend" \ "fail initial amend" \
"test_must_fail git-commit --amend" "test_must_fail git commit --amend"


test_expect_success \ test_expect_success \
"initial commit" \ "initial commit" \
"git-commit -m initial" "git commit -m initial"


test_expect_success \ test_expect_success \
"invalid options 1" \ "invalid options 1" \
"test_must_fail git-commit -m foo -m bar -F file" "test_must_fail git commit -m foo -m bar -F file"


test_expect_success \ test_expect_success \
"invalid options 2" \ "invalid options 2" \
"test_must_fail git-commit -C HEAD -m illegal" "test_must_fail git commit -C HEAD -m illegal"


test_expect_success \ test_expect_success \
"using paths with -a" \ "using paths with -a" \
"echo King of the bongo >file && "echo King of the bongo >file &&
test_must_fail git-commit -m foo -a file" test_must_fail git commit -m foo -a file"


test_expect_success \ test_expect_success \
"using paths with --interactive" \ "using paths with --interactive" \
"echo bong-o-bong >file && "echo bong-o-bong >file &&
! (echo 7 | git-commit -m foo --interactive file)" ! (echo 7 | git commit -m foo --interactive file)"


test_expect_success \ test_expect_success \
"using invalid commit with -C" \ "using invalid commit with -C" \
"test_must_fail git-commit -C bogus" "test_must_fail git commit -C bogus"


test_expect_success \ test_expect_success \
"testing nothing to commit" \ "testing nothing to commit" \
"test_must_fail git-commit -m initial" "test_must_fail git commit -m initial"


test_expect_success \ test_expect_success \
"next commit" \ "next commit" \
"echo 'bongo bongo bongo' >file \ "echo 'bongo bongo bongo' >file \
git-commit -m next -a" git commit -m next -a"


test_expect_success \ test_expect_success \
"commit message from non-existing file" \ "commit message from non-existing file" \
"echo 'more bongo: bongo bongo bongo bongo' >file && \ "echo 'more bongo: bongo bongo bongo bongo' >file && \
test_must_fail git-commit -F gah -a" test_must_fail git commit -F gah -a"


# Empty except stray tabs and spaces on a few lines. # Empty except stray tabs and spaces on a few lines.
sed -e 's/@$//' >msg <<EOF sed -e 's/@$//' >msg <<EOF
@ -70,12 +70,12 @@ Signed-off-by: hula
EOF EOF
test_expect_success \ test_expect_success \
"empty commit message" \ "empty commit message" \
"test_must_fail git-commit -F msg -a" "test_must_fail git commit -F msg -a"


test_expect_success \ test_expect_success \
"commit message from file" \ "commit message from file" \
"echo 'this is the commit message, coming from a file' >msg && \ "echo 'this is the commit message, coming from a file' >msg && \
git-commit -F msg -a" git commit -F msg -a"


cat >editor <<\EOF cat >editor <<\EOF
#!/bin/sh #!/bin/sh
@ -86,16 +86,16 @@ chmod 755 editor


test_expect_success \ test_expect_success \
"amend commit" \ "amend commit" \
"VISUAL=./editor git-commit --amend" "VISUAL=./editor git commit --amend"


test_expect_success \ test_expect_success \
"passing -m and -F" \ "passing -m and -F" \
"echo 'enough with the bongos' >file && \ "echo 'enough with the bongos' >file && \
test_must_fail git-commit -F msg -m amending ." test_must_fail git commit -F msg -m amending ."


test_expect_success \ test_expect_success \
"using message from other commit" \ "using message from other commit" \
"git-commit -C HEAD^ ." "git commit -C HEAD^ ."


cat >editor <<\EOF cat >editor <<\EOF
#!/bin/sh #!/bin/sh
@ -107,25 +107,25 @@ chmod 755 editor
test_expect_success \ test_expect_success \
"editing message from other commit" \ "editing message from other commit" \
"echo 'hula hula' >file && \ "echo 'hula hula' >file && \
VISUAL=./editor git-commit -c HEAD^ -a" VISUAL=./editor git commit -c HEAD^ -a"


test_expect_success \ test_expect_success \
"message from stdin" \ "message from stdin" \
"echo 'silly new contents' >file && \ "echo 'silly new contents' >file && \
echo commit message from stdin | git-commit -F - -a" echo commit message from stdin | git commit -F - -a"


test_expect_success \ test_expect_success \
"overriding author from command line" \ "overriding author from command line" \
"echo 'gak' >file && \ "echo 'gak' >file && \
git-commit -m 'author' --author 'Rubber Duck <rduck@convoy.org>' -a" git commit -m 'author' --author 'Rubber Duck <rduck@convoy.org>' -a"


test_expect_success \ test_expect_success \
"interactive add" \ "interactive add" \
"echo 7 | git-commit --interactive | grep 'What now'" "echo 7 | git commit --interactive | grep 'What now'"


test_expect_success \ test_expect_success \
"showing committed revisions" \ "showing committed revisions" \
"git-rev-list HEAD >current" "git rev-list HEAD >current"


# We could just check the head sha1, but checking each commit makes it # We could just check the head sha1, but checking each commit makes it
# easier to isolate bugs. # easier to isolate bugs.
@ -140,7 +140,7 @@ d381ac431806e53f3dd7ac2f1ae0534f36d738b9
EOF EOF


test_expect_success \ test_expect_success \
'validate git-rev-list output.' \ 'validate git rev-list output.' \
'diff current expected' 'diff current expected'


test_expect_success 'partial commit that involves removal (1)' ' test_expect_success 'partial commit that involves removal (1)' '

2
t/t7502-status.sh

@ -3,7 +3,7 @@
# Copyright (c) 2007 Johannes E. Schindelin # Copyright (c) 2007 Johannes E. Schindelin
# #


test_description='git-status' test_description='git status'


. ./test-lib.sh . ./test-lib.sh



2
t/t7505-prepare-commit-msg-hook.sh

@ -32,7 +32,7 @@ echo "#!$SHELL_PATH" > "$HOOK"
cat >> "$HOOK" <<'EOF' cat >> "$HOOK" <<'EOF'


if test "$2" = commit; then if test "$2" = commit; then
source=$(git-rev-parse "$3") source=$(git rev-parse "$3")
else else
source=${2-default} source=${2-default}
fi fi

2
t/t7506-status-submodule.sh

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh


test_description='git-status for submodule' test_description='git status for submodule'


. ./test-lib.sh . ./test-lib.sh



2
t/t7600-merge.sh

@ -3,7 +3,7 @@
# Copyright (c) 2007 Lars Hjemli # Copyright (c) 2007 Lars Hjemli
# #


test_description='git-merge test_description='git merge


Testing basic merge operations/option parsing.' Testing basic merge operations/option parsing.'



2
t/t7601-merge-pull-config.sh

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh


test_description='git-merge test_description='git merge


Testing pull.* configuration parsing.' Testing pull.* configuration parsing.'



2
t/t7602-merge-octopus-many.sh

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh


test_description='git-merge test_description='git merge


Testing octopus merge with more than 25 refs.' Testing octopus merge with more than 25 refs.'



2
t/t7603-merge-reduce-heads.sh

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh


test_description='git-merge test_description='git merge


Testing octopus merge when reducing parents to independent branches.' Testing octopus merge when reducing parents to independent branches.'



2
t/t7604-merge-custom-message.sh

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh


test_description='git-merge test_description='git merge


Testing merge when using a custom message for the merge commit.' Testing merge when using a custom message for the merge commit.'



2
t/t7605-merge-resolve.sh

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh


test_description='git-merge test_description='git merge


Testing the resolve strategy.' Testing the resolve strategy.'



2
t/t7610-mergetool.sh

@ -3,7 +3,7 @@
# Copyright (c) 2008 Charles Bailey # Copyright (c) 2008 Charles Bailey
# #


test_description='git-mergetool test_description='git mergetool


Testing basic merge tool invocation' Testing basic merge tool invocation'



2
t/t7701-repack-unpack-unreachable.sh

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh


test_description='git-repack works correctly' test_description='git repack works correctly'


. ./test-lib.sh . ./test-lib.sh



2
t/t9001-send-email.sh

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh


test_description='git-send-email' test_description='git send-email'
. ./test-lib.sh . ./test-lib.sh


PROG='git send-email' PROG='git send-email'

Loading…
Cancel
Save