From 4120f91846f781ead7350f86c9614a19824450f5 Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Thu, 19 Sep 2013 01:15:22 -0400 Subject: Don't write "Entering" every time we re-exec for remake makefiles. --- tests/ChangeLog | 4 ++++ tests/scripts/options/dash-w | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 tests/scripts/options/dash-w (limited to 'tests') diff --git a/tests/ChangeLog b/tests/ChangeLog index c6cebbf..4ee7265 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,7 @@ +2013-09-21 Paul Smith + + * scripts/options/dash-w: Add a test for -w flag. + 2013-09-15 Paul Smith * scripts/misc/fopen-fail: Check for failure on infinite recursion. diff --git a/tests/scripts/options/dash-w b/tests/scripts/options/dash-w new file mode 100644 index 0000000..a05bbee --- /dev/null +++ b/tests/scripts/options/dash-w @@ -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