VirtualBox

source: kBuild/trunk/src/gmake/tests/scripts/features/se_explicit@ 285

最後變更 在這個檔案從285是 282,由 bird 提交於 20 年 前

Initial revision

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 1002 位元組
 
1# -*-perl-*-
2$description = "Test second expansion in ordinary rules.";
3
4$details = "";
5
6# Test #1: automatic variables.
7#
8run_make_test('
9.DEFAULT: ; @echo $@
10
11foo: bar baz
12
13foo: biz | buz
14
15foo: [email protected] \
16 $$<.2 \
17 $$(addsuffix .3,$$^) \
18 $$(addsuffix .4,$$+) \
19 $$|.5 \
20 $$*.6
21
22',
23'',
24'bar
25baz
26biz
27buz
28foo.1
29bar.2
30bar.3
31baz.3
32biz.3
33bar.4
34baz.4
35biz.4
36buz.5
37.6
38');
39
40
41# Test #2: target/pattern -specific variables.
42#
43run_make_test('
44.DEFAULT: ; @echo $@
45
46foo.x: $$a $$b
47
48foo.x: a := bar
49
50%.x: b := baz
51
52',
53'',
54'bar
55baz
56');
57
58
59# Test #3: order of prerequisites.
60#
61run_make_test('
62.DEFAULT: ; @echo $@
63
64all: foo bar baz
65
66# Subtest #1
67#
68foo: foo.1; @:
69
70foo: foo.2
71
72foo: foo.3
73
74
75# Subtest #2
76#
77bar: bar.2
78
79bar: bar.1; @:
80
81bar: bar.3
82
83
84# Subtest #3
85#
86baz: baz.1
87
88baz: baz.2
89
90baz: ; @:
91
92',
93'',
94'foo.1
95foo.2
96foo.3
97bar.1
98bar.2
99bar.3
100baz.1
101baz.2
102');
103
104# This tells the test driver that the perl test script executed properly.
1051;
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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