Skip to content

Commit

Permalink
tests: use "git xyzzy" form (t7200 - t9001)
Browse files Browse the repository at this point in the history
Converts tests between t7201-t9001.

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 d592b31 commit 47a528a
Show file tree
Hide file tree
Showing 18 changed files with 99 additions and 99 deletions.
2 changes: 1 addition & 1 deletion t/t7201-co.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# 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.
Test switching across them.
Expand Down
72 changes: 36 additions & 36 deletions t/t7300-clean.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Copyright (c) 2007 Michael Spang
#

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

. ./test-lib.sh

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

test_expect_success 'git-clean' '
test_expect_success 'git clean' '
mkdir -p build docs &&
touch a.out src/part3.c docs/manual.txt obj.o build/lib.so &&
git-clean &&
git clean &&
test -f Makefile &&
test -f README &&
test -f src/part1.c &&
Expand All @@ -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 &&
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 README &&
test -f src/part1.c &&
Expand All @@ -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 &&
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 README &&
test -f src/part1.c &&
Expand All @@ -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 &&
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 README &&
test -f src/part1.c &&
Expand All @@ -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 &&
touch a.out src/part3.c docs/manual.txt obj.o build/lib.so &&
Expand All @@ -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 &&
touch a.out src/part3.c docs/manual.txt obj.o build/lib.so &&
Expand All @@ -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 &&
touch a.out src/part3.c docs/manual.txt obj.o build/lib.so &&
Expand All @@ -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 &&
touch a.out src/part3.c docs/manual.txt obj.o build/lib.so &&
Expand All @@ -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 &&
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 README &&
test -f src/part1.c &&
Expand All @@ -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 &&
touch a.out src/part3.c docs/manual.txt obj.o build/lib.so &&
ln -s docs/manual.txt src/part4.c
git-clean &&
git clean &&
test -f Makefile &&
test -f README &&
test -f src/part1.c &&
Expand All @@ -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 &&
git-clean "*.clean" &&
git clean "*.clean" &&
test -f Makefile &&
test -f README &&
test -f src/part1.c &&
Expand All @@ -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 &&
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 README &&
test -f src/part1.c &&
Expand All @@ -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 &&
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 README &&
test -f src/part1.c &&
Expand All @@ -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 &&
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 README &&
test -f src/part1.c &&
Expand All @@ -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 &&
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 README &&
test -f src/part1.c &&
Expand All @@ -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 &&
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 README &&
test -f src/part1.c &&
Expand All @@ -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 &&
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 README &&
test -f src/part1.c &&
Expand All @@ -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 &&
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 README &&
test -f src/part1.c &&
Expand Down Expand Up @@ -331,7 +331,7 @@ test_expect_success 'clean.requireForce and -n' '
mkdir -p build docs &&
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 README &&
test -f src/part1.c &&
Expand All @@ -346,7 +346,7 @@ test_expect_success 'clean.requireForce and -n' '

test_expect_success 'clean.requireForce and -f' '
git-clean -f &&
git clean -f &&
test -f README &&
test -f src/part1.c &&
test -f src/part2.c &&
Expand Down
Loading

0 comments on commit 47a528a

Please sign in to comment.