]> source.dussan.org Git - aspectj.git/commitdiff
added two harness test cases, for classpath (jar and dir)
authorwisberg <wisberg>
Mon, 6 Jan 2003 23:13:22 +0000 (23:13 +0000)
committerwisberg <wisberg>
Mon, 6 Jan 2003 23:13:22 +0000 (23:13 +0000)
and aspectpath.

Currently all cases using ErrorWarning.java give
unexpected results because the declare warning does
not work.

tests/ajcHarnessTests.xml

index cfe5f3456599649e18df08ed5b5606803f4cadb6..bc7a1b550e7781df3d5d9cae98dc8b4e77fab7ea 100644 (file)
@@ -2,6 +2,10 @@
 <!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd">
 
 <!--
+    To log unexpected results, run
+        with -logPass -ajctestRequireKeywords=expect-fail
+     or with -logFail -ajctestSkipKeywords=expect-fail
+
     hmm.  not running suite if any test fails setup?
     
     <ajc-test dir="new" title="bad arguments passed to ajc"
@@ -23,6 +27,7 @@
      keywords="expect-fail">
         <compile files="NoSuchFile.java"/>
     </ajc-test>
+
     <ajc-test dir="harness"
       title="1 error and 1 warning, with warning line wrong"
      keywords="expect-fail">
@@ -59,7 +64,8 @@
 
     <ajc-test dir="harness"
       title="1 error and 1 warning, failed to specify expected warning "
-     keywords="expect-fail">
+     keywords="expect-fail"
+     comment="unexpected pass b/c 1.1 bug: declare fails to warn">
         <compile files="ErrorWarning.java">
             <message kind="error" line="13"/>
         </compile>
         <compile files="TestNoTester.java"/>
         <run class="TestNoTester" skipTester="true"/>
     </ajc-test>
+
+    <ajc-test dir="harness/classpathTest"
+      title="specify jars and directories on classpath"
+      keywords="purejava">
+        <compile classpath="classesDir,jars/required.jar" 
+                 files="Main.java"/>
+        <run class="Main"/>
+    </ajc-test>
+
+    <ajc-test dir="harness/classpathTest"
+      title="specify aspectpath and classpath jars and directories">
+        <compile classpath="classesDir,jars/required.jar"
+                 aspectpath="jars/requiredAspects.jar"
+                 files="AspectMain.java"/>
+        <run class="AspectMain"/>
+    </ajc-test>
+
 </suite>