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.

suite.xml 3.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd">
  3. <suite>
  4. <!-- driven from JUnit by HarnessSelectionTest.testIncrementalSuite() -->
  5. <!--
  6. Using OldAjc (no inc-compile), get two errors (updated file not found (b/c cleared?),
  7. deleted file not found.
  8. -->
  9. <!--
  10. test harness ability to update and delete source files to prep for a compile
  11. -->
  12. <ajc-test dir="sourceDeleted" title="delete file" keywords="incremental-test"
  13. comment="moved to ajcTests{Failing}.xml">
  14. <compile staging="true" options="-incremental" sourceroots="."/>
  15. <run class="delete.Main"/>
  16. <inc-compile tag="20">
  17. <dir-changes removed="delete.DeleteMe"/>
  18. <message kind="error" line="6" file="delete/Target.java"/>
  19. </inc-compile>
  20. <inc-compile tag="30"/>
  21. <run class="delete.Main"/>
  22. </ajc-test>
  23. <ajc-test dir="sourceAdded" title="add file with class" keywords="incremental-test" >
  24. <compile staging="true" options="-incremental" sourceroots="."/>
  25. <run class="main.Main"/>
  26. <inc-compile tag="20">
  27. <dir-changes added="main.Target"/>
  28. </inc-compile>
  29. <inc-compile tag="30">
  30. <dir-changes updated="main.Main"/>
  31. </inc-compile>
  32. <run class="main.Main"/>
  33. </ajc-test>
  34. <ajc-test dir="defaultPackage" title="do everything in default package" keywords="incremental-test" >
  35. <compile staging="true" options="-incremental" sourceroots="."/>
  36. <run class="Main"/>
  37. <inc-compile tag="20">
  38. <dir-changes added="Target"/>
  39. </inc-compile>
  40. <run class="Target" skipTester="true"/>
  41. <inc-compile tag="30">
  42. <dir-changes updated="Main"/>
  43. </inc-compile>
  44. <run class="Main" skipTester="true"/>
  45. <inc-compile tag="40">
  46. <dir-changes updated="Main" removed="Target"/>
  47. </inc-compile>
  48. <run class="Main"/>
  49. </ajc-test>
  50. <!--
  51. test harness detection of .class file added, removed, or changed
  52. as a result of the compile process.
  53. XXX test dir-changes for JavaRun, CompilerRun
  54. XXX document special handling of dir-changes paths as FQN for .class suffix
  55. XXX need negative tests, fails reported
  56. -->
  57. <ajc-test dir="classAdded" title="expect class added" keywords="incremental-test" >
  58. <compile staging="true" options="-incremental" sourceroots="."/>
  59. <run class="main.Main"/>
  60. <inc-compile tag="20" >
  61. <dir-changes added="main.Target"/>
  62. </inc-compile>
  63. <run class="main.Main" skipTester="true"/>
  64. </ajc-test>
  65. <ajc-test dir="classRemoved" title="expect class removed" keywords="incremental-test" >
  66. <compile staging="true" options="-incremental" sourceroots="."/>
  67. <run class="main.Main"/>
  68. <inc-compile tag="20">
  69. <dir-changes removed="main.Target"/>
  70. </inc-compile>
  71. <run class="main.Main"/>
  72. </ajc-test>
  73. <ajc-test dir="classUpdated" title="expect class updated" keywords="incremental-test" >
  74. <compile staging="true" options="-incremental" sourceroots="."/>
  75. <run class="main.Main"/>
  76. <inc-compile tag="20">
  77. <dir-changes updated="main.Main"/>
  78. </inc-compile>
  79. <run class="main.Main"/>
  80. </ajc-test>
  81. <!-- this test cannot work with new AjAttribute.MethodDeclarationLineNumberAttribute attribute
  82. since the attribute will be generated for the main method, and has a different reference
  83. on each serialization
  84. <ajc-test dir="expClasses" title="expected class tree" keywords="incremental-test" >
  85. <compile files="Main.java">
  86. <dir-changes expDir="exp"/>
  87. </compile>
  88. <run class="Main"/>
  89. </ajc-test>
  90. -->
  91. </suite>