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 43KB

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