1
0

tests.xml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?xml version='1.0' encoding='UTF-8'?>
  2. <!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN"
  3. "http://forrest.apache.org/dtd/document-v20.dtd">
  4. <!--
  5. Copyright (c) 2010-2010 by Bernhard Bablok (bablokb@users.sourceforge.net)
  6. $Revision: 1.2 $
  7. $Author: bablokb $
  8. -->
  9. <document id="tests">
  10. <header>
  11. <title>Running Tests</title>
  12. </header>
  13. <body>
  14. <section id="prep">
  15. <title>Preparing the Test-Environment</title>
  16. <p>The im4java-distribution contains a number of tests. These
  17. tests done't formally proove the correctness of the code,
  18. they just show that the code compiles and runs. The
  19. test-cases also serve as examples for the usage of im4java.
  20. </p>
  21. <p>To prepare the test-environmet, UN*X-users just run
  22. </p>
  23. <source>
  24. make test-prepare
  25. </source>
  26. <p>Windows users run:
  27. </p>
  28. <source>
  29. bin/test-prepare.bat
  30. </source>
  31. </section>
  32. <section id="run">
  33. <title>Executing Tests</title>
  34. <p>To run the tests, you would run one of the following
  35. commands:
  36. </p>
  37. <source>
  38. java -jar im4java-version.jar help
  39. java -jar im4java-version.jar all
  40. java -jar im4java-version.jar 1 2 4 9 16
  41. </source>
  42. <p>The first command will print a list of available tests. The
  43. second command will run all tests, while the last command will
  44. only run the subset of tests given as arguments. Note that the
  45. <a href="reference.html#tests">reference-section</a> also
  46. has a list of all available tests.
  47. </p>
  48. <p>
  49. If you downloaded and compiled the source-package, UN*X-users
  50. can just run
  51. </p>
  52. <source>
  53. make test
  54. </source>
  55. <p>Note that this will also automatically prepare the
  56. test-environment.
  57. </p>
  58. </section>
  59. </body>
  60. </document>