VirtualBox

source: kBuild/trunk/src/kmk/tests/scripts/functions/value@ 1839

Last change on this file since 1839 was 969, checked in by bird, 18 years ago

Fixing some svn props.

  • Property svn:eol-style set to LF
File size: 732 bytes
Line 
1# -*-perl-*-
2
3$description = "Test the value function.";
4
5$details = "This is a test of the value function in GNU make.
6This function will evaluate to the value of the named variable with no
7further expansion performed on it.\n";
8
9open(MAKEFILE,"> $makefile");
10
11print MAKEFILE <<'EOF';
12export FOO = foo
13
14recurse = FOO = $FOO
15static := FOO = $(value FOO)
16
17all: ; @echo $(recurse) $(value recurse) $(static) $(value static)
18EOF
19
20close(MAKEFILE);
21
22&run_make_with_options($makefile, "", &get_logfile);
23
24# Create the answer to what should be produced by this Makefile
25$answer = "FOO = OO FOO = foo FOO = foo FOO = foo\n";
26
27
28&compare_output($answer,&get_logfile(1));
29
301;
Note: See TracBrowser for help on using the repository browser.

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