1 $description = "The following test creates a makefile to test comments\n"
2 ."and comment continuation to the next line using a \n"
3 ."backslash within makefiles.";
5 $details = "To test comments within a makefile, a semi-colon was placed \n"
6 ."after a comment was started. This should not be reported as\n"
7 ."an error since it is within a comment. We then continue the \n"
8 ."comment to the next line using a backslash. To test whether\n"
9 ."the comment really continued, we place an echo command with some\n"
10 ."text on the line which should never execute since it should be \n"
11 ."within a comment\n";
13 open(MAKEFILE,"> $makefile");
15 # The Contents of the MAKEFILE ...
17 print MAKEFILE <<\EOF;
18 # Test comment vs semicolon parsing and line continuation
19 target: # this ; is just a comment \
20 @echo This is within a comment.
21 @echo There should be no errors for this makefile.
24 # END of Contents of MAKEFILE
28 &run_make_with_options($makefile,"",&get_logfile);
30 # Create the answer to what should be produced by this Makefile
31 $answer = "There should be no errors for this makefile.\n";
35 &compare_output($answer,&get_logfile(1))