VirtualBox

source: kBuild/vendor/gnumake/current/tests/scripts/vms/library@ 3208

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

Imported make 4.2.1 (2e55f5e4abdc0e38c1d64be703b446695e70b3b6) from https://git.savannah.gnu.org/git/make.git.

  • 屬性 svn:eol-style 設為 LF
檔案大小: 1.8 KB
 
1# -*-mode: perl-*-
2
3$description = "Test GNU make's VMS Library management features.";
4
5$details = "\
6This only works on VMS systems.";
7
8return -1 if $osname ne 'VMS';
9
10# Help library
11$mk_string = "help : help.hlb(file1.hlp)\n\n" .
12"file1.hlp :\n" .
13"\t\@pipe open/write xxx file1.hlp ; write xxx \"1 help\" ; close xxx\n";
14
15my $answer = "library /replace help.hlb file1.hlp";
16
17run_make_test($mk_string,
18 '', $answer);
19
20unlink('help.hlb');
21unlink('file1.hlp');
22
23#Text library
24$mk_string = "text : text.tlb(file1.txt)\n\n" .
25"file1.txt :\n" .
26"\t\@pipe open/write xxx file1.txt ; write xxx \"text file\" ; close xxx\n";
27
28my $answer = "library /replace text.tlb file1.txt";
29
30run_make_test($mk_string,
31 '', $answer);
32
33unlink('text.tlb');
34unlink('file1.txt');
35
36
37#Macro library
38$mk_string = "macro : macro.mlb(file1.mar)\n\n" .
39"file1.mar :\n" .
40"\t\pipe open/write xxx file1.mar ; " .
41"write xxx \".macro a b\" ; write xxx \".endm\" ; close xxx\n";
42
43my $answer = "library /replace macro.mlb file1.mar";
44
45run_make_test($mk_string,
46 '', $answer);
47
48unlink('macro.mlb');
49unlink('file1.mar');
50
51$mk_string =
52"all:imagelib.olb(file2.exe)\n" .
53"file2.exe : file2.obj file2.opt\n" .
54"\t\@link /share=\$\@ \$\*,\$\*/opt\n\n" .
55"file2.opt :\n" .
56"\t\@pipe open/write xxx file2.opt ; " .
57"write xxx \"CASE_SENSITIVE=YES\" ; close xxx\n" .
58"file2.c :\n" .
59"\t\@pipe open/write xxx file2.c ; write xxx \"file2(){}\" ; close xxx\n";
60
61my $answer = "library /replace imagelib.olb file2.exe";
62
63run_make_test($mk_string,
64 '', $answer);
65
66unlink('imagelib.olb');
67unlink('file2.c');
68unlink('file2.obj');
69unlink('file2.exe');
70unlink('file2.opt');
71
72# This tells the test driver that the perl test script executed properly.
731;
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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