PageRenderTime 27ms CodeModel.GetById 1ms RepoModel.GetById 0ms app.codeStats 0ms

/bundles/plugins-trunk/BufferLocal/test/build.xml

#
XML | 75 lines | 38 code | 12 blank | 25 comment | 0 complexity | 779e350cf6def7638a5d92cb1503f2f5 MD5 | raw file
Possible License(s): BSD-3-Clause, AGPL-1.0, Apache-2.0, LGPL-2.0, LGPL-3.0, GPL-2.0, CC-BY-SA-3.0, LGPL-2.1, GPL-3.0, MPL-2.0-no-copyleft-exception, IPL-1.0
  1. <project name="bufferlocal_tests" default="test" basedir=".">
  2. <!-- general properties for plugins from the plugins directory, in
  3. partcular, need the install.dir set to know where to find the plugin
  4. jar files. -->
  5. <property file="../../build.properties"/>
  6. <property file="build.properties"/>
  7. <!-- location of the test framework, this should be set in the build.properties
  8. file loaded above. -->
  9. <property name="test.framework.home" location="/home/danson/src/jedit/tests/Fest"/>
  10. <!-- test source and classes -->
  11. <property name="project.test.src.dir" location="${basedir}"/>
  12. <property name="project.test.classes.dir" location="${basedir}/classes"/>
  13. <mkdir dir="${project.test.classes.dir}"/>
  14. <!-- marker property to indicate to the test framework that plugin jars
  15. need to be copied -->
  16. <property name="copyPluginJars" value=""/>
  17. <!-- full list of all jar files necessary to let jEdit load and run
  18. the plugin. All of these files will be copied to the jedit_settings/jar
  19. directory. -->
  20. <filelist id="plugin.jars" dir="${install.dir}">
  21. <file name="BufferLocal.jar"/>
  22. </filelist>
  23. <!-- include everything needed to let jEdit load the plugin and run the
  24. unit tests. This should include all the jars listed in the plugin.jars
  25. file list defined above. -->
  26. <path id="project.class.path">
  27. <pathelement path="project.test.classes.dir"/>
  28. <path>
  29. <filelist refid="plugin.jars"/>
  30. </path>
  31. </path>
  32. <!-- these are the actual test files to compile. This is included so it
  33. is easy to fine tune which tests are compiled and ran. -->
  34. <selector id="projectFiles">
  35. <filename name="**/*.java" />
  36. </selector>
  37. <!-- this selector holds all test cases. This is optional. -->
  38. <selector id="testcases.all">
  39. <or>
  40. <filename name="test/**/*Test.java"/>
  41. </or>
  42. </selector>
  43. <!-- this selector holds just one test. This is optional. -->
  44. <selector id="testcases.current">
  45. <filename name="test/BufferLocalTest.java"/>
  46. </selector>
  47. <!-- this selector controls which tests to run, set the refid to either
  48. testcases.current to run just one test or testcases.all to run all tests,
  49. or some other selector. This is NOT optional, if this selector is not
  50. defined, no tests will run. -->
  51. <selector id="junit.testcases">
  52. <or>
  53. <selector refid="testcases.current"/>
  54. </or>
  55. </selector>
  56. <!-- actually call the test framework to run the tests. inheritRefs must
  57. be true so that all of the things defined above are known to the test
  58. framework. -->
  59. <target name="test">
  60. <ant antfile="${test.framework.home}/build.xml" target="-test" inheritRefs="true">
  61. </ant>
  62. </target>
  63. </project>