VirtualBox

source: kBuild/vendor/gnumake/current/tests/scripts/targets/SILENT@ 3208

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

gnumake/current -> 3.82-cvs.

  • 屬性 svn:eol-style 設為 LF
檔案大小: 883 位元組
 
1# -*-perl-*-
2
3$description = "The following tests the special target .SILENT. By simply\n"
4 ."mentioning this as a target, it tells make not to print\n"
5 ."commands before executing them.";
6
7$details = "This test is the same as the clean test except that it should\n"
8 ."not echo its command before deleting the specified file.\n";
9
10$example = "EXAMPLE_FILE";
11
12open(MAKEFILE,"> $makefile");
13
14# The Contents of the MAKEFILE ...
15
16print MAKEFILE ".SILENT : clean\n";
17print MAKEFILE "clean: \n";
18print MAKEFILE "\t$delete_command EXAMPLE_FILE\n";
19
20# END of Contents of MAKEFILE
21
22close(MAKEFILE);
23
24&touch($example);
25
26$answer = "";
27&run_make_with_options($makefile,"clean",&get_logfile,0);
28if (-f $example) {
29 $test_passed = 0;
30}
31&compare_output($answer,&get_logfile(1));
32
331;
34
35
36
37
38
39
40
41
42
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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