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.

build.xml 4.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <?xml version="1.0"?>
  2. <project name="tests" default="all" basedir=".">
  3. <import file="../build/build-common.xml"/>
  4. <import file="../ajde/build.xml"/>
  5. <import file="../asm/build.xml"/>
  6. <import file="../bridge/build.xml"/>
  7. <import file="../testing/build.xml"/>
  8. <import file="../testing-drivers/build.xml"/>
  9. <import file="../org.aspectj.ajdt.core/build.xml"/>
  10. <path id="tests.test.src.path">
  11. <!-- all are for test run -->
  12. <path refid="tests.src.path"/>
  13. <pathelement path="../runtime/bin"/>
  14. <pathelement path="../org.aspectj.ajdt.core/bin"/>
  15. <pathelement path="../weaver/bin"/>
  16. <fileset dir="${basedir}/../lib">
  17. <include name="junit/*.jar"/>
  18. <include name="commons/*.jar"/>
  19. </fileset>
  20. <fileset dir="${basedir}/../org.eclipse.jdt.core">
  21. <include name="*.jar"/>
  22. </fileset>
  23. </path>
  24. <path id="tests.src.path">
  25. <pathelement path="../ajde/bin"/>
  26. <pathelement path="../asm/bin"/>
  27. <pathelement path="../bridge/bin"/>
  28. <pathelement path="../org.aspectj.ajdt.core/bintest"/>
  29. <pathelement path="../testing/bin"/>
  30. <pathelement path="../testing-drivers/bin"/>
  31. <pathelement path="../util/bin"/>
  32. <fileset dir="${basedir}/../lib">
  33. <include name="bcel/*.jar"/>
  34. </fileset>
  35. </path>
  36. <target name="compile" depends="init,
  37. ajde.compile,
  38. asm.compile,
  39. bridge.compile,
  40. org.aspectj.ajdt.core.compile,
  41. testing.compile,
  42. testing-drivers.compile,
  43. testing-util.compile,
  44. weaver.compile">
  45. <!-- we cannot use dependancies on any xxx.test:compile since it refers back xxx.compile that Ants
  46. interprets as this.compile due to <import directives, thus circular -->
  47. <testcompile project="weaver" path="weaver.test.src.path"/>
  48. <testcompile project="org.aspectj.ajdt.core" path="org.aspectj.ajdt.core.test.src.path"/>
  49. <srccompile project="tests" path="tests.src.path"/>
  50. </target>
  51. <target name="test:compile" depends="compile">
  52. <!-- no testsrc here (all should actually be a testsrc to ease Ant import things..) -->
  53. </target>
  54. <target name="test" depends="test:compile,
  55. runtime.compile,
  56. weaver.compile,
  57. tests.test.jdk13,
  58. tests.test.jdk14,
  59. tests.test.jdk15">
  60. <!-- Note: AllTests15 does run Java 1.3 and 1.4 test and so on -->
  61. </target>
  62. <!-- local target since macro does not support "if" -->
  63. <!-- FIXME remove macro usage here to use vmarg for -Dorg.aspectj.tools.ajc.Ajc.verbose=true support
  64. since it helps when test fails -->
  65. <target name="tests.test.jdk15" if="jdk15">
  66. <testrun project="tests" path="tests.test.src.path" suite="org.aspectj.systemtest.AllTests15"/>
  67. </target>
  68. <target name="tests.test.jdk14" if="jdk14">
  69. <testrun project="tests" path="tests.test.src.path" suite="org.aspectj.systemtest.AllTests14"/>
  70. </target>
  71. <target name="tests.test.jdk13" if="jdk13">
  72. <testrun project="tests" path="tests.test.src.path" suite="org.aspectj.systemtest.AllTests"/>
  73. </target>
  74. <!-- run a single test with "ant -Dtest=org.aspectj.systemtest.AllTests15 atest" -->
  75. <target name="atest" depends="test:compile,
  76. runtime.compile,
  77. weaver.compile">
  78. <junit showoutput="on" fork="on" haltonfailure="on" haltonerror="on" printsummary="on">
  79. <classpath>
  80. <pathelement path="../tests/bin"/>
  81. <pathelement path="../tests/bintest"/>
  82. <path refid="tests.test.src.path"/>
  83. </classpath>
  84. <test name="${test}"/>
  85. </junit>
  86. </target>
  87. </project>