2 $description = "Test the addsuffix function.";
7 open(MAKEFILE,"> $makefile");
9 # The Contents of the MAKEFILE ...
11 print MAKEFILE <<EOMAKE;
12 string := \$(addsuffix .c,src${pathsep}a.b.z.foo hacks)
13 one: ; \@echo \$(string)
15 two: ; \@echo \$(addsuffix foo,)
23 &run_make_with_options($makefile, "", &get_logfile);
24 $answer = "src${pathsep}a.b.z.foo.c hacks.c\n";
25 &compare_output($answer,&get_logfile(1));
30 &run_make_with_options($makefile, "two", &get_logfile);
32 &compare_output($answer,&get_logfile(1));
35 # This tells the test driver that the perl test script executed properly.