t7301: use test_path_is_(missing|file)

Replace "test -f" and friends to use the test_path_is_file helper function and friends from test-lib-functions.sh. These functions perform identical operations while enhancing debugging capabilities in case of test failures. The original used 'test ! -f' to check if the file has been correctly cleaned, so 'test ! -e' would have been a better choice. Replace them with 'test_path_is_missing'. Signed-off-by: Vincenzo Mezzela <vincenzo.mezzela@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Vincenzo Mezzela committed Mar 4, 2024 at 18:17 UTC 9a90118d788a38b051f6bcad92310978f065eeee
1 file changed +245 -245
t/t7301-clean-interactive.sh
+245 -245
@@ -25,18 +25,18 @@ test_expect_success 'git clean -i (c: clean hotkey)' '
25 touch a.out src/part3.c src/part3.h src/part4.c src/part4.h \
26 docs/manual.txt obj.o build/lib.so &&
27 echo c | git clean -i &&
28 - test -f Makefile &&
29 - test -f README &&
30 - test -f src/part1.c &&
31 - test -f src/part2.c &&
32 - test ! -f a.out &&
33 - test -f docs/manual.txt &&
34 - test ! -f src/part3.c &&
35 - test ! -f src/part3.h &&
36 - test ! -f src/part4.c &&
37 - test ! -f src/part4.h &&
38 - test -f obj.o &&
39 - test -f build/lib.so
28 + test_path_is_file Makefile &&
29 + test_path_is_file README &&
30 + test_path_is_file src/part1.c &&
31 + test_path_is_file src/part2.c &&
32 + test_path_is_missing a.out &&
33 + test_path_is_file docs/manual.txt &&
34 + test_path_is_missing src/part3.c &&
35 + test_path_is_missing src/part3.h &&
36 + test_path_is_missing src/part4.c &&
37 + test_path_is_missing src/part4.h &&
38 + test_path_is_file obj.o &&
39 + test_path_is_file build/lib.so
40
41 '
42
@@ -46,18 +46,18 @@ test_expect_success 'git clean -i (cl: clean prefix)' '
46 touch a.out src/part3.c src/part3.h src/part4.c src/part4.h \
47 docs/manual.txt obj.o build/lib.so &&
48 echo cl | git clean -i &&
49 - test -f Makefile &&
50 - test -f README &&
51 - test -f src/part1.c &&
52 - test -f src/part2.c &&
53 - test ! -f a.out &&
54 - test -f docs/manual.txt &&
55 - test ! -f src/part3.c &&
56 - test ! -f src/part3.h &&
57 - test ! -f src/part4.c &&
58 - test ! -f src/part4.h &&
59 - test -f obj.o &&
60 - test -f build/lib.so
49 + test_path_is_file Makefile &&
50 + test_path_is_file README &&
51 + test_path_is_file src/part1.c &&
52 + test_path_is_file src/part2.c &&
53 + test_path_is_missing a.out &&
54 + test_path_is_file docs/manual.txt &&
55 + test_path_is_missing src/part3.c &&
56 + test_path_is_missing src/part3.h &&
57 + test_path_is_missing src/part4.c &&
58 + test_path_is_missing src/part4.h &&
59 + test_path_is_file obj.o &&
60 + test_path_is_file build/lib.so
61
62 '
63
@@ -67,18 +67,18 @@ test_expect_success 'git clean -i (quit)' '
67 touch a.out src/part3.c src/part3.h src/part4.c src/part4.h \
68 docs/manual.txt obj.o build/lib.so &&
69 echo quit | git clean -i &&
70 - test -f Makefile &&
71 - test -f README &&
72 - test -f src/part1.c &&
73 - test -f src/part2.c &&
74 - test -f a.out &&
75 - test -f docs/manual.txt &&
76 - test -f src/part3.c &&
77 - test -f src/part3.h &&
78 - test -f src/part4.c &&
79 - test -f src/part4.h &&
80 - test -f obj.o &&
81 - test -f build/lib.so
70 + test_path_is_file Makefile &&
71 + test_path_is_file README &&
72 + test_path_is_file src/part1.c &&
73 + test_path_is_file src/part2.c &&
74 + test_path_is_file a.out &&
75 + test_path_is_file docs/manual.txt &&
76 + test_path_is_file src/part3.c &&
77 + test_path_is_file src/part3.h &&
78 + test_path_is_file src/part4.c &&
79 + test_path_is_file src/part4.h &&
80 + test_path_is_file obj.o &&
81 + test_path_is_file build/lib.so
82
83 '
84
@@ -88,18 +88,18 @@ test_expect_success 'git clean -i (Ctrl+D)' '
88 touch a.out src/part3.c src/part3.h src/part4.c src/part4.h \
89 docs/manual.txt obj.o build/lib.so &&
90 echo "\04" | git clean -i &&
91 - test -f Makefile &&
92 - test -f README &&
93 - test -f src/part1.c &&
94 - test -f src/part2.c &&
95 - test -f a.out &&
96 - test -f docs/manual.txt &&
97 - test -f src/part3.c &&
98 - test -f src/part3.h &&
99 - test -f src/part4.c &&
100 - test -f src/part4.h &&
101 - test -f obj.o &&
102 - test -f build/lib.so
91 + test_path_is_file Makefile &&
92 + test_path_is_file README &&
93 + test_path_is_file src/part1.c &&
94 + test_path_is_file src/part2.c &&
95 + test_path_is_file a.out &&
96 + test_path_is_file docs/manual.txt &&
97 + test_path_is_file src/part3.c &&
98 + test_path_is_file src/part3.h &&
99 + test_path_is_file src/part4.c &&
100 + test_path_is_file src/part4.h &&
101 + test_path_is_file obj.o &&
102 + test_path_is_file build/lib.so
103
104 '
105
@@ -110,18 +110,18 @@ test_expect_success 'git clean -id (filter all)' '
110 docs/manual.txt obj.o build/lib.so &&
111 test_write_lines f "*" "" c |
112 git clean -id &&
113 - test -f Makefile &&
114 - test -f README &&
115 - test -f src/part1.c &&
116 - test -f src/part2.c &&
117 - test -f a.out &&
118 - test -f docs/manual.txt &&
119 - test -f src/part3.c &&
120 - test -f src/part3.h &&
121 - test -f src/part4.c &&
122 - test -f src/part4.h &&
123 - test -f obj.o &&
124 - test -f build/lib.so
113 + test_path_is_file Makefile &&
114 + test_path_is_file README &&
115 + test_path_is_file src/part1.c &&
116 + test_path_is_file src/part2.c &&
117 + test_path_is_file a.out &&
118 + test_path_is_file docs/manual.txt &&
119 + test_path_is_file src/part3.c &&
120 + test_path_is_file src/part3.h &&
121 + test_path_is_file src/part4.c &&
122 + test_path_is_file src/part4.h &&
123 + test_path_is_file obj.o &&
124 + test_path_is_file build/lib.so
125
126 '
127
@@ -132,18 +132,18 @@ test_expect_success 'git clean -id (filter patterns)' '
132 docs/manual.txt obj.o build/lib.so &&
133 test_write_lines f "part3.* *.out" "" c |
134 git clean -id &&
135 - test -f Makefile &&
136 - test -f README &&
137 - test -f src/part1.c &&
138 - test -f src/part2.c &&
139 - test -f a.out &&
140 - test ! -f docs/manual.txt &&
141 - test -f src/part3.c &&
142 - test -f src/part3.h &&
143 - test ! -f src/part4.c &&
144 - test ! -f src/part4.h &&
145 - test -f obj.o &&
146 - test -f build/lib.so
135 + test_path_is_file Makefile &&
136 + test_path_is_file README &&
137 + test_path_is_file src/part1.c &&
138 + test_path_is_file src/part2.c &&
139 + test_path_is_file a.out &&
140 + test_path_is_missing docs/manual.txt &&
141 + test_path_is_file src/part3.c &&
142 + test_path_is_file src/part3.h &&
143 + test_path_is_missing src/part4.c &&
144 + test_path_is_missing src/part4.h &&
145 + test_path_is_file obj.o &&
146 + test_path_is_file build/lib.so
147
148 '
149
@@ -154,18 +154,18 @@ test_expect_success 'git clean -id (filter patterns 2)' '
154 docs/manual.txt obj.o build/lib.so &&
155 test_write_lines f "* !*.out" "" c |
156 git clean -id &&
157 - test -f Makefile &&
158 - test -f README &&
159 - test -f src/part1.c &&
160 - test -f src/part2.c &&
161 - test ! -f a.out &&
162 - test -f docs/manual.txt &&
163 - test -f src/part3.c &&
164 - test -f src/part3.h &&
165 - test -f src/part4.c &&
166 - test -f src/part4.h &&
167 - test -f obj.o &&
168 - test -f build/lib.so
157 + test_path_is_file Makefile &&
158 + test_path_is_file README &&
159 + test_path_is_file src/part1.c &&
160 + test_path_is_file src/part2.c &&
161 + test_path_is_missing a.out &&
162 + test_path_is_file docs/manual.txt &&
163 + test_path_is_file src/part3.c &&
164 + test_path_is_file src/part3.h &&
165 + test_path_is_file src/part4.c &&
166 + test_path_is_file src/part4.h &&
167 + test_path_is_file obj.o &&
168 + test_path_is_file build/lib.so
169
170 '
171
@@ -176,18 +176,18 @@ test_expect_success 'git clean -id (select - all)' '
176 docs/manual.txt obj.o build/lib.so &&
177 test_write_lines s "*" "" c |
178 git clean -id &&
179 - test -f Makefile &&
180 - test -f README &&
181 - test -f src/part1.c &&
182 - test -f src/part2.c &&
183 - test ! -f a.out &&
184 - test ! -f docs/manual.txt &&
185 - test ! -f src/part3.c &&
186 - test ! -f src/part3.h &&
187 - test ! -f src/part4.c &&
188 - test ! -f src/part4.h &&
189 - test -f obj.o &&
190 - test -f build/lib.so
179 + test_path_is_file Makefile &&
180 + test_path_is_file README &&
181 + test_path_is_file src/part1.c &&
182 + test_path_is_file src/part2.c &&
183 + test_path_is_missing a.out &&
184 + test_path_is_missing docs/manual.txt &&
185 + test_path_is_missing src/part3.c &&
186 + test_path_is_missing src/part3.h &&
187 + test_path_is_missing src/part4.c &&
188 + test_path_is_missing src/part4.h &&
189 + test_path_is_file obj.o &&
190 + test_path_is_file build/lib.so
191
192 '
193
@@ -198,18 +198,18 @@ test_expect_success 'git clean -id (select - none)' '
198 docs/manual.txt obj.o build/lib.so &&
199 test_write_lines s "" c |
200 git clean -id &&
201 - test -f Makefile &&
202 - test -f README &&
203 - test -f src/part1.c &&
204 - test -f src/part2.c &&
205 - test -f a.out &&
206 - test -f docs/manual.txt &&
207 - test -f src/part3.c &&
208 - test -f src/part3.h &&
209 - test -f src/part4.c &&
210 - test -f src/part4.h &&
211 - test -f obj.o &&
212 - test -f build/lib.so
201 + test_path_is_file Makefile &&
202 + test_path_is_file README &&
203 + test_path_is_file src/part1.c &&
204 + test_path_is_file src/part2.c &&
205 + test_path_is_file a.out &&
206 + test_path_is_file docs/manual.txt &&
207 + test_path_is_file src/part3.c &&
208 + test_path_is_file src/part3.h &&
209 + test_path_is_file src/part4.c &&
210 + test_path_is_file src/part4.h &&
211 + test_path_is_file obj.o &&
212 + test_path_is_file build/lib.so
213
214 '
215
@@ -220,18 +220,18 @@ test_expect_success 'git clean -id (select - number)' '
220 docs/manual.txt obj.o build/lib.so &&
221 test_write_lines s 3 "" c |
222 git clean -id &&
223 - test -f Makefile &&
224 - test -f README &&
225 - test -f src/part1.c &&
226 - test -f src/part2.c &&
227 - test -f a.out &&
228 - test -f docs/manual.txt &&
229 - test ! -f src/part3.c &&
230 - test -f src/part3.h &&
231 - test -f src/part4.c &&
232 - test -f src/part4.h &&
233 - test -f obj.o &&
234 - test -f build/lib.so
223 + test_path_is_file Makefile &&
224 + test_path_is_file README &&
225 + test_path_is_file src/part1.c &&
226 + test_path_is_file src/part2.c &&
227 + test_path_is_file a.out &&
228 + test_path_is_file docs/manual.txt &&
229 + test_path_is_missing src/part3.c &&
230 + test_path_is_file src/part3.h &&
231 + test_path_is_file src/part4.c &&
232 + test_path_is_file src/part4.h &&
233 + test_path_is_file obj.o &&
234 + test_path_is_file build/lib.so
235
236 '
237
@@ -242,18 +242,18 @@ test_expect_success 'git clean -id (select - number 2)' '
242 docs/manual.txt obj.o build/lib.so &&
243 test_write_lines s "2 3" 5 "" c |
244 git clean -id &&
245 - test -f Makefile &&
246 - test -f README &&
247 - test -f src/part1.c &&
248 - test -f src/part2.c &&
249 - test -f a.out &&
250 - test ! -f docs/manual.txt &&
251 - test ! -f src/part3.c &&
252 - test -f src/part3.h &&
253 - test ! -f src/part4.c &&
254 - test -f src/part4.h &&
255 - test -f obj.o &&
256 - test -f build/lib.so
245 + test_path_is_file Makefile &&
246 + test_path_is_file README &&
247 + test_path_is_file src/part1.c &&
248 + test_path_is_file src/part2.c &&
249 + test_path_is_file a.out &&
250 + test_path_is_missing docs/manual.txt &&
251 + test_path_is_missing src/part3.c &&
252 + test_path_is_file src/part3.h &&
253 + test_path_is_missing src/part4.c &&
254 + test_path_is_file src/part4.h &&
255 + test_path_is_file obj.o &&
256 + test_path_is_file build/lib.so
257
258 '
259
@@ -264,18 +264,18 @@ test_expect_success 'git clean -id (select - number 3)' '
264 docs/manual.txt obj.o build/lib.so &&
265 test_write_lines s "3,4 5" "" c |
266 git clean -id &&
267 - test -f Makefile &&
268 - test -f README &&
269 - test -f src/part1.c &&
270 - test -f src/part2.c &&
271 - test -f a.out &&
272 - test -f docs/manual.txt &&
273 - test ! -f src/part3.c &&
274 - test ! -f src/part3.h &&
275 - test ! -f src/part4.c &&
276 - test -f src/part4.h &&
277 - test -f obj.o &&
278 - test -f build/lib.so
267 + test_path_is_file Makefile &&
268 + test_path_is_file README &&
269 + test_path_is_file src/part1.c &&
270 + test_path_is_file src/part2.c &&
271 + test_path_is_file a.out &&
272 + test_path_is_file docs/manual.txt &&
273 + test_path_is_missing src/part3.c &&
274 + test_path_is_missing src/part3.h &&
275 + test_path_is_missing src/part4.c &&
276 + test_path_is_file src/part4.h &&
277 + test_path_is_file obj.o &&
278 + test_path_is_file build/lib.so
279
280 '
281
@@ -285,11 +285,11 @@ test_expect_success 'git clean -id (select - filenames)' '
285 touch a.out foo.txt bar.txt baz.txt &&
286 test_write_lines s "a.out fo ba bar" "" c |
287 git clean -id &&
288 - test -f Makefile &&
289 - test ! -f a.out &&
290 - test ! -f foo.txt &&
291 - test ! -f bar.txt &&
292 - test -f baz.txt &&
288 + test_path_is_file Makefile &&
289 + test_path_is_missing a.out &&
290 + test_path_is_missing foo.txt &&
291 + test_path_is_missing bar.txt &&
292 + test_path_is_file baz.txt &&
293 rm baz.txt
294
295 '
@@ -301,18 +301,18 @@ test_expect_success 'git clean -id (select - range)' '
301 docs/manual.txt obj.o build/lib.so &&
302 test_write_lines s "1,3-4" 2 "" c |
303 git clean -id &&
304 - test -f Makefile &&
305 - test -f README &&
306 - test -f src/part1.c &&
307 - test -f src/part2.c &&
308 - test ! -f a.out &&
309 - test ! -f src/part3.c &&
310 - test ! -f src/part3.h &&
311 - test -f src/part4.c &&
312 - test -f src/part4.h &&
313 - test ! -f docs/manual.txt &&
314 - test -f obj.o &&
315 - test -f build/lib.so
304 + test_path_is_file Makefile &&
305 + test_path_is_file README &&
306 + test_path_is_file src/part1.c &&
307 + test_path_is_file src/part2.c &&
308 + test_path_is_missing a.out &&
309 + test_path_is_missing src/part3.c &&
310 + test_path_is_missing src/part3.h &&
311 + test_path_is_file src/part4.c &&
312 + test_path_is_file src/part4.h &&
313 + test_path_is_missing docs/manual.txt &&
314 + test_path_is_file obj.o &&
315 + test_path_is_file build/lib.so
316
317 '
318
@@ -323,18 +323,18 @@ test_expect_success 'git clean -id (select - range 2)' '
323 docs/manual.txt obj.o build/lib.so &&
324 test_write_lines s "4- 1" "" c |
325 git clean -id &&
326 - test -f Makefile &&
327 - test -f README &&
328 - test -f src/part1.c &&
329 - test -f src/part2.c &&
330 - test ! -f a.out &&
331 - test -f docs/manual.txt &&
332 - test -f src/part3.c &&
333 - test ! -f src/part3.h &&
334 - test ! -f src/part4.c &&
335 - test ! -f src/part4.h &&
336 - test -f obj.o &&
337 - test -f build/lib.so
326 + test_path_is_file Makefile &&
327 + test_path_is_file README &&
328 + test_path_is_file src/part1.c &&
329 + test_path_is_file src/part2.c &&
330 + test_path_is_missing a.out &&
331 + test_path_is_file docs/manual.txt &&
332 + test_path_is_file src/part3.c &&
333 + test_path_is_missing src/part3.h &&
334 + test_path_is_missing src/part4.c &&
335 + test_path_is_missing src/part4.h &&
336 + test_path_is_file obj.o &&
337 + test_path_is_file build/lib.so
338
339 '
340
@@ -345,18 +345,18 @@ test_expect_success 'git clean -id (inverse select)' '
345 docs/manual.txt obj.o build/lib.so &&
346 test_write_lines s "*" "-5- 1 -2" "" c |
347 git clean -id &&
348 - test -f Makefile &&
349 - test -f README &&
350 - test -f src/part1.c &&
351 - test -f src/part2.c &&
352 - test ! -f a.out &&
353 - test -f docs/manual.txt &&
354 - test ! -f src/part3.c &&
355 - test ! -f src/part3.h &&
356 - test -f src/part4.c &&
357 - test -f src/part4.h &&
358 - test -f obj.o &&
359 - test -f build/lib.so
348 + test_path_is_file Makefile &&
349 + test_path_is_file README &&
350 + test_path_is_file src/part1.c &&
351 + test_path_is_file src/part2.c &&
352 + test_path_is_missing a.out &&
353 + test_path_is_file docs/manual.txt &&
354 + test_path_is_missing src/part3.c &&
355 + test_path_is_missing src/part3.h &&
356 + test_path_is_file src/part4.c &&
357 + test_path_is_file src/part4.h &&
358 + test_path_is_file obj.o &&
359 + test_path_is_file build/lib.so
360
361 '
362
@@ -367,18 +367,18 @@ test_expect_success 'git clean -id (ask)' '
367 docs/manual.txt obj.o build/lib.so &&
368 test_write_lines a Y y no yes bad "" |
369 git clean -id &&
370 - test -f Makefile &&
371 - test -f README &&
372 - test -f src/part1.c &&
373 - test -f src/part2.c &&
374 - test ! -f a.out &&
375 - test ! -f docs/manual.txt &&
376 - test -f src/part3.c &&
377 - test ! -f src/part3.h &&
378 - test -f src/part4.c &&
379 - test -f src/part4.h &&
380 - test -f obj.o &&
381 - test -f build/lib.so
370 + test_path_is_file Makefile &&
371 + test_path_is_file README &&
372 + test_path_is_file src/part1.c &&
373 + test_path_is_file src/part2.c &&
374 + test_path_is_missing a.out &&
375 + test_path_is_missing docs/manual.txt &&
376 + test_path_is_file src/part3.c &&
377 + test_path_is_missing src/part3.h &&
378 + test_path_is_file src/part4.c &&
379 + test_path_is_file src/part4.h &&
380 + test_path_is_file obj.o &&
381 + test_path_is_file build/lib.so
382
383 '
384
@@ -389,18 +389,18 @@ test_expect_success 'git clean -id (ask - Ctrl+D)' '
389 docs/manual.txt obj.o build/lib.so &&
390 test_write_lines a Y no yes "\04" |
391 git clean -id &&
392 - test -f Makefile &&
393 - test -f README &&
394 - test -f src/part1.c &&
395 - test -f src/part2.c &&
396 - test ! -f a.out &&
397 - test -f docs/manual.txt &&
398 - test ! -f src/part3.c &&
399 - test -f src/part3.h &&
400 - test -f src/part4.c &&
401 - test -f src/part4.h &&
402 - test -f obj.o &&
403 - test -f build/lib.so
392 + test_path_is_file Makefile &&
393 + test_path_is_file README &&
394 + test_path_is_file src/part1.c &&
395 + test_path_is_file src/part2.c &&
396 + test_path_is_missing a.out &&
397 + test_path_is_file docs/manual.txt &&
398 + test_path_is_missing src/part3.c &&
399 + test_path_is_file src/part3.h &&
400 + test_path_is_file src/part4.c &&
401 + test_path_is_file src/part4.h &&
402 + test_path_is_file obj.o &&
403 + test_path_is_file build/lib.so
404
405 '
406
@@ -412,18 +412,18 @@ test_expect_success 'git clean -id with prefix and path (filter)' '
412 (cd build/ &&
413 test_write_lines f docs "*.h" "" c |
414 git clean -id ..) &&
415 - test -f Makefile &&
416 - test -f README &&
417 - test -f src/part1.c &&
418 - test -f src/part2.c &&
419 - test ! -f a.out &&
420 - test -f docs/manual.txt &&
421 - test ! -f src/part3.c &&
422 - test -f src/part3.h &&
423 - test ! -f src/part4.c &&
424 - test -f src/part4.h &&
425 - test -f obj.o &&
426 - test -f build/lib.so
415 + test_path_is_file Makefile &&
416 + test_path_is_file README &&
417 + test_path_is_file src/part1.c &&
418 + test_path_is_file src/part2.c &&
419 + test_path_is_missing a.out &&
420 + test_path_is_file docs/manual.txt &&
421 + test_path_is_missing src/part3.c &&
422 + test_path_is_file src/part3.h &&
423 + test_path_is_missing src/part4.c &&
424 + test_path_is_file src/part4.h &&
425 + test_path_is_file obj.o &&
426 + test_path_is_file build/lib.so
427
428 '
429
@@ -435,18 +435,18 @@ test_expect_success 'git clean -id with prefix and path (select by name)' '
435 (cd build/ &&
436 test_write_lines s ../docs/ ../src/part3.c ../src/part4.c "" c |
437 git clean -id ..) &&
438 - test -f Makefile &&
439 - test -f README &&
440 - test -f src/part1.c &&
441 - test -f src/part2.c &&
442 - test -f a.out &&
443 - test ! -f docs/manual.txt &&
444 - test ! -f src/part3.c &&
445 - test -f src/part3.h &&
446 - test ! -f src/part4.c &&
447 - test -f src/part4.h &&
448 - test -f obj.o &&
449 - test -f build/lib.so
438 + test_path_is_file Makefile &&
439 + test_path_is_file README &&
440 + test_path_is_file src/part1.c &&
441 + test_path_is_file src/part2.c &&
442 + test_path_is_file a.out &&
443 + test_path_is_missing docs/manual.txt &&
444 + test_path_is_missing src/part3.c &&
445 + test_path_is_file src/part3.h &&
446 + test_path_is_missing src/part4.c &&
447 + test_path_is_file src/part4.h &&
448 + test_path_is_file obj.o &&
449 + test_path_is_file build/lib.so
450
451 '
452
@@ -458,18 +458,18 @@ test_expect_success 'git clean -id with prefix and path (ask)' '
458 (cd build/ &&
459 test_write_lines a Y y no yes bad "" |
460 git clean -id ..) &&
461 - test -f Makefile &&
462 - test -f README &&
463 - test -f src/part1.c &&
464 - test -f src/part2.c &&
465 - test ! -f a.out &&
466 - test ! -f docs/manual.txt &&
467 - test -f src/part3.c &&
468 - test ! -f src/part3.h &&
469 - test -f src/part4.c &&
470 - test -f src/part4.h &&
471 - test -f obj.o &&
472 - test -f build/lib.so
461 + test_path_is_file Makefile &&
462 + test_path_is_file README &&
463 + test_path_is_file src/part1.c &&
464 + test_path_is_file src/part2.c &&
465 + test_path_is_missing a.out &&
466 + test_path_is_missing docs/manual.txt &&
467 + test_path_is_file src/part3.c &&
468 + test_path_is_missing src/part3.h &&
469 + test_path_is_file src/part4.c &&
470 + test_path_is_file src/part4.h &&
471 + test_path_is_file obj.o &&
472 + test_path_is_file build/lib.so
473
474 '
475