| 1 |
# -*-perl-*- |
| 2 |
|
| 3 |
$description = "Test the -e (environment overrides) option"; |
| 4 |
|
| 5 |
$ENV{GOOGLE} = 'boggle'; |
| 6 |
|
| 7 |
run_make_test(q! |
| 8 |
GOOGLE = bazzle |
| 9 |
all:; @echo "$(GOOGLE)" |
| 10 |
!, |
| 11 |
'-e', "boggle\n"); |
| 12 |
|
| 13 |
# Ensure variables set on the command line have the origin correct |
| 14 |
# See SV 61218 |
| 15 |
|
| 16 |
run_make_test(q! |
| 17 |
$(info FOO [$(origin FOO)]: $(value FOO)) |
| 18 |
all: ; |
| 19 |
recurse: ; @$(MAKE) -f #MAKEFILE# |
| 20 |
!, |
| 21 |
'-e --no-print-directory FOO=1 recurse', |
| 22 |
"FOO [command line]: 1\nFOO [command line]: 1\n#MAKE#[1]: 'all' is up to date."); |
| 23 |
|
| 24 |
1; |