Home | History | Annotate | Download | only in functions
      1 #                                                                    -*-perl-*-
      2 $description = "Test the flavor function.";
      3 
      4 $details = "";
      5 
      6 
      7 # Test #1: Test general logic.
      8 #
      9 run_make_test('
     10 s := s
     11 r = r
     12 
     13 $(info u $(flavor u))
     14 $(info s $(flavor s))
     15 $(info r $(flavor r))
     16 
     17 ra += ra
     18 rc ?= rc
     19 
     20 $(info ra $(flavor ra))
     21 $(info rc $(flavor rc))
     22 
     23 s += s
     24 r += r
     25 
     26 $(info s $(flavor s))
     27 $(info r $(flavor r))
     28 
     29 
     30 .PHONY: all
     31 all:;@:
     32 ',
     33 '',
     34 'u undefined
     35 s simple
     36 r recursive
     37 ra recursive
     38 rc recursive
     39 s simple
     40 r recursive');
     41 
     42 
     43 # This tells the test driver that the perl test script executed properly.
     44 1;
     45