comparison: build/pymake/tests/rm.mk
build/pymake/tests/rm.mk
- branch
- TOR_BUG_9701
- changeset 15
- b8a032363ba2
equal
deleted
inserted
replaced
|
1 all: |
|
2 # $(RM) defaults to -f |
|
3 $(RM) nosuchfile |
|
4 touch newfile |
|
5 test -f newfile |
|
6 $(RM) newfile |
|
7 test ! -f newfile |
|
8 mkdir newdir |
|
9 test -d newdir |
|
10 touch newdir/newfile |
|
11 mkdir newdir/subdir |
|
12 $(RM) -r newdir/subdir |
|
13 test ! -d newdir/subdir |
|
14 test -d newdir |
|
15 mkdir newdir/subdir1 newdir/subdir2 |
|
16 $(RM) -r newdir/subdir1 newdir/subdir2 |
|
17 test ! -d newdir/subdir1 -a ! -d newdir/subdir2 |
|
18 test -d newdir |
|
19 $(RM) -r newdir |
|
20 test ! -d newdir |
|
21 @echo TEST-PASS |