| Line | |
|---|
| 1 | # -*-perl-*-
|
|---|
| 2 |
|
|---|
| 3 | $description = "Test the -w option to GNU make.";
|
|---|
| 4 |
|
|---|
| 5 | # Simple test without -w
|
|---|
| 6 | run_make_test(q!
|
|---|
| 7 | all: ; @echo hi
|
|---|
| 8 | !,
|
|---|
| 9 | "", "hi\n");
|
|---|
| 10 |
|
|---|
| 11 | # Simple test with -w
|
|---|
| 12 | run_make_test(undef, "-w",
|
|---|
| 13 | "#MAKE#: Entering directory '#PWD#'\nhi\n#MAKE#: Leaving directory '#PWD#'\n");
|
|---|
| 14 |
|
|---|
| 15 | # Test makefile rebuild to ensure no enter/leave
|
|---|
| 16 | run_make_test(q!
|
|---|
| 17 | include foo
|
|---|
| 18 | all: ;@:
|
|---|
| 19 | foo: ; touch foo
|
|---|
| 20 | !,
|
|---|
| 21 | "", "touch foo\n");
|
|---|
| 22 | unlink('foo');
|
|---|
| 23 |
|
|---|
| 24 | # Test makefile rebuild with -w
|
|---|
| 25 | run_make_test(q!
|
|---|
| 26 | include foo
|
|---|
| 27 | all: ;@:
|
|---|
| 28 | foo: ; touch foo
|
|---|
| 29 | !,
|
|---|
| 30 | "-w", "#MAKE#: Entering directory '#PWD#'\ntouch foo\n#MAKE#: Leaving directory '#PWD#'\n");
|
|---|
| 31 | unlink('foo');
|
|---|
| 32 |
|
|---|
| 33 | 1;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.