From e8122ecb5d726e8b805a7854f844d9a4222f1564 Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Mon, 23 Sep 2013 11:24:51 -0400 Subject: Rename dash-w to print-directory. Avoid conflicts with dash-W on case-insensitive filesystems. --- tests/ChangeLog | 6 ++++++ tests/scripts/options/dash-w | 33 --------------------------------- tests/scripts/options/print-directory | 33 +++++++++++++++++++++++++++++++++ 3 files changed, 39 insertions(+), 33 deletions(-) delete mode 100644 tests/scripts/options/dash-w create mode 100644 tests/scripts/options/print-directory (limited to 'tests') diff --git a/tests/ChangeLog b/tests/ChangeLog index eaeb7c0..9e2deb3 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,9 @@ +2013-09-23 Paul Smith + + * scripts/options/print-directory: Rename dash-w to + print-directory to avoid conflicts with dash-W on case-insensitive + filesystems. + 2013-09-22 Paul Smith * scripts/features/se_implicit: Verify that order-only tokens diff --git a/tests/scripts/options/dash-w b/tests/scripts/options/dash-w deleted file mode 100644 index a05bbee..0000000 --- a/tests/scripts/options/dash-w +++ /dev/null @@ -1,33 +0,0 @@ -# -*-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; diff --git a/tests/scripts/options/print-directory b/tests/scripts/options/print-directory new file mode 100644 index 0000000..a05bbee --- /dev/null +++ b/tests/scripts/options/print-directory @@ -0,0 +1,33 @@ +# -*-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; -- cgit v1.2.3