Home | History | Annotate | Line # | Download | only in functions
      1  1.1  christos #                                                                    -*-perl-*-
      2  1.1  christos 
      3  1.1  christos $description = 'Test the $(shell ...) function.';
      4  1.1  christos 
      5  1.1  christos $details = '';
      6  1.1  christos 
      7  1.1  christos 
      8  1.1  christos # Test shells inside rules.
      9  1.1  christos run_make_test('.PHONY: all
     10  1.1  christos all: ; @echo $(shell echo hi)
     11  1.1  christos ','','hi');
     12  1.1  christos 
     13  1.1  christos 
     14  1.1  christos # Test shells inside exported environment variables.
     15  1.1  christos # This is the test that fails if we try to put make exported variables into
     16  1.1  christos # the environment for a $(shell ...) call.
     17  1.1  christos run_make_test('
     18  1.1  christos export HI = $(shell echo hi)
     19  1.1  christos .PHONY: all
     20  1.1  christos all: ; @echo $$HI
     21  1.1  christos ','','hi');
     22  1.1  christos 
     23  1.1  christos 1;
     24