3
3
# Copyright (c) 2007 Michael Spang
4
4
#
5
5
6
- test_description=' git- clean basic tests'
6
+ test_description=' git clean basic tests'
7
7
8
8
. ./test-lib.sh
9
9
@@ -16,17 +16,17 @@ test_expect_success 'setup' '
16
16
echo build >.gitignore &&
17
17
echo \*.o >>.gitignore &&
18
18
git add . &&
19
- git- commit -m setup &&
19
+ git commit -m setup &&
20
20
touch src/part2.c README &&
21
21
git add .
22
22
23
23
'
24
24
25
- test_expect_success ' git- clean' '
25
+ test_expect_success ' git clean' '
26
26
27
27
mkdir -p build docs &&
28
28
touch a.out src/part3.c docs/manual.txt obj.o build/lib.so &&
29
- git- clean &&
29
+ git clean &&
30
30
test -f Makefile &&
31
31
test -f README &&
32
32
test -f src/part1.c &&
@@ -39,11 +39,11 @@ test_expect_success 'git-clean' '
39
39
40
40
'
41
41
42
- test_expect_success ' git- clean src/' '
42
+ test_expect_success ' git clean src/' '
43
43
44
44
mkdir -p build docs &&
45
45
touch a.out src/part3.c docs/manual.txt obj.o build/lib.so &&
46
- git- clean src/ &&
46
+ git clean src/ &&
47
47
test -f Makefile &&
48
48
test -f README &&
49
49
test -f src/part1.c &&
@@ -56,11 +56,11 @@ test_expect_success 'git-clean src/' '
56
56
57
57
'
58
58
59
- test_expect_success ' git- clean src/ src/' '
59
+ test_expect_success ' git clean src/ src/' '
60
60
61
61
mkdir -p build docs &&
62
62
touch a.out src/part3.c docs/manual.txt obj.o build/lib.so &&
63
- git- clean src/ src/ &&
63
+ git clean src/ src/ &&
64
64
test -f Makefile &&
65
65
test -f README &&
66
66
test -f src/part1.c &&
@@ -73,11 +73,11 @@ test_expect_success 'git-clean src/ src/' '
73
73
74
74
'
75
75
76
- test_expect_success ' git- clean with prefix' '
76
+ test_expect_success ' git clean with prefix' '
77
77
78
78
mkdir -p build docs src/test &&
79
79
touch a.out src/part3.c docs/manual.txt obj.o build/lib.so src/test/1.c &&
80
- (cd src/ && git- clean) &&
80
+ (cd src/ && git clean) &&
81
81
test -f Makefile &&
82
82
test -f README &&
83
83
test -f src/part1.c &&
@@ -91,7 +91,7 @@ test_expect_success 'git-clean with prefix' '
91
91
92
92
'
93
93
94
- test_expect_success ' git- clean with relative prefix' '
94
+ test_expect_success ' git clean with relative prefix' '
95
95
96
96
mkdir -p build docs &&
97
97
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' '
106
106
}
107
107
'
108
108
109
- test_expect_success ' git- clean with absolute path' '
109
+ test_expect_success ' git clean with absolute path' '
110
110
111
111
mkdir -p build docs &&
112
112
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' '
121
121
}
122
122
'
123
123
124
- test_expect_success ' git- clean with out of work tree relative path' '
124
+ test_expect_success ' git clean with out of work tree relative path' '
125
125
126
126
mkdir -p build docs &&
127
127
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' '
131
131
)
132
132
'
133
133
134
- test_expect_success ' git- clean with out of work tree absolute path' '
134
+ test_expect_success ' git clean with out of work tree absolute path' '
135
135
136
136
mkdir -p build docs &&
137
137
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' '
142
142
)
143
143
'
144
144
145
- test_expect_success ' git- clean -d with prefix and path' '
145
+ test_expect_success ' git clean -d with prefix and path' '
146
146
147
147
mkdir -p build docs src/feature &&
148
148
touch a.out src/part3.c src/feature/file.c docs/manual.txt obj.o build/lib.so &&
149
- (cd src/ && git- clean -d feature/) &&
149
+ (cd src/ && git clean -d feature/) &&
150
150
test -f Makefile &&
151
151
test -f README &&
152
152
test -f src/part1.c &&
@@ -160,12 +160,12 @@ test_expect_success 'git-clean -d with prefix and path' '
160
160
161
161
'
162
162
163
- test_expect_success ' git- clean symbolic link' '
163
+ test_expect_success ' git clean symbolic link' '
164
164
165
165
mkdir -p build docs &&
166
166
touch a.out src/part3.c docs/manual.txt obj.o build/lib.so &&
167
167
ln -s docs/manual.txt src/part4.c
168
- git- clean &&
168
+ git clean &&
169
169
test -f Makefile &&
170
170
test -f README &&
171
171
test -f src/part1.c &&
@@ -179,10 +179,10 @@ test_expect_success 'git-clean symbolic link' '
179
179
180
180
'
181
181
182
- test_expect_success ' git- clean with wildcard' '
182
+ test_expect_success ' git clean with wildcard' '
183
183
184
184
touch a.clean b.clean other.c &&
185
- git- clean "*.clean" &&
185
+ git clean "*.clean" &&
186
186
test -f Makefile &&
187
187
test -f README &&
188
188
test -f src/part1.c &&
@@ -193,11 +193,11 @@ test_expect_success 'git-clean with wildcard' '
193
193
194
194
'
195
195
196
- test_expect_success ' git- clean -n' '
196
+ test_expect_success ' git clean -n' '
197
197
198
198
mkdir -p build docs &&
199
199
touch a.out src/part3.c docs/manual.txt obj.o build/lib.so &&
200
- git- clean -n &&
200
+ git clean -n &&
201
201
test -f Makefile &&
202
202
test -f README &&
203
203
test -f src/part1.c &&
@@ -210,11 +210,11 @@ test_expect_success 'git-clean -n' '
210
210
211
211
'
212
212
213
- test_expect_success ' git- clean -d' '
213
+ test_expect_success ' git clean -d' '
214
214
215
215
mkdir -p build docs &&
216
216
touch a.out src/part3.c docs/manual.txt obj.o build/lib.so &&
217
- git- clean -d &&
217
+ git clean -d &&
218
218
test -f Makefile &&
219
219
test -f README &&
220
220
test -f src/part1.c &&
@@ -227,11 +227,11 @@ test_expect_success 'git-clean -d' '
227
227
228
228
'
229
229
230
- test_expect_success ' git- clean -d src/ examples/' '
230
+ test_expect_success ' git clean -d src/ examples/' '
231
231
232
232
mkdir -p build docs examples &&
233
233
touch a.out src/part3.c docs/manual.txt obj.o build/lib.so examples/1.c &&
234
- git- clean -d src/ examples/ &&
234
+ git clean -d src/ examples/ &&
235
235
test -f Makefile &&
236
236
test -f README &&
237
237
test -f src/part1.c &&
@@ -245,11 +245,11 @@ test_expect_success 'git-clean -d src/ examples/' '
245
245
246
246
'
247
247
248
- test_expect_success ' git- clean -x' '
248
+ test_expect_success ' git clean -x' '
249
249
250
250
mkdir -p build docs &&
251
251
touch a.out src/part3.c docs/manual.txt obj.o build/lib.so &&
252
- git- clean -x &&
252
+ git clean -x &&
253
253
test -f Makefile &&
254
254
test -f README &&
255
255
test -f src/part1.c &&
@@ -262,11 +262,11 @@ test_expect_success 'git-clean -x' '
262
262
263
263
'
264
264
265
- test_expect_success ' git- clean -d -x' '
265
+ test_expect_success ' git clean -d -x' '
266
266
267
267
mkdir -p build docs &&
268
268
touch a.out src/part3.c docs/manual.txt obj.o build/lib.so &&
269
- git- clean -d -x &&
269
+ git clean -d -x &&
270
270
test -f Makefile &&
271
271
test -f README &&
272
272
test -f src/part1.c &&
@@ -279,11 +279,11 @@ test_expect_success 'git-clean -d -x' '
279
279
280
280
'
281
281
282
- test_expect_success ' git- clean -X' '
282
+ test_expect_success ' git clean -X' '
283
283
284
284
mkdir -p build docs &&
285
285
touch a.out src/part3.c docs/manual.txt obj.o build/lib.so &&
286
- git- clean -X &&
286
+ git clean -X &&
287
287
test -f Makefile &&
288
288
test -f README &&
289
289
test -f src/part1.c &&
@@ -296,11 +296,11 @@ test_expect_success 'git-clean -X' '
296
296
297
297
'
298
298
299
- test_expect_success ' git- clean -d -X' '
299
+ test_expect_success ' git clean -d -X' '
300
300
301
301
mkdir -p build docs &&
302
302
touch a.out src/part3.c docs/manual.txt obj.o build/lib.so &&
303
- git- clean -d -X &&
303
+ git clean -d -X &&
304
304
test -f Makefile &&
305
305
test -f README &&
306
306
test -f src/part1.c &&
@@ -331,7 +331,7 @@ test_expect_success 'clean.requireForce and -n' '
331
331
332
332
mkdir -p build docs &&
333
333
touch a.out src/part3.c docs/manual.txt obj.o build/lib.so &&
334
- git- clean -n &&
334
+ git clean -n &&
335
335
test -f Makefile &&
336
336
test -f README &&
337
337
test -f src/part1.c &&
@@ -346,7 +346,7 @@ test_expect_success 'clean.requireForce and -n' '
346
346
347
347
test_expect_success ' clean.requireForce and -f' '
348
348
349
- git- clean -f &&
349
+ git clean -f &&
350
350
test -f README &&
351
351
test -f src/part1.c &&
352
352
test -f src/part2.c &&
0 commit comments