1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
|
<!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd">
<suite >
<!-- .............................................................................
Should get 1 tests run and passed when running with global options:
-ajctestRequireKeywords=requireKeyword
-ajctestSkipKeywords=skipKeyword
!verbose
-eclipse
This is used by a JUnit test HarnessSelectionTest.
Do not change the outcome or attributes without passing that test.
-->
<ajc-test dir="." title="run and pass"
keywords="requireKeyword" >
<compile files="TestNoTester.java"/>
<run class="TestNoTester"/>
</ajc-test>
<!-- .............................................................................
AjcTest should skip or select based on (arbitrary) keywords
-->
<ajc-test dir="." pr="100" title="omit if skipKeyword" keywords="requireKeyword,skipKeyword" >
<compile staging="false" files="TestNoTester.java"/>
<run class="TestNoTester"/>
</ajc-test>
<!-- .............................................................................
CompilerRun should resolve soft conflicts in favor of globals. XXX
-->
<!-- .............................................................................
CompilerRun should skip hard conflicts (both local and global use force). XXX
-->
<ajc-test dir="." pr="101" title="skip - conflict of local ^verbose and global !verbose XXX failing - runs"
keywords="requireKeyword" >
<compile files="TestNoTester.java" options="^verbose"/>
<run class="TestNoTester"/>
</ajc-test>
<!-- .............................................................................
CompilerRun should skip semantic conflicts - see CompilerRun.Spec.setupArgs(..).
-->
<ajc-test dir="." title="skip - local conflict between -lenient, -strict"
keywords="requireKeyword" >
<compile files="TestNoTester.java" options="-lenient,-strict"/>
<run class="TestNoTester"/>
</ajc-test>
<ajc-test dir="." title="skip - local conflict between forced lenient, forced strict"
keywords="requireKeyword" >
<compile files="TestNoTester.java" options="!lenient,!strict"/>
<run class="TestNoTester"/>
</ajc-test>
<!-- ................... ajc limitations -->
<ajc-test dir="." title="skip - forced ajc with incremental tests"
keywords="requireKeyword,skipUnenforcedAjcLimit" >
<compile staging="true" files="TestNoTester.java" options="!ajc"/>
<run class="TestNoTester"/>
</ajc-test>
<!-- ................... eajc limitations -->
<ajc-test dir="." title="skip - forced eclipse with -strict"
keywords="requireKeyword,ajcEclipseForceConflict,eclipseOptionSkip" >
<compile staging="true" files="TestNoTester.java" options="-strict,!eclipse"/>
<run class="TestNoTester"/>
</ajc-test>
<ajc-test dir="." title="skip - forced eclipse with -lenient"
keywords="requireKeyword,ajcEclipseForceConflict,eclipseOptionSkip" >
<compile staging="true" files="TestNoTester.java" options="-lenient,!eclipse"/>
<run class="TestNoTester"/>
</ajc-test>
<ajc-test dir="." title="skip - forced eclipse with forced strict"
keywords="requireKeyword,ajcEclipseForceConflict,eclipseOptionSkip" >
<compile staging="true" files="TestNoTester.java" options="!strict,!eclipse"/>
<run class="TestNoTester"/>
</ajc-test>
<ajc-test dir="." title="skip - forced eclipse with forced lenient"
keywords="requireKeyword,ajcEclipseForceConflict,eclipseOptionSkip" >
<compile staging="true" files="TestNoTester.java" options="!lenient,!eclipse"/>
<run class="TestNoTester"/>
</ajc-test>
<ajc-test dir="." title="skip - forced eclipse with -preprocess"
keywords="requireKeyword,ajcEclipseForceConflict,eclipseOptionSkip" >
<compile staging="true" files="TestNoTester.java" options="-preprocess,!eclipse"/>
<run class="TestNoTester"/>
</ajc-test>
<ajc-test dir="." title="skip - forced eclipse with -usejavac"
keywords="requireKeyword,ajcEclipseForceConflict,eclipseOptionSkip" >
<compile staging="true" files="TestNoTester.java" options="-usejavac,!eclipse"/>
<run class="TestNoTester"/>
</ajc-test>
<!-- .............................................................................
CompilerRun should skip invalid options CompilerRun.Spec.INVALID_OPTIONS:
{ "-workingdir", "-argfile", "-sourceroots", "-outjar", "-source" }
-->
<ajc-test dir="." title="skip - local invalid option -workingdir"
keywords="requireKeyword,localInvalidOption" >
<compile files="TestNoTester.java" options="-workingdir,."/>
<run class="TestNoTester"/>
</ajc-test>
<ajc-test dir="." title="skip - local invalid option -argfile"
keywords="requireKeyword,localInvalidOption" >
<compile files="TestNoTester.java" options="-argfile,f"/>
<run class="TestNoTester"/>
</ajc-test>
<ajc-test dir="." title="skip - local invalid option -sourceroots"
keywords="requireKeyword,localInvalidOption" >
<compile files="TestNoTester.java" options="-sourceroots,."/>
<run class="TestNoTester"/>
</ajc-test>
<ajc-test dir="." title="skip - local invalid option -outjar"
keywords="requireKeyword,localInvalidOption" >
<compile files="TestNoTester.java" options="-outjar,foo.jar"/>
<run class="TestNoTester"/>
</ajc-test>
<ajc-test dir="." title="skip - local invalid option -source 1.4"
keywords="requireKeyword,localInvalidOption" >
<compile files="TestNoTester.java" options="-source,1.4"/>
<run class="TestNoTester"/>
</ajc-test>
<!-- .............................................................................
CompilerRun should skip invalid options specified as globals XXX
-->
</suite>
|