Debian Codegraph @

tests/scripts/features/quoting

raw
1 # -*-perl-*-
2
3 $description = "The following test creates a makefile to test using \n" .
4 "quotes within makefiles.";
5
6 open(MAKEFILE,"> $makefile");
7
8 # The Contents of the MAKEFILE ...
9
10 print MAKEFILE <<'EOM';
11 TEXFONTS = NICEFONT
12 DEFINES = -DDEFAULT_TFM_PATH=\".:$(TEXFONTS)\"
13 test: ; @"echo" 'DEFINES = $(DEFINES)'
14 EOM
15
16 # END of Contents of MAKEFILE
17
18 close(MAKEFILE);
19
20
21 &run_make_with_options($makefile,"",&get_logfile);
22
23
24 # Create the answer to what should be produced by this Makefile
25 $answer = 'DEFINES = -DDEFAULT_TFM_PATH=\".:NICEFONT\"' . "\n";
26
27 # COMPARE RESULTS
28
29 &compare_output($answer,&get_logfile(1));
30
31 1;