123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- <?xml version="1.0" encoding="UTF-8"?>
-
- <!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd">
-
- <suite>
-
- <!-- driven from JUnit by HarnessSelectionTest.testIncrementalSuite() -->
- <!--
- Using OldAjc (no inc-compile), get two errors (updated file not found (b/c cleared?),
- deleted file not found.
- -->
-
- <!--
- test harness ability to update and delete source files to prep for a compile
- -->
-
- <ajc-test dir="sourceDeleted" title="delete file" keywords="incremental-test"
- comment="moved to ajcTests{Failing}.xml">
- <compile staging="true" options="-incremental" sourceroots="."/>
- <run class="delete.Main"/>
- <inc-compile tag="20">
- <dir-changes removed="delete.DeleteMe"/>
- <message kind="error" line="6" file="delete/Target.java"/>
- </inc-compile>
- <inc-compile tag="30"/>
- <run class="delete.Main"/>
- </ajc-test>
-
- <ajc-test dir="sourceAdded" title="add file with class" keywords="incremental-test" >
- <compile staging="true" options="-incremental" sourceroots="."/>
- <run class="main.Main"/>
- <inc-compile tag="20">
- <dir-changes added="main.Target"/>
- </inc-compile>
- <inc-compile tag="30">
- <dir-changes updated="main.Main"/>
- </inc-compile>
- <run class="main.Main"/>
- </ajc-test>
-
- <ajc-test dir="defaultPackage" title="do everything in default package" keywords="incremental-test" >
- <compile staging="true" options="-incremental" sourceroots="."/>
- <run class="Main"/>
- <inc-compile tag="20">
- <dir-changes added="Target"/>
- </inc-compile>
- <run class="Target" skipTester="true"/>
- <inc-compile tag="30">
- <dir-changes updated="Main"/>
- </inc-compile>
- <run class="Main" skipTester="true"/>
- <inc-compile tag="40">
- <dir-changes updated="Main" removed="Target"/>
- </inc-compile>
- <run class="Main"/>
- </ajc-test>
-
- <!--
- test harness detection of .class file added, removed, or changed
- as a result of the compile process.
- XXX test dir-changes for JavaRun, CompilerRun
- XXX document special handling of dir-changes paths as FQN for .class suffix
- XXX need negative tests, fails reported
- -->
- <ajc-test dir="classAdded" title="expect class added" keywords="incremental-test" >
- <compile staging="true" options="-incremental" sourceroots="."/>
- <run class="main.Main"/>
- <inc-compile tag="20" >
- <dir-changes added="main.Target"/>
- </inc-compile>
- <run class="main.Main" skipTester="true"/>
- </ajc-test>
-
- <ajc-test dir="classRemoved" title="expect class removed" keywords="incremental-test" >
- <compile staging="true" options="-incremental" sourceroots="."/>
- <run class="main.Main"/>
- <inc-compile tag="20">
- <dir-changes removed="main.Target"/>
- </inc-compile>
- <run class="main.Main"/>
- </ajc-test>
-
- <ajc-test dir="classUpdated" title="expect class updated" keywords="incremental-test" >
- <compile staging="true" options="-incremental" sourceroots="."/>
- <run class="main.Main"/>
- <inc-compile tag="20">
- <dir-changes updated="main.Main"/>
- </inc-compile>
- <run class="main.Main"/>
- </ajc-test>
-
- <!-- this test cannot work with new AjAttribute.MethodDeclarationLineNumberAttribute attribute
- since the attribute will be generated for the main method, and has a different reference
- on each serialization
- <ajc-test dir="expClasses" title="expected class tree" keywords="incremental-test" >
- <compile files="Main.java">
- <dir-changes expDir="exp"/>
- </compile>
- <run class="Main"/>
- </ajc-test>
- -->
-
- </suite>
|