You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

incremental-junit-tests.xml 10KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371
  1. <!-- Incremental compilation Tests -->
  2. <ajc-test dir="incrementalju/initialTests/classAdded"
  3. title="expect class added in initial incremental tests"
  4. keywords="incremental-test" >
  5. <compile staging="true"
  6. options="-incremental"
  7. sourceroots="src"/>
  8. <run class="main.Main"/>
  9. <!--
  10. <inc-compile tag="20" >
  11. <dir-changes added="main.Target"/>
  12. </inc-compile>
  13. <run class="main.Main" skipTester="true"/>
  14. -->
  15. </ajc-test>
  16. <ajc-test dir="incrementalju/initialTests/classRemoved"
  17. title="expect class removed in initial incremental tests"
  18. keywords="incremental-test" >
  19. <compile staging="true"
  20. options="-incremental"
  21. sourceroots="src"/>
  22. <run class="main.Main"/>
  23. <!--
  24. <inc-compile tag="20">
  25. <dir-changes removed="main.Target"/>
  26. </inc-compile>
  27. <run class="main.Main"/>
  28. -->
  29. </ajc-test>
  30. <ajc-test dir="incrementalju/initialTests/classUpdated"
  31. title="expect class updated in initial incremental tests"
  32. keywords="incremental-test" >
  33. <compile staging="true"
  34. options="-incremental"
  35. sourceroots="src"/>
  36. <run class="main.Main"/>
  37. <!--
  38. <inc-compile tag="20">
  39. <dir-changes updated="main.Main"/>
  40. </inc-compile>
  41. <run class="main.Main"/>
  42. -->
  43. </ajc-test>
  44. <ajc-test dir="incrementalju/initialTests/sourceAdded"
  45. title="add file with class"
  46. comment="only expecting pickup if sourceroots"
  47. keywords="incremental-test" >
  48. <compile staging="true"
  49. options="-incremental"
  50. sourceroots="src"/>
  51. <run class="main.Main"/>
  52. <!--
  53. <inc-compile tag="20">
  54. <dir-changes added="main.Target"/>
  55. </inc-compile>
  56. <inc-compile tag="30">
  57. <dir-changes updated="main.Main"/>
  58. </inc-compile>
  59. <run class="main.Main"/>
  60. -->
  61. </ajc-test>
  62. <ajc-test dir="incrementalju/initialTests/sourceDeleted"
  63. title="delete source file before incremental compile"
  64. comment="build config should permit file deletions for incremental (sourceroots)"
  65. keywords="incremental-test" >
  66. <compile staging="true"
  67. options="-incremental"
  68. sourceroots="src"/>
  69. <run class="delete.Main"/>
  70. <!--
  71. <inc-compile tag="20">
  72. <dir-changes removed="delete.DeleteMe"/>
  73. <message kind="error" line="6" file="delete/Target.java"/>
  74. </inc-compile>
  75. <inc-compile tag="30"/>
  76. <run class="delete.Main"/>
  77. -->
  78. </ajc-test>
  79. <ajc-test dir="incrementalju/initialTests/defaultPackage"
  80. title="do everything in default package (sourceroots)"
  81. keywords="incremental-test" >
  82. <compile staging="true"
  83. options="-incremental"
  84. sourceroots="src"/>
  85. <run class="Main"/>
  86. <!--
  87. <inc-compile tag="20">
  88. <dir-changes added="Target"/>
  89. </inc-compile>
  90. <run class="Target" skipTester="true"/>
  91. <inc-compile tag="30">
  92. <dir-changes updated="Main"/>
  93. </inc-compile>
  94. <run class="Main" skipTester="true"/>
  95. <inc-compile tag="40">
  96. <message kind="error" line="6" file="Main.java"/>
  97. </inc-compile>
  98. <inc-compile tag="50"/>
  99. <run class="Main"/>
  100. -->
  101. </ajc-test>
  102. <ajc-test dir="incrementalju/defaultPackage"
  103. keywords="incremental-test"
  104. title="change sources in default package">
  105. <compile
  106. staging="true"
  107. options="-incremental"
  108. sourceroots="src"/>
  109. <run class="Main"/>
  110. <!--
  111. <inc-compile tag="20"/>
  112. <run class="Main"/>
  113. -->
  114. </ajc-test>
  115. <ajc-test dir="incrementalju/interPackage"
  116. keywords="incremental-test"
  117. title="change source">
  118. <compile
  119. staging="true"
  120. options="-incremental"
  121. sourceroots="src"/>
  122. <run class="app.Main"/>
  123. <!--
  124. <inc-compile tag="20"/>
  125. <run class="app.Main"/>
  126. -->
  127. </ajc-test>
  128. <ajc-test dir="incrementalju/stringliteral"
  129. keywords="incremental-test"
  130. title="incrementally change only string literal, still expect advice">
  131. <compile staging="true" options="-incremental"
  132. sourceroots="src"/>
  133. <run class="packageOne.Main"
  134. options="in packageOne.Main.main(..),before main packageOne.Main"/>
  135. <!--
  136. <inc-compile tag="20">
  137. <dir-changes updated="packageOne.Main"/>
  138. </inc-compile>
  139. <run class="packageOne.Main"
  140. options="in longer packageOne.Main.main(..),
  141. before main packageOne.Main"/>
  142. -->
  143. </ajc-test>
  144. <ajc-test dir="incrementalju/initialTests/aspectSourceAdded"
  145. title="add aspect source file and check world is rewoven"
  146. keywords="incremental-test" >
  147. <compile staging="true"
  148. options="-incremental"
  149. sourceroots="src"/>
  150. <!--
  151. <inc-compile tag="20">
  152. <dir-changes added="Detour"/>
  153. </inc-compile>
  154. <run class="Main"/>
  155. -->
  156. </ajc-test>
  157. <ajc-test dir="incrementalju/initialTests/classWAroundClosureRemoved"
  158. title="make sure additional classes generated during weave are deleted with src class file"
  159. keywords="incremental-test">
  160. <compile staging="true"
  161. options="-incremental"
  162. sourceroots="src"/>
  163. <!--
  164. <inc-compile tag="20" >
  165. <dir-changes removed="AdviceOnIntroduced$AjcClosure1"/>
  166. </inc-compile>
  167. -->
  168. </ajc-test>
  169. <ajc-test dir="incrementalju/full-rebuild"
  170. pr="59895"
  171. title="incremental with aspect-driven full rebuild">
  172. <compile
  173. staging="true"
  174. sourceroots="src"
  175. options="-incremental">
  176. <message kind="error" line="3" file="Aspect.java"/>
  177. </compile>
  178. <!--
  179. <inc-compile tag="20">
  180. <message kind="warning" line="3" file="Main.java"/>
  181. </inc-compile>
  182. <run class="Main"/>
  183. -->
  184. </ajc-test>
  185. <ajc-test dir="incrementalju/resourceTests/resourceAdded"
  186. pr="54622"
  187. title="incremental with addition of resource to inpath directory">
  188. <compile
  189. staging="true"
  190. sourceroots="src"
  191. options="-incremental"
  192. inpath="indir">
  193. </compile>
  194. <!--
  195. <inc-compile tag="20">
  196. </inc-compile>
  197. <run class="Main"/>
  198. -->
  199. </ajc-test>
  200. <ajc-test dir="incrementalju/resourceTests/resourceAdded"
  201. pr="54622"
  202. title="incremental with addition of resource to inpath jar">
  203. <compile
  204. staging="true"
  205. sourceroots="src"
  206. options="-incremental"
  207. inpath="MyJar.jar">
  208. </compile>
  209. <!--
  210. <inc-compile tag="20">
  211. <dir-changes added="AResourceFile.txt"/>
  212. </inc-compile>
  213. <run class="Main"/>
  214. -->
  215. </ajc-test>
  216. <ajc-test dir="incrementalju/resourceTests/resourceRemoved"
  217. pr="54622"
  218. title="incremental with removal of resource from inpath jar">
  219. <compile
  220. staging="true"
  221. sourceroots="src"
  222. options="-incremental"
  223. inpath="MyJar.jar">
  224. </compile>
  225. <!--
  226. <inc-compile tag="20">
  227. <dir-changes removed="AResourceFile.txt"/>
  228. </inc-compile>
  229. <run class="Main"/>
  230. -->
  231. </ajc-test>
  232. <ajc-test dir="incrementalju/injarTests/classAdded"
  233. pr="54621"
  234. title="incremental with addition of class to inpath jar">
  235. <compile
  236. staging="true"
  237. sourceroots="src"
  238. options="-incremental"
  239. inpath="MyJar.jar">
  240. </compile>
  241. <!--
  242. <inc-compile tag="20">
  243. <dir-changes added="Hello2"/>
  244. </inc-compile>
  245. <run class="Main"/>
  246. -->
  247. </ajc-test>
  248. <ajc-test dir="incrementalju/injarTests/classRemoved"
  249. pr="54621"
  250. title="incremental with removal of class from inpath jar">
  251. <compile
  252. staging="true"
  253. sourceroots="src"
  254. options="-incremental"
  255. inpath="MyJar.jar">
  256. </compile>
  257. <!--
  258. <inc-compile tag="20">
  259. <dir-changes removed="Hello2"/>
  260. </inc-compile>
  261. <run class="Main"/>
  262. -->
  263. </ajc-test>
  264. <ajc-test dir="incrementalju/injarTests/classAdded"
  265. pr="54621"
  266. title="incremental with addition of class to injar jar">
  267. <compile
  268. staging="true"
  269. sourceroots="src"
  270. options="-incremental,-injars,MyJar.jar">
  271. </compile>
  272. <!--
  273. <inc-compile tag="20">
  274. <dir-changes added="Hello2"/>
  275. </inc-compile>
  276. <run class="Main"/>
  277. -->
  278. </ajc-test>
  279. <ajc-test dir="incrementalju/injarTests/classRemoved"
  280. pr="54621"
  281. title="incremental with removal of class from injar jar">
  282. <compile
  283. staging="true"
  284. sourceroots="src"
  285. options="-incremental,-injars,MyJar.jar"
  286. inpath="MyJar.jar">
  287. </compile>
  288. <!--
  289. <inc-compile tag="20">
  290. <dir-changes removed="Hello2"/>
  291. </inc-compile>
  292. <run class="Main"/>
  293. -->
  294. </ajc-test>
  295. <ajc-test dir="incrementalju/inpathDirTests/classAdded"
  296. pr="54621"
  297. title="incremental with addition of class to inpath dir">
  298. <compile
  299. staging="true"
  300. sourceroots="src"
  301. options="-incremental"
  302. inpath="indir">
  303. </compile>
  304. <!--
  305. <inc-compile tag="20">
  306. <dir-changes added="Hello2"/>
  307. </inc-compile>
  308. <run class="Main"/>
  309. -->
  310. </ajc-test>
  311. <ajc-test dir="incrementalju/inpathDirTests/classRemoved"
  312. pr="54621"
  313. title="incremental with removal of class from inpath dir">
  314. <compile
  315. staging="true"
  316. sourceroots="src"
  317. options="-incremental"
  318. inpath="indir">
  319. </compile>
  320. <!--
  321. <inc-compile tag="20">
  322. <dir-changes removed="Hello2"/>
  323. </inc-compile>
  324. <run class="Main"/>
  325. -->
  326. </ajc-test>
  327. <ajc-test dir="incrementalju/inpathDirTests/classUpdated"
  328. pr="54621"
  329. title="incremental with update of class in inpath dir">
  330. <compile
  331. staging="true"
  332. sourceroots="src"
  333. options="-incremental"
  334. inpath="indir">
  335. </compile>
  336. <!--
  337. <inc-compile tag="20">
  338. </inc-compile>
  339. <run class="Main"/>
  340. -->
  341. </ajc-test>