Last change
on this file was 2579, checked in by bird, 13 years ago |
Importing make-3.82.tar.bz2 (md5sum 1a11100f3c63fcf5753818e59d63088f) with --auto-props but no keywords.
|
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.