mirror of
https://git.savannah.gnu.org/git/make.git
synced 2024-12-29 08:09:02 +00:00
da1b137e38
Don't print errors if "include" is specified with no arguments. New test suite for the $(shell ...) function.
23 lines
511 B
Perl
23 lines
511 B
Perl
# -*-perl-*-
|
|
|
|
$description = 'Test the $(shell ...) function.';
|
|
|
|
$details = '';
|
|
|
|
|
|
# Test shells inside rules.
|
|
run_make_test('.PHONY: all
|
|
all: ; @echo $(shell echo hi)
|
|
','','hi');
|
|
|
|
|
|
# Test shells inside exported environment variables.
|
|
# This is the test that fails if we try to put make exported variables into
|
|
# the environment for a $(shell ...) call.
|
|
run_make_test('
|
|
export HI = $(shell echo hi)
|
|
.PHONY: all
|
|
all: ; @echo $$HI
|
|
','','hi');
|
|
|
|
1;
|