VirtualBox

source: kBuild/trunk/src/kmk/tests/scripts/options/print-directory@ 3140

Last change on this file since 3140 was 3140, checked in by bird, 7 years ago

kmk: Merged in changes from GNU make 4.2.1 (2e55f5e4abdc0e38c1d64be703b446695e70b3b6 / https://git.savannah.gnu.org/git/make.git).

  • Property svn:eol-style set to native
File size: 720 bytes
Line 
1# -*-perl-*-
2
3$description = "Test the -w option to GNU make.";
4
5# Simple test without -w
6run_make_test(q!
7all: ; @echo hi
8!,
9 "", "hi\n");
10
11# Simple test with -w
12run_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
16run_make_test(q!
17include foo
18all: ;@:
19foo: ; touch foo
20!,
21 "", "touch foo\n");
22unlink('foo');
23
24# Test makefile rebuild with -w
25run_make_test(q!
26include foo
27all: ;@:
28foo: ; touch foo
29!,
30 "-w", "#MAKE#: Entering directory '#PWD#'\ntouch foo\n#MAKE#: Leaving directory '#PWD#'\n");
31unlink('foo');
32
331;
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette