VirtualBox

source: kBuild/vendor/gnumake/current/tests/scripts/features/comments@ 3208

最後變更 在這個檔案從3208是 2596,由 bird 提交於 13 年 前

gnumake/current -> 3.82-cvs.

  • 屬性 svn:eol-style 設為 LF
檔案大小: 1.2 KB
 
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.";
4
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";
12
13open(MAKEFILE,"> $makefile");
14
15# The Contents of the MAKEFILE ...
16
17print MAKEFILE <<\EOF;
18# Test comment vs semicolon parsing and line continuation
19target: # this ; is just a comment \
20 @echo This is within a comment.
21 @echo There should be no errors for this makefile.
22EOF
23
24# END of Contents of MAKEFILE
25
26close(MAKEFILE);
27
28&run_make_with_options($makefile,"",&get_logfile);
29
30# Create the answer to what should be produced by this Makefile
31$answer = "There should be no errors for this makefile.\n";
32
33# COMPARE RESULTS
34
35&compare_output($answer,&get_logfile(1))
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette