xref: /netbsd-src/external/gpl2/gmake/dist/tests/scripts/functions/flavor (revision 69606e3f5c9388e52aed8c120ad63c049ca45d8f)
1*69606e3fSchristos#                                                                    -*-perl-*-
2*69606e3fSchristos$description = "Test the flavor function.";
3*69606e3fSchristos
4*69606e3fSchristos$details = "";
5*69606e3fSchristos
6*69606e3fSchristos
7*69606e3fSchristos# Test #1: Test general logic.
8*69606e3fSchristos#
9*69606e3fSchristosrun_make_test('
10*69606e3fSchristoss := s
11*69606e3fSchristosr = r
12*69606e3fSchristos
13*69606e3fSchristos$(info u $(flavor u))
14*69606e3fSchristos$(info s $(flavor s))
15*69606e3fSchristos$(info r $(flavor r))
16*69606e3fSchristos
17*69606e3fSchristosra += ra
18*69606e3fSchristosrc ?= rc
19*69606e3fSchristos
20*69606e3fSchristos$(info ra $(flavor ra))
21*69606e3fSchristos$(info rc $(flavor rc))
22*69606e3fSchristos
23*69606e3fSchristoss += s
24*69606e3fSchristosr += r
25*69606e3fSchristos
26*69606e3fSchristos$(info s $(flavor s))
27*69606e3fSchristos$(info r $(flavor r))
28*69606e3fSchristos
29*69606e3fSchristos
30*69606e3fSchristos.PHONY: all
31*69606e3fSchristosall:;@:
32*69606e3fSchristos',
33*69606e3fSchristos'',
34*69606e3fSchristos'u undefined
35*69606e3fSchristoss simple
36*69606e3fSchristosr recursive
37*69606e3fSchristosra recursive
38*69606e3fSchristosrc recursive
39*69606e3fSchristoss simple
40*69606e3fSchristosr recursive');
41*69606e3fSchristos
42*69606e3fSchristos
43*69606e3fSchristos# This tells the test driver that the perl test script executed properly.
44*69606e3fSchristos1;
45