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.

test-other-systems.xml 41KB

21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069
  1. <!-- -*- Mode: SGML; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- -->
  2. <!-- ========================================================================= -->
  3. <!-- Copyright (c) 2002 Palo Alto Research Center, Incorporated (PARC). -->
  4. <!-- All rights reserved. -->
  5. <!-- This program and the accompanying materials are made available -->
  6. <!-- under the terms of the Eclipse Public License v 2.0 -->
  7. <!-- which accompanies this distribution and is available at -->
  8. <!-- https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt -->
  9. <!-- -->
  10. <!-- Contributors: -->
  11. <!-- Xerox/PARC initial implementation -->
  12. <!-- ========================================================================= -->
  13. <!-- ============================================================== -->
  14. <!-- - N O T E S - -->
  15. <!-- -->
  16. <!-- All tests use common source directory, common system classes, -->
  17. <!-- and common temporary directories. Thus, the setup required: -->
  18. <!-- - The temporary directories are created by the script. -->
  19. <!-- - Build the ajctest taskdef into ${ajctest.pathelement} -->
  20. <!-- - Build the MainWrapper into ${ajctest.mainwrapper.jar} -->
  21. <!-- - Aspectj runtime classes must be in ${aspectjrt.jar} -->
  22. <!-- - The source directory combines internal and external sources. -->
  23. <!-- Internal source is from cvs, external is from a zip file, and -->
  24. <!-- both are combined in cvs. This should be changeable with -->
  25. <!-- only a few edits to combine in a third directory or read from -->
  26. <!-- a single repository. Also used are rt.jar and tools.jar. -->
  27. <!-- The jars and zips are used in-place rather than copying. -->
  28. <!-- Also note: -->
  29. <!-- - to avoid running the huge tests, define ${skip.hard.tests} -->
  30. <!-- - todo: time tests and put in target description -->
  31. <!-- -->
  32. <!-- ============================================================== -->
  33. <!-- @process-test ajc test-other-systems.xml test # run 3P ajc tests -->
  34. <project name="test-other-systems" default="test" basedir=".">
  35. <property name="project.name" value="ajctest"/>
  36. <target name="info">
  37. <echo>
  38. Runs cycles of ajc/ajdoc/java on other large systems,
  39. using taskdef in testing module. Expected and generated files:
  40. aj-build/
  41. jars/
  42. testing-drivers-all.jar # taskdef and required libraries
  43. lib/
  44. test-other-systems/
  45. other-systems-src.zip # sources for other systems
  46. lib/ # libraries for sources (unused?XXX)
  47. rt.jar
  48. tools.jar
  49. tests/
  50. test-other-systems.xml # this script - run from this directory
  51. other-systems/ # aspect sources
  52. aj-other-systems-temp/ # temporary build files
  53. other-systems/ # generated, contains other-systems plus library src
  54. classes/
  55. lib/ # copy of libraries above
  56. rt.jar
  57. tools.jar
  58. </echo>
  59. </target>
  60. <!-- ============================================================ -->
  61. <!-- Init -->
  62. <!-- ============================================================ -->
  63. <target name="init" >
  64. <echo message="init ajctest.xml"/>
  65. <!-- base dir for other-systems test sources -->
  66. <property name="other-systems.base.dir"
  67. location="${basedir}"/>
  68. <property name="jdk.tools.jar"
  69. location="XXXTODO_DEFINE_TOOLS.jar"/>
  70. <property name="aspectj.modules.dir"
  71. location="${basedir}/.."/>
  72. <property name="aj.build.results.dir"
  73. location="${aspectj.modules.dir}/aj-build"/>
  74. <property name="aspectj.modules.lib.dir"
  75. location="${aspectj.modules.dir}/lib"/>
  76. <property name="aspectj.other-systems.lib.dir"
  77. location="${aspectj.modules.lib.dir}/test-other-systems"/>
  78. <!-- ============================================================ -->
  79. <!-- Global properties - require aspectj.init -->
  80. <!-- ============================================================ -->
  81. <!-- base dir for our internal other-systems test sources -->
  82. <!-- base dir for other-systems test sources -->
  83. <!-- zip of other-systems test sources -->
  84. <!-- temporary base dir for unzipped test data is not in build temp dir b/c costly -->
  85. <property name="aj.otherSystems.dir"
  86. location="${basedir}/aj-other-systems"/>
  87. <!-- source files -->
  88. <property name="aj.otherSystems.src.dir"
  89. location="${aj.otherSystems.dir}/src"/>
  90. <property name="aj.otherSystems.lib.dir"
  91. location="${aj.otherSystems.dir}/lib"/>
  92. <!-- temp classes dir -->
  93. <property name="output.classes.dir"
  94. location="${aj.otherSystems.dir}/classes"/>
  95. <!-- run from source files directory -->
  96. <property name="otherSystems.run.dir"
  97. location="${aj.otherSystems.src.dir}"/>
  98. <!-- XXX dependency on ../build/build.xml value for jar output position -->
  99. <property name="aj.jar.dir"
  100. location="${aj.build.results.dir}/jars"/>
  101. <property name="aj.modules.runtime.jar"
  102. location="${aj.jar.dir}/runtime.jar"/>
  103. <property name="aj.modules.eajctesting.jar"
  104. location="${aj.jar.dir}/testing-drivers-all.jar"/>
  105. <property name="ajctest.classpath"
  106. value="${aj.modules.eajctesting.jar}" />
  107. <!-- unzipped libraries -->
  108. <property name="otherSystems.src.zip"
  109. location="${aspectj.other-systems.lib.dir}/other-systems-src.zip"/>
  110. <!-- unused?
  111. <property name="otherSystems.runtime.jar"
  112. location="${aj.otherSystems.dir}/lib/rt.jar"/>
  113. <property name="otherSystems.tools.jar"
  114. location="${aj.otherSystems.dir}/lib/tools.jar"/>
  115. -->
  116. <!-- sensible alias to combined other-systems test sources -->
  117. <property name="ajctest.src.dir"
  118. value="${aj.otherSystems.src.dir}"/>
  119. <!-- runtime classes passed to ajctest using classpath -->
  120. <property name="aj.runtime.classes"
  121. value="${aj.modules.runtime.jar}"/>
  122. <!-- set args applied to ajc when running all tests -->
  123. <property name="ajctest.args"
  124. value="" />
  125. <!-- sources installed? assume everything else is... -->
  126. <available property="prepare.completed"
  127. file="${aj.otherSystems.src.dir}/rsa/src/JCETest.java" />
  128. <!-- check if testing classes are available -->
  129. <available property="aj.modules.runtime.jar.available"
  130. file="${aj.modules.runtime.jar}" />
  131. <available property="aj.modules.eajctesting.jar.available"
  132. file="${aj.modules.eajctesting.jar}" />
  133. <available property="otherSystems.src.zip.available"
  134. file="${otherSystems.src.zip}" />
  135. <!-- XXX properties used in testing..Ajctest.java -->
  136. <property name="ajctest.pathelement"
  137. location="${aj.modules.eajctesting.jar}" />
  138. <!-- todo: testing.jar for wrapper - only need MainWrapper classes -->
  139. <property name="ajctest.wrapper.jar"
  140. location="${aj.modules.eajctesting.jar}" />
  141. <!-- echo settings that affect running -->
  142. <echo>
  143. "## ajctest FYI -----------------------------------"
  144. "## skip.hard.tests: ${skip.hard.tests}"
  145. "## ajctest.classpath: ${ajctest.classpath}"
  146. "## ajctest.args: ${ajctest.args}"
  147. "## ajctest.compiler: ${ajctest.compiler}"
  148. "## ajctest.wrapper.jar: ${ajctest.wrapper.jar}"
  149. "## ajctest -----------------------------------"
  150. </echo>
  151. <taskdef name="ajctest"
  152. classname="org.aspectj.internal.tools.ant.taskdefs.Ajctest"
  153. classpath="${ajctest.classpath}" />
  154. <!-- setup needed directories -->
  155. <mkdir dir="${output.classes.dir}"/>
  156. <mkdir dir="${ajctest.src.dir}"/>
  157. <!-- echo context -->
  158. <!-- antcall target="echo.build.variables"/ -->
  159. </target>
  160. <target name="warnings" depends="init">
  161. <fail unless="aj.modules.runtime.jar.available"
  162. message="build runtime: ${aj.modules.runtime.jar}"/>
  163. <fail unless="aj.modules.eajctesting.jar.available"
  164. message="build ${aj.modules.eajctesting.jar} using
  165. ant build.xml build-testing-drivers
  166. "/>
  167. <fail unless="otherSystems.src.zip.available"
  168. message="get ${otherSystems.src.zip}"/>
  169. </target>
  170. <!-- ============================================================ -->
  171. <!-- Prepare internal and external source -->
  172. <!-- ============================================================ -->
  173. <target name="prepare" depends="init,warnings"
  174. unless="prepare.completed">
  175. <copy todir="${aj.otherSystems.src.dir}" >
  176. <fileset dir="${basedir}/other-systems"/>
  177. </copy>
  178. <unzip dest="${aj.otherSystems.src.dir}"
  179. src="${otherSystems.src.zip}"/>
  180. </target>
  181. <!-- ============================================================ -->
  182. <!-- Tests that pass - before refactoring (todo remove when done) -->
  183. <!-- ============================================================ -->
  184. <target name="temp-pass-tests"
  185. depends="rsa,biojava,jato,kawa,
  186. gnuprolog,jarp,jiu,
  187. tt-bytecode,xc4j,jmeter,bcel,
  188. jame,sablecc,examples,nsuml,jsci,
  189. applets"/>
  190. <!-- ============================================================ -->
  191. <!-- Tests that pass -->
  192. <!-- ============================================================ -->
  193. <target name="pass-tests"
  194. depends="rsa,biojava,jato,kawa,
  195. gnuprolog,jarp,jiu,
  196. tt-bytecode,xc4j,jmeter,bcel,
  197. jame,sablecc,examples,
  198. nsuml,jsci,
  199. ajc, java-src,
  200. applets, jedit"/>
  201. <!-- ============================================================ -->
  202. <!-- Tests that use a lot of resources -->
  203. <!-- ============================================================ -->
  204. <target name="hard-tests" depends="hard-ajc,hard-java-src"/>
  205. <!-- ============================================================ -->
  206. <!-- Test that should run last -->
  207. <!-- ============================================================ -->
  208. <target name="last-tests" depends="swing"/>
  209. <!-- ============================================================ -->
  210. <!-- All tests -->
  211. <!-- Depends on the passing tests and failing tests -->
  212. <!-- ============================================================ -->
  213. <target name="test" depends="pass-tests,hard-tests,last-tests"/>
  214. <!-- ============================================================ -->
  215. <!-- Clean the build directory -->
  216. <!-- todo: also clean internal of external sources? -->
  217. <!-- ============================================================ -->
  218. <target name="clean" unless="noclean">
  219. <delete dir="${output.classes.dir}"/>
  220. </target>
  221. <!-- ============================================================ -->
  222. <!-- compile target for the sake of orthogonal targets -->
  223. <!-- todo: add compile of required classes? -->
  224. <!-- ============================================================ -->
  225. <target name="compile" >
  226. <echo message="ajctest: no compile target"/>
  227. </target>
  228. <!-- ============================================================ -->
  229. <!-- target to test ajcclean and the build script -->
  230. <!-- ============================================================ -->
  231. <target name="testWrap" depends="prepare"
  232. description="(wes-only) target for testing ajclean and build scripts" >
  233. <ajctest testId="testWrap"
  234. dir="/home/wes/work/src"
  235. args="${ajctest.args}"
  236. destdir="${output.classes.dir}" >
  237. <classpath>
  238. <pathelement path="${output.classes.dir}"/>
  239. <pathelement path="${aj.runtime.classes}"/>
  240. </classpath>
  241. <java classname="TestWrap"/>
  242. <java classname="TestWrapException"/>
  243. <!-- testset argfiles="testwrapCompileError.lst" / -->
  244. <testset argfiles="testwrap.lst"/>
  245. </ajctest>
  246. </target>
  247. <!-- ============================================================ -->
  248. <!-- All the projects -->
  249. <!-- ============================================================ -->
  250. <target name="rsa" depends="prepare">
  251. <ajctest testId="rsa"
  252. dir="${ajctest.src.dir}/rsa"
  253. args="version,${ajctest.args}"
  254. destdir="${output.classes.dir}">
  255. <classpath>
  256. <pathelement path="${output.classes.dir}"/>
  257. <pathelement path="${aj.runtime.classes}"/>
  258. <pathelement path="${external.other-systems.runtime.jar}"/>
  259. <pathelement path="${external.other-systems.tools.jar}"/>
  260. </classpath>
  261. <java classname="SignatureTest"/>
  262. <java classname="JCETest"/>
  263. <testset argfiles="getssets.lst"/>
  264. <testset argfiles="main.lst"/>
  265. </ajctest>
  266. </target>
  267. <target name="biojava.depends" depends="prepare">
  268. <copy todir="${output.classes.dir}">
  269. <fileset dir="${ajctest.src.dir}/biojava/resources" includes="**/*.xml"/>
  270. </copy>
  271. </target>
  272. <target name="biojava" depends="prepare">
  273. <ajctest testId="biojava"
  274. dir="${ajctest.src.dir}/biojava"
  275. args="${ajctest.args}"
  276. destdir="${output.classes.dir}"
  277. depends="biojava.depends">
  278. <classpath>
  279. <fileset dir="${ajctest.src.dir}/biojava/lib">
  280. <include name="**/*.jar"/>
  281. </fileset>
  282. <pathelement path="${output.classes.dir}"/>
  283. <pathelement path="${aj.runtime.classes}"/>
  284. </classpath>
  285. <java classname="org.biojava.bio.seq.db.SimpleSequenceDBInstallation"/>
  286. <java classname="symbol.TestWindowedSymbolList"/>
  287. <java classname="symbol.TestSimpleAlignment"/>
  288. <java classname="symbol.TestOrderNSymbolList"/>
  289. <java classname="symbol.TestGappedSymbolList"/>
  290. <java classname="symbol.TestAmbiguity"/>
  291. <java classname="seq.TestTranslation"/>
  292. <java classname="seq.TestEmbl">
  293. <arg line="${ajctest.src.dir}/biojava/demos/files/AL121903.embl"/>
  294. </java>
  295. <java classname="seq.GCContent">
  296. <arg line="${ajctest.src.dir}/biojava/demos/files/short.fasta"/>
  297. </java>
  298. <java classname="gff.EmblToGffFasta">
  299. <arg line="${ajctest.src.dir}/biojava/demos/files/AL121903.embl"/>
  300. <arg line="${ajctest.src.dir}/biojava/demos/files/short.fasta"/>
  301. <arg line="${ajctest.src.dir}/biojava/demos/files/out.gff"/>
  302. </java>
  303. <java classname="eventbasedparsing.Pdb2XML">
  304. <arg line="${ajctest.src.dir}/biojava/demos/files/pdb/hmga_1.pdb"/>
  305. </java>
  306. <java classname="eventbasedparsing.BlastLike2XML">
  307. <arg line="${ajctest.src.dir}/biojava/demos/files/ncbiblast/shortBlastn.out"/>
  308. </java>
  309. <java classname="dp.ViterbiAlign"
  310. dir="${otherSystems.run.dir}" >
  311. <!-- used as file: URL, but cygwin //c/ looks like network file system -->
  312. <arg line="biojava/demos/files/fakepromoter.xml"/>
  313. <arg line="biojava/demos/files/short.fasta"/>
  314. </java>
  315. <java classname="dp.Dice"/>
  316. <java classname="ListChangeTypes">
  317. <arg line="org.biojava.bio.seq.impl.SimpleSequence"/>
  318. </java>
  319. <testset argfiles="all.lst"/>
  320. </ajctest>
  321. </target>
  322. <target name="jato.depends" depends="prepare">
  323. <copy todir="${output.classes.dir}">
  324. <fileset dir="${ajctest.src.dir}/jato/examples" includes="**/*.xml"/>
  325. <fileset dir="${ajctest.src.dir}/jato/lib" includes="**/*.xml"/>
  326. </copy>
  327. </target>
  328. <target name="jato" depends="prepare">
  329. <ajctest testId="jato"
  330. dir="${ajctest.src.dir}/jato"
  331. args="${ajctest.args}"
  332. destdir="${output.classes.dir}"
  333. depends="jato.depends">
  334. <classpath>
  335. <fileset dir="${ajctest.src.dir}/jato/lib">
  336. <include name="**/*.jar"/>
  337. </fileset>
  338. <pathelement path="${output.classes.dir}"/>
  339. <pathelement path="${aj.runtime.classes}"/>
  340. </classpath>
  341. <java classname="simple.SimpleJavaToXml"/>
  342. <!-- java classname="simple.SimpleXmlToJava"/ -->
  343. <testset argfiles="all.lst"/>
  344. </ajctest>
  345. </target>
  346. <target name="kawa" depends="prepare">
  347. <ajctest testId="kawa"
  348. dir="${ajctest.src.dir}/kawa"
  349. args="${ajctest.args}"
  350. destdir="${output.classes.dir}">
  351. <classpath>
  352. <pathelement path="${output.classes.dir}"/>
  353. <pathelement path="${aj.runtime.classes}"/>
  354. </classpath>
  355. <java classname="kawa.repl">
  356. <arg line="-d ${output.classes.dir}"/>
  357. <arg line="-P kawa/lib"/>
  358. <arg line="-C ${ajctest.src.dir}/kawa/kawa/lib/std_syntax.scm"/>
  359. <arg line="-C ${ajctest.src.dir}/kawa/kawa/lib/characters.scm"/>
  360. <arg line="-C ${ajctest.src.dir}/kawa/kawa/lib/files.scm"/>
  361. <arg line="-C ${ajctest.src.dir}/kawa/kawa/lib/keywords.scm"/>
  362. <arg line="-C ${ajctest.src.dir}/kawa/kawa/lib/misc.scm"/>
  363. <arg line="-C ${ajctest.src.dir}/kawa/kawa/lib/numbers.scm"/>
  364. <arg line="-C ${ajctest.src.dir}/kawa/kawa/lib/ports.scm"/>
  365. <arg line="-C ${ajctest.src.dir}/kawa/kawa/lib/quantities.scm"/>
  366. <arg line="-C ${ajctest.src.dir}/kawa/kawa/lib/reflection.scm"/>
  367. <arg line="-C ${ajctest.src.dir}/kawa/kawa/lib/strings.scm"/>
  368. <arg line="-C ${ajctest.src.dir}/kawa/kawa/lib/syntax.scm"/>
  369. <arg line="-C ${ajctest.src.dir}/kawa/kawa/lib/system.scm"/>
  370. <arg line="-C ${ajctest.src.dir}/kawa/kawa/lib/thread.scm"/>
  371. <arg line="-C ${ajctest.src.dir}/kawa/kawa/lib/vectors.scm"/>
  372. <arg line="-C ${ajctest.src.dir}/kawa/testsuite/mac-test.scm"/>
  373. <arg line="-C ${ajctest.src.dir}/kawa/testsuite/mac1.scm"/>
  374. <arg line="-C ${ajctest.src.dir}/kawa/testsuite/obj-test.scm"/>
  375. <arg line="-C ${ajctest.src.dir}/kawa/testsuite/test.scm"/>
  376. <arg line="-C ${ajctest.src.dir}/kawa/testsuite/testing.scm"/>
  377. </java>
  378. <testset argfiles="main.lst"/>
  379. </ajctest>
  380. </target>
  381. <target name="gnuprolog.depends" depends="prepare">
  382. <copy todir="${output.classes.dir}">
  383. <fileset dir="${ajctest.src.dir}/gnuprolog/src" includes="**/*.pro"/>
  384. </copy>
  385. </target>
  386. <target name="gnuprolog" depends="prepare">
  387. <ajctest testId="gnuprolog"
  388. dir="${ajctest.src.dir}/gnuprolog"
  389. args="${ajctest.args},lenient"
  390. destdir="${output.classes.dir}"
  391. depends="gnuprolog.depends">
  392. <classpath>
  393. <pathelement path="${output.classes.dir}"/>
  394. <pathelement path="${aj.runtime.classes}"/>
  395. </classpath>
  396. <testset argfiles="main.lst"/>
  397. </ajctest>
  398. </target>
  399. <target name="nsuml.depends" depends="prepare">
  400. <copy file="${ajctest.src.dir}/nsuml/src/ru/novosoft/uml/xmi/uml13.dtd"
  401. todir="${output.classes.dir}/ru/novosoft/uml/xmi"
  402. />
  403. </target>
  404. <target name="nsuml" depends="prepare">
  405. <ajctest testId="nsuml"
  406. dir="${ajctest.src.dir}/nsuml"
  407. args="JXmx256M,${ajctest.args}"
  408. destdir="${output.classes.dir}"
  409. depends="nsuml.depends">
  410. <classpath>
  411. <fileset dir="${ajctest.src.dir}/nsuml/lib">
  412. <include name="**/*.jar"/>
  413. </fileset>
  414. <pathelement path="${output.classes.dir}"/>
  415. <pathelement path="${aj.runtime.classes}"/>
  416. </classpath>
  417. <java classname="EventTest"/>
  418. <testset argfiles="all.lst"/>
  419. </ajctest>
  420. </target>
  421. <target name="jarp.depends" depends="prepare">
  422. <copy todir="${output.classes.dir}" filtering="yes">
  423. <fileset dir="${ajctest.src.dir}/jarp/src">
  424. <include name="**/*.properties" />
  425. </fileset>
  426. </copy>
  427. <copy todir="${output.classes.dir}" filtering="no">
  428. <fileset dir="${ajctest.src.dir}/jarp/src">
  429. <include name="**/*.gif" />
  430. </fileset>
  431. </copy>
  432. </target>
  433. <target name="jarp" depends="prepare">
  434. <ajctest testId="jarp"
  435. dir="${ajctest.src.dir}/jarp"
  436. args="${ajctest.args}"
  437. destdir="${output.classes.dir}"
  438. depends="jarp.depends">
  439. <classpath>
  440. <fileset dir="${ajctest.src.dir}/jato/lib">
  441. <include name="jdom*.jar"/>
  442. <include name="xerces*.jar"/>
  443. </fileset>
  444. <pathelement path="${output.classes.dir}"/>
  445. <pathelement path="${aj.runtime.classes}"/>
  446. </classpath>
  447. <java classname="org.jarp.Driver" dir="${output.classes.dir}" fork="yes"/>
  448. <testset argfiles="all.lst"/>
  449. </ajctest>
  450. </target>
  451. <target name="jiu.depends" depends="prepare">
  452. <delete dir="${ajctest.src.dir}/jiu/test-images/out"/>
  453. <mkdir dir="${ajctest.src.dir}/jiu/test-images/out"/>
  454. </target>
  455. <target name="jiu" depends="prepare">
  456. <ajctest testId="jiu"
  457. dir="${ajctest.src.dir}/jiu"
  458. args="${ajctest.args}"
  459. destdir="${output.classes.dir}"
  460. depends="jiu.depends">
  461. <java classname="net.sourceforge.jiu.apps.jiu">
  462. <classpath>
  463. <pathelement path="${output.classes.dir}"/>
  464. <pathelement path="${aj.runtime.classes}"/>
  465. </classpath>
  466. <arg value="-i"/>
  467. <arg value="${ajctest.src.dir}/jiu/test-images/in/airplane.ras"/>
  468. <arg value="-o"/>
  469. <arg value="${ajctest.src.dir}/jiu/test-images/out/airplane.ras"/>
  470. </java>
  471. <java classname="net.sourceforge.jiu.apps.jiu">
  472. <classpath>
  473. <pathelement path="${output.classes.dir}"/>
  474. <pathelement path="${aj.runtime.classes}"/>
  475. </classpath>
  476. <arg value="-i"/>
  477. <arg value="${ajctest.src.dir}/jiu/test-images/in/airplane.ras"/>
  478. <arg value="-c"/>
  479. </java>
  480. <testset argfiles="main.lst"/>
  481. </ajctest>
  482. </target>
  483. <target name="tt-bytecode" depends="prepare">
  484. <ajctest testId="tt-bytecode"
  485. dir="${ajctest.src.dir}/tt-bytecode"
  486. args="${ajctest.args}"
  487. destdir="${output.classes.dir}">
  488. <classpath>
  489. <pathelement path="${output.classes.dir}"/>
  490. <pathelement path="${aj.runtime.classes}"/>
  491. </classpath>
  492. <java classname="com.techtrader.modules.tools.bytecode.visitor.PrettyPrintVisitor">
  493. <arg value="java.lang.Throwable"/>
  494. </java>
  495. <java classname="com.techtrader.modules.tools.bytecode.visitor.PrettyPrintVisitor">
  496. <arg value="javax.swing.JComponent"/>
  497. </java>
  498. <java classname="com.techtrader.modules.tools.bytecode.visitor.PrettyPrintVisitor">
  499. <arg value="com.techtrader.modules.tools.bytecode.visitor.PrettyPrintVisitor"/>
  500. </java>
  501. <testset argfiles="main.lst"/>
  502. </ajctest>
  503. </target>
  504. <target name="xc4j" depends="prepare">
  505. <ajctest testId="xc4j"
  506. dir="${ajctest.src.dir}/xc4j"
  507. args="${ajctest.args}"
  508. destdir="${output.classes.dir}">
  509. <classpath>
  510. <fileset dir="${ajctest.src.dir}/xc4j/lib">
  511. <include name="**/*.jar"/>
  512. </fileset>
  513. <pathelement path="${output.classes.dir}"/>
  514. <pathelement path="${aj.runtime.classes}"/>
  515. </classpath>
  516. <java classname="net.sourceforge.xc4j.apps.samples.LexerTest">
  517. <arg value="${ajctest.src.dir}/xc4j/src/net/sourceforge/xc4j/apps/samples/LexerTest.java"/>
  518. </java>
  519. <java classname="net.sourceforge.xc4j.apps.samples.LexerTest">
  520. <arg value="${ant.file}"/>
  521. </java>
  522. <testset argfiles="all.lst"/>
  523. </ajctest>
  524. </target>
  525. <target name="jmeter" depends="prepare">
  526. <ajctest testId="jmeter"
  527. dir="${ajctest.src.dir}/jmeter"
  528. args="${ajctest.args}"
  529. destdir="${output.classes.dir}">
  530. <classpath>
  531. <fileset dir="${ajctest.src.dir}/jmeter/lib">
  532. <include name="**/*.jar"/>
  533. </fileset>
  534. <pathelement path="${output.classes.dir}"/>
  535. <pathelement path="${aj.runtime.classes}"/>
  536. </classpath>
  537. <testset argfiles="main.lst"/>
  538. </ajctest>
  539. </target>
  540. <target name="bcel" depends="prepare">
  541. <ajctest testId="bcel"
  542. dir="${ajctest.src.dir}/bcel"
  543. args="${ajctest.args}"
  544. destdir="${output.classes.dir}">
  545. <classpath>
  546. <pathelement path="${output.classes.dir}"/>
  547. <pathelement path="${aj.runtime.classes}"/>
  548. <pathelement path="."/> <!-- used by Peephole... -->
  549. </classpath>
  550. <!-- todo: put HelloWorld output in temp, not current dir -->
  551. <java classname="HelloWorldBuilder" />
  552. <java classname="JasminVisitor">
  553. <arg value="HelloWorld.class"/>
  554. </java>
  555. <java classname="Peephole">
  556. <arg value="HelloWorld"/>
  557. </java>
  558. <java classname="helloify">
  559. <arg value="HelloWorld.class"/>
  560. </java>
  561. <java classname="patchclass">
  562. <arg value="hello"/>
  563. <arg value="goodbye"/>
  564. <arg value="HelloWorld.class"/>
  565. </java>
  566. <java classname="listclass">
  567. <arg value="HelloWorld.class"/>
  568. <arg value="-constants"/>
  569. <arg value="-code"/>
  570. <arg value="HelloWorld.class"/>
  571. </java>
  572. <java classname="maxstack">
  573. <arg value="HelloWorld"/>
  574. </java>
  575. <testset argfiles="all.lst"/>
  576. </ajctest>
  577. </target>
  578. <!-- Stopped here -->
  579. <target name="jedit" depends="prepare">
  580. <ajctest testId="jedit"
  581. dir="${ajctest.src.dir}/jedit"
  582. args="JXmx256M,${ajctest.args}"
  583. destdir="${output.classes.dir}">
  584. <classpath>
  585. <pathelement path="${output.classes.dir}"/>
  586. <pathelement path="${aj.runtime.classes}"/>
  587. </classpath>
  588. <testset argfiles="main.lst"/>
  589. </ajctest>
  590. </target>
  591. <target name="jame" depends="prepare">
  592. <ajctest testId="jame"
  593. dir="${ajctest.src.dir}/jame"
  594. args="${ajctest.args}"
  595. destdir="${output.classes.dir}">
  596. <classpath>
  597. <pathelement path="${output.classes.dir}"/>
  598. <pathelement path="${aj.runtime.classes}"/>
  599. </classpath>
  600. <testset argfiles="main.lst"/>
  601. </ajctest>
  602. </target>
  603. <target name="sablecc" depends="prepare">
  604. <ajctest testId="sablecc"
  605. dir="${ajctest.src.dir}/sablecc"
  606. args="${ajctest.args}"
  607. destdir="${output.classes.dir}">
  608. <classpath>
  609. <pathelement path="${output.classes.dir}"/>
  610. <pathelement path="${aj.runtime.classes}"/>
  611. </classpath>
  612. <testset argfiles="main.lst,node-aspect.lst"/>
  613. <testset argfiles="main.lst,nodes-aspect.lst"/>
  614. <testset argfiles="main.lst"/>
  615. <testset argfiles="main.lst,parser-aspect.lst"/>
  616. <testset argfiles="main.lst,lexer-aspect.lst"/>
  617. </ajctest>
  618. </target>
  619. <target name="examples" depends="init">
  620. <property name="aj.tempExamples.dir"
  621. location="${aj.otherSystems.dir}/examples"/>
  622. <mkdir dir="${aj.tempExamples.dir}"/>
  623. <copy todir="${aj.tempExamples.dir}">
  624. <fileset dir="../docs/dist/doc/examples"/>
  625. </copy>
  626. <!-- copy to temp.examples.dir -->
  627. <ajctest testId="examples"
  628. dir="${aj.tempExamples.dir}"
  629. args="${ajctest.args}"
  630. destdir="${output.classes.dir}">
  631. <classpath>
  632. <pathelement path="${output.classes.dir}"/>
  633. <pathelement path="${aj.runtime.classes}"/>
  634. </classpath>
  635. <testset argfiles="bean/files.lst"
  636. classes="bean.Demo"/>
  637. <testset argfiles="coordination/lib.lst"
  638. classes=""/>
  639. <testset argfiles="introduction/files.lst"
  640. classes="introduction.CloneablePoint,
  641. introduction.ComparablePoint,
  642. introduction.HashablePoint,
  643. introduction.Point"/>
  644. <testset argfiles="observer/files.lst"
  645. classes=""/>
  646. <testset argfiles="spacewar/debug.lst"
  647. classes=""/>
  648. <testset argfiles="spacewar/demo.lst"
  649. classes=""/>
  650. <testset argfiles="telecom/basic.lst"
  651. classes="telecom.BasicSimulation"/>
  652. <testset argfiles="telecom/billing.lst"
  653. classes="telecom.BillingSimulation" />
  654. <testset argfiles="telecom/timing.lst"
  655. classes="telecom.TimingSimulation" />
  656. <testset argfiles="tjp/files.lst"
  657. classes="tjp.Demo"/>
  658. <testset argfiles="tracing/notrace.lst"
  659. classes="tracing.ExampleMain"/>
  660. <testset argfiles="tracing/tracelib.lst"
  661. classes="tracing.lib.TraceMyClasses"/>
  662. <testset argfiles="tracing/tracev1.lst"
  663. classes="tracing.version1.TraceMyClasses"/>
  664. <testset argfiles="tracing/tracev2.lst"
  665. classes="tracing.version2.TraceMyClasses"/>
  666. <testset argfiles="tracing/tracev3.lst"
  667. classes="tracing.version3.TraceMyClasses"/>
  668. </ajctest>
  669. </target>
  670. <target name="ajc" depends="prepare">
  671. <echo message="tools: ${jdk.tools.jar}"/>
  672. <ajctest testId="ajc"
  673. dir="${ajctest.src.dir}/ajc-src"
  674. args="time,JXmx256M,${ajctest.args}"
  675. destdir="${output.classes.dir}">
  676. <classpath>
  677. <pathelement path="${jdk.tools.jar}"/>
  678. <pathelement path="${output.classes.dir}"/>
  679. <pathelement path="${aj.runtime.classes}"/>
  680. </classpath>
  681. <testset argfiles="ajc.lst,mytrace.lst,../texecs.lst"/>
  682. <testset argfiles="ajc.lst,mytrace.lst,../tsets.lst"/>
  683. <testset argfiles="ajc.lst,mytrace.lst,../taround.lst"/>
  684. <testset argfiles="ajc.lst,mytrace.lst,../taround.lst,../texecs.lst"/>
  685. <testset argfiles="ajc.lst,showerror.lst"/>
  686. </ajctest>
  687. </target>
  688. <target name="hard-ajc" depends="prepare"
  689. unless="skip.hard.tests" >
  690. <ajctest testId="hard-ajc"
  691. dir="${ajctest.src.dir}/ajc-src"
  692. args="time,JXmx350M,${ajctest.args}"
  693. destdir="${output.classes.dir}">
  694. <classpath>
  695. <pathelement path="${jdk.tools.jar}"/>
  696. <pathelement path="${output.classes.dir}"/>
  697. <pathelement path="${aj.runtime.classes}"/>
  698. </classpath>
  699. <testset argfiles="ajc.lst,mytrace.lst,../tcalls.lst"/>
  700. <testset argfiles="ajc.lst,mytrace.lst,../treceps.lst"/>
  701. <!--testset argfiles="ajc.lst,mytrace.lst,../tcalls.lst,../texecs.lst,../tsets.lst"/-->
  702. <!--testset argfiles="ajc.lst,mytrace.lst,../tcalls.lst,../texecs.lst,../treceps.lst"/-->
  703. </ajctest>
  704. </target>
  705. <target name="java-src.depends" depends="prepare">
  706. <copy todir="${output.classes.dir}"
  707. file="${ajctest.src.dir}/java-src/tests/net/HttpTest.java"/>
  708. </target>
  709. <target name="java-src" depends="prepare">
  710. <ajctest testId="java-src"
  711. dir="${ajctest.src.dir}/java-src"
  712. args="JXmx256M,time,${ajctest.args}"
  713. destdir="${output.classes.dir}"
  714. depends="java-src.depends">
  715. <classpath>
  716. <pathelement path="${output.classes.dir}"/>
  717. <pathelement path="${aj.runtime.classes}"/>
  718. <pathelement path="${external.other-systems.runtime.jar}"/>
  719. <pathelement path="${external.other-systems.tools.jar}"/>
  720. </classpath>
  721. <testset argfiles="util.lst,tests.lst"/>
  722. <testset argfiles="util.lst,tests.lst,mytrace.lst,../texecs.lst"/>
  723. <testset argfiles="util.lst,tests.lst,mytrace.lst,../treceps.lst"/>
  724. <testset argfiles="util.lst,tests.lst,mytrace.lst,../tsets.lst"/>
  725. <testset argfiles="util.lst,tests.lst,mytrace.lst,../tcalls.lst"/>
  726. <testset argfiles="util.lst,tests.lst,mytrace.lst,../taround.lst"/>
  727. <!-- final one failing on small machines? -->
  728. <testset argfiles="util.lst,tests.lst,mytrace.lst,../taround.lst,../texecs.lst"/>
  729. <!-- do not run until you can run with the target classes in bootclasspath -->
  730. </ajctest>
  731. </target>
  732. <target name="swingtest.depends" depends="prepare">
  733. <mkdir dir="${output.classes.dir}/resources"/>
  734. <copy todir="${output.classes.dir}/resources">
  735. <fileset dir="${ajctest.src.dir}/java-src/tests/jfc/NotePad/resources"/>
  736. </copy>
  737. <mkdir dir="${output.classes.dir}/images"/>
  738. <copy todir="${output.classes.dir}/images">
  739. <fileset dir="${ajctest.src.dir}/java-src/tests/jfc/Metalworks/images"/>
  740. </copy>
  741. <mkdir dir="${output.classes.dir}/HelpFiles"/>
  742. <copy todir="${output.classes.dir}/HelpFiles">
  743. <fileset dir="${ajctest.src.dir}/java-src/tests/jfc/Metalworks/HelpFiles"/>
  744. </copy>
  745. <copy todir="${output.classes.dir}">
  746. <fileset dir="${ajctest.src.dir}/java-src/tests/jfc/Metalworks"
  747. includes="MyTheme.theme"/>
  748. </copy>
  749. <copy todir="${output.classes.dir}/resources">
  750. <fileset dir="${ajctest.src.dir}/java-src/tests/jfc/Stylepad/resources"/>
  751. </copy>
  752. </target>
  753. <target name="swingtest.warning">
  754. <echo>
  755. -------------------- INFORMATION ---------------------
  756. The following tests will print (but NOT throw)
  757. exceptions because of a known bug in swing:
  758. - FileChooserDemo
  759. - Metalworks
  760. Update: they fail to compile unless using proper JDK libraries
  761. -------------------- INFORMATION ---------------------
  762. </echo>
  763. </target>
  764. <target name="swing" depends="prepare">
  765. <ajctest testId="swing"
  766. dir="${otherSystems.run.dir}"
  767. args="JXmx256M,${ajctest.args}"
  768. destdir="${output.classes.dir}">
  769. <classpath>
  770. <pathelement path="${output.classes.dir}"/>
  771. <pathelement path="${aj.runtime.classes}"/>
  772. <pathelement path="${external.other-systems.runtime.jar}"/>
  773. <pathelement path="${external.other-systems.tools.jar}"/>
  774. </classpath>
  775. <testset argfiles="${rundir.to.runsrcdir}/java-src/swingtest.lst,
  776. ${rundir.to.runsrcdir}/java-src/swing.lst">
  777. <!-- omitting all swing test runs for now
  778. <java classname="Metalworks" fork="yes" dir="${output.classes.dir}">
  779. <jvmarg value="-Xbootclasspath/p:${output.classes.dir}"/>
  780. </java>
  781. <java classname="Stylepad" fork="yes">
  782. <jvmarg value="-Xbootclasspath/p:${output.classes.dir}"/>
  783. </java>
  784. <java classname="FileChooserDemo" fork="yes">
  785. <jvmarg value="-Xbootclasspath/p:${output.classes.dir}"/>
  786. </java>
  787. <java classname="Notepad" fork="yes">
  788. <jvmarg value="-Xbootclasspath/p:${output.classes.dir}"/>
  789. </java>
  790. -->
  791. </testset>
  792. </ajctest>
  793. </target>
  794. <target name="applets.depends" depends="prepare">
  795. <copy todir="${output.classes.dir}">
  796. <fileset dir="${ajctest.src.dir}/applets"
  797. includes="**/*.html,**/*.gif,**/*.au,**/*.obj,**/*.xyz"/>
  798. </copy>
  799. </target>
  800. <target name="applets" depends="prepare">
  801. <ajctest testId="applets"
  802. dir="${ajctest.src.dir}/applets"
  803. args="${ajctest.args}"
  804. destdir="${output.classes.dir}"
  805. depends="applets.depends">
  806. <classpath>
  807. <pathelement path="${output.classes.dir}"/>
  808. <pathelement path="${aj.runtime.classes}"/>
  809. </classpath>
  810. <java classname="AppletTester" fork="yes">
  811. <arg line="-basedir ${output.classes.dir}"/>
  812. </java>
  813. <testset argfiles="main.lst"/>
  814. </ajctest>
  815. </target>
  816. <target name="hard-java-src" depends="prepare"
  817. unless="skip.hard.tests" >
  818. <ajctest testId="hard-java-src"
  819. dir="${ajctest.src.dir}/java-src"
  820. args="JXmx400M,${ajctest.args}"
  821. destdir="${output.classes.dir}">
  822. <classpath>
  823. <pathelement path="${output.classes.dir}"/>
  824. <pathelement path="${aj.runtime.classes}"/>
  825. <pathelement path="${external.other-systems.runtime.jar}"/>
  826. <pathelement path="${external.other-systems.tools.jar}"/>
  827. </classpath>
  828. <testset argfiles="util.lst,mytrace.lst,../tcalls.lst,../texecs.lst,../treceps.lst"/>
  829. <testset argfiles="swing.lst,mytrace.lst,../tsets.lst"/>
  830. </ajctest>
  831. </target>
  832. <target name="jsci" depends="prepare">
  833. <ajctest testId="jsci"
  834. dir="${ajctest.src.dir}/jsci"
  835. args="${ajctest.args}"
  836. destdir="${output.classes.dir}">
  837. <classpath>
  838. <fileset dir="${ajctest.src.dir}/jsci/lib">
  839. <include name="**/*.jar"/>
  840. </fileset>
  841. <pathelement path="${output.classes.dir}"/>
  842. <pathelement path="${aj.runtime.classes}"/>
  843. </classpath>
  844. <testset argfiles="main.lst,examples.lst"/>
  845. <java classname="TestEigen"/>
  846. <java classname="TestWavelet"/>
  847. <java classname="TestWavelet2"/>
  848. </ajctest>
  849. </target>
  850. <!-- ============================================================ -->
  851. <!-- Tests for ajctest taskdef -->
  852. <!-- ============================================================ -->
  853. <target name="testAjctest"
  854. depends="testAjctest.fail,testAjctest.pass"/>
  855. <target name="testAjctest.pass"
  856. depends="testAjctest.exit.pass,testAjctest.normal.pass"/>
  857. <target name="testAjctest.fail"
  858. depends="testAjctest.exception.fail,testAjctest.error.fail,
  859. testAjctest.exit.fail,testAjctest.compileFailure.fail"/>
  860. <target name="testAjctest.depends"
  861. depends="prepare">
  862. <property name="testAjctest.src.dir"
  863. location="${basedir}/harness/ajctest"/>
  864. </target>
  865. <target name="testAjctest.all" depends="testAjctest.depends">
  866. <ajctest testId="testAjctest.all"
  867. dir="${testAjctest.src.dir}"
  868. args="version,${ajctest.args}"
  869. destdir="${output.classes.dir}">
  870. <classpath>
  871. <pathelement path="${output.classes.dir}"/>
  872. <pathelement path="${aj.runtime.classes}"/>
  873. </classpath>
  874. <java classname="Driver"/>
  875. <java classname="Driver">
  876. <arg line="-exit 0"/>
  877. </java>
  878. <java classname="Driver">
  879. <arg line="-exit 1"/>
  880. </java>
  881. <java classname="Driver">
  882. <arg line="-error errorMessage"/>
  883. </java>
  884. <java classname="Driver">
  885. <arg line="-exception exceptionMessage"/>
  886. </java>
  887. <testset argfiles="aspect.lst"/>
  888. <testset argfiles="driver.lst"/>
  889. <testset argfiles="error.lst"/>
  890. </ajctest>
  891. </target>
  892. <target name="testAjctest.normal.pass" depends="testAjctest.depends">
  893. <ajctest testId="testAjctest.normal.pass"
  894. dir="${testAjctest.src.dir}"
  895. args="version,${ajctest.args}"
  896. destdir="${output.classes.dir}">
  897. <classpath>
  898. <pathelement path="${output.classes.dir}"/>
  899. <pathelement path="${aj.runtime.classes}"/>
  900. </classpath>
  901. <java classname="Driver"/>
  902. <testset argfiles="aspect.lst"/>
  903. <testset argfiles="driver.lst"/>
  904. </ajctest>
  905. </target>
  906. <target name="testAjctest.exception.fail" depends="testAjctest.depends">
  907. <ajctest testId="testAjctest.exception.fail"
  908. dir="${testAjctest.src.dir}"
  909. args="version,${ajctest.args}"
  910. destdir="${output.classes.dir}">
  911. <classpath>
  912. <pathelement path="${output.classes.dir}"/>
  913. <pathelement path="${aj.runtime.classes}"/>
  914. </classpath>
  915. <java classname="Driver">
  916. <arg line="-exception exceptionMessage"/>
  917. </java>
  918. <testset argfiles="aspect.lst"/>
  919. <testset argfiles="driver.lst"/>
  920. </ajctest>
  921. </target>
  922. <target name="testAjctest.error.fail" depends="testAjctest.depends">
  923. <ajctest testId="testAjctest.error.fail"
  924. dir="${testAjctest.src.dir}"
  925. args="version,${ajctest.args}"
  926. destdir="${output.classes.dir}">
  927. <classpath>
  928. <pathelement path="${output.classes.dir}"/>
  929. <pathelement path="${aj.runtime.classes}"/>
  930. </classpath>
  931. <java classname="Driver">
  932. <arg line="-error errorMessage"/>
  933. </java>
  934. <testset argfiles="aspect.lst"/>
  935. <testset argfiles="driver.lst"/>
  936. </ajctest>
  937. </target>
  938. <target name="testAjctest.exit.fail" depends="testAjctest.depends">
  939. <ajctest testId="testAjctest.exit.fail"
  940. dir="${testAjctest.src.dir}"
  941. args="version,${ajctest.args}"
  942. destdir="${output.classes.dir}">
  943. <classpath>
  944. <pathelement path="${output.classes.dir}"/>
  945. <pathelement path="${aj.runtime.classes}"/>
  946. </classpath>
  947. <java classname="Driver">
  948. <arg line="-exit 1"/>
  949. </java>
  950. <testset argfiles="aspect.lst"/>
  951. <testset argfiles="driver.lst"/>
  952. </ajctest>
  953. </target>
  954. <target name="testAjctest.exit.pass" depends="testAjctest.depends">
  955. <ajctest testId="testAjctest.exit.pass"
  956. dir="${testAjctest.src.dir}"
  957. args="version,${ajctest.args}"
  958. destdir="${output.classes.dir}">
  959. <classpath>
  960. <pathelement path="${output.classes.dir}"/>
  961. <pathelement path="${aj.runtime.classes}"/>
  962. </classpath>
  963. <java classname="Driver">
  964. <arg line="-exit 0"/>
  965. </java>
  966. <testset argfiles="aspect.lst"/>
  967. <testset argfiles="driver.lst"/>
  968. </ajctest>
  969. </target>
  970. <target name="testAjctest.compileFailure.fail" depends="testAjctest.depends">
  971. <ajctest testId="testAjctest.compileFailure.fail"
  972. dir="${testAjctest.src.dir}"
  973. args="version,${ajctest.args}"
  974. destdir="${output.classes.dir}">
  975. <classpath>
  976. <pathelement path="${output.classes.dir}"/>
  977. <pathelement path="${aj.runtime.classes}"/>
  978. </classpath>
  979. <java classname="Driver"/>
  980. <testset argfiles="error.lst"/>
  981. </ajctest>
  982. </target>
  983. </project>