1*69606e3fSchristos# -*-perl-*- 2*69606e3fSchristos 3*69606e3fSchristos$description = 'Test the $(shell ...) function.'; 4*69606e3fSchristos 5*69606e3fSchristos$details = ''; 6*69606e3fSchristos 7*69606e3fSchristos 8*69606e3fSchristos# Test shells inside rules. 9*69606e3fSchristosrun_make_test('.PHONY: all 10*69606e3fSchristosall: ; @echo $(shell echo hi) 11*69606e3fSchristos','','hi'); 12*69606e3fSchristos 13*69606e3fSchristos 14*69606e3fSchristos# Test shells inside exported environment variables. 15*69606e3fSchristos# This is the test that fails if we try to put make exported variables into 16*69606e3fSchristos# the environment for a $(shell ...) call. 17*69606e3fSchristosrun_make_test(' 18*69606e3fSchristosexport HI = $(shell echo hi) 19*69606e3fSchristos.PHONY: all 20*69606e3fSchristosall: ; @echo $$HI 21*69606e3fSchristos','','hi'); 22*69606e3fSchristos 23*69606e3fSchristos1; 24