org.aspectj/testing-drivers/testdata/incremental/harness/suite.xml
acolyer 65c67a4e84 fix for Bugzilla Bug 37020
wrong line for method execution join point
2004-08-19 12:29:04 +00:00

104 lines
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>