mirror of
https://git.savannah.gnu.org/git/make.git
synced 2024-12-29 08:09:02 +00:00
e8122ecb5d
Avoid conflicts with dash-W on case-insensitive filesystems.
33 lines
812 B
Perl
33 lines
812 B
Perl
# -*-perl-*-
|
|
|
|
$description = "Test the -w option to GNU make.";
|
|
|
|
# Simple test without -w
|
|
run_make_test(q!
|
|
all: ; @echo hi
|
|
!,
|
|
"", "hi\n");
|
|
|
|
# Simple test with -w
|
|
run_make_test(undef, "-w",
|
|
"#MAKE#: Entering directory '#PWD#'\nhi\n#MAKE#: Leaving directory '#PWD#'\n");
|
|
|
|
# Test makefile rebuild to ensure no enter/leave
|
|
run_make_test(q!
|
|
include foo
|
|
all: ;@:
|
|
foo: ; touch foo
|
|
!,
|
|
"", "#MAKEFILE#:2: foo: No such file or directory\ntouch foo\n");
|
|
unlink('foo');
|
|
|
|
# Test makefile rebuild with -w
|
|
run_make_test(q!
|
|
include foo
|
|
all: ;@:
|
|
foo: ; touch foo
|
|
!,
|
|
"-w", "#MAKE#: Entering directory '#PWD#'\n#MAKEFILE#:2: foo: No such file or directory\ntouch foo\n#MAKE#: Leaving directory '#PWD#'\n");
|
|
unlink('foo');
|
|
|
|
1;
|