鏡像自
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-08-28 17:57:06 +02:00
104 行
3.8 KiB
XML
104 行
3.8 KiB
XML
<?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>
|