VirtualBox

source: kBuild/vendor/gnumake/3.82/tests/scripts/functions/shell

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.
9run_make_test('.PHONY: all
10all: ; @echo $(shell echo hi)
11','','hi');
12
13
14# Test unescaped comment characters in shells. Savannah bug #20513
15if ($all_tests) {
16 run_make_test(q!
17FOO := $(shell echo '#')
18foo: ; 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.
26run_make_test('
27export HI = $(shell echo hi)
28.PHONY: all
29all: ; @echo $$HI
30','','hi');
31
321;
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