|
Last change
on this file was 2581, checked in by bird, 12 years ago |
|
Sync'ed svn:eol-style with trunk.
|
-
Property svn:eol-style
set to
LF
|
|
File size:
696 bytes
|
| Line | |
|---|
| 1 | # -*-perl-*-
|
|---|
| 2 |
|
|---|
| 3 | $description = 'Test the $(shell ...) function.';
|
|---|
| 4 |
|
|---|
| 5 | $details = '';
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 | # Test shells inside rules.
|
|---|
| 9 | run_make_test('.PHONY: all
|
|---|
| 10 | all: ; @echo $(shell echo hi)
|
|---|
| 11 | ','','hi');
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 | # Test unescaped comment characters in shells. Savannah bug #20513
|
|---|
| 15 | if ($all_tests) {
|
|---|
| 16 | run_make_test(q!
|
|---|
| 17 | FOO := $(shell echo '#')
|
|---|
| 18 | foo: ; echo '$(FOO)'
|
|---|
| 19 | !,
|
|---|
| 20 | '', "#\n");
|
|---|
| 21 | }
|
|---|
| 22 |
|
|---|
| 23 | # Test shells inside exported environment variables.
|
|---|
| 24 | # This is the test that fails if we try to put make exported variables into
|
|---|
| 25 | # the environment for a $(shell ...) call.
|
|---|
| 26 | run_make_test('
|
|---|
| 27 | export HI = $(shell echo hi)
|
|---|
| 28 | .PHONY: all
|
|---|
| 29 | all: ; @echo $$HI
|
|---|
| 30 | ','','hi');
|
|---|
| 31 |
|
|---|
| 32 | 1;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.