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.

index.txt 3.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. WARNING: these product tests have not been used since AspectJ 1.0.
  2. This directory is for "product" tests, which validate the product as delivered
  3. to users, i.e., as installed from an installer in relevant combinations. This
  4. type of testing is also called "system" test, or (less correctly) "integration"
  5. testing. It may make use of unit-test drivers, etc.; the difference is not
  6. in the test tools or techniques, but in the scope of the validation. However,
  7. validation typically builds on other testing; e.g., if the compiler has been
  8. thoroughly tested, then it may suffice in product testing to validate that
  9. the compiler binaries are the same and that the examples compile using the
  10. scripts which use the compiler binaries.
  11. The ant script aspectj/test-product.xml drives the process by installing the
  12. product, copying this entire directory to the target dir, and invoking
  13. ant product-test.xml. Currently, that script in turn does two things:
  14. - executes the ajc.bat script to compile the telecom example, and run it
  15. - invokes ant ant-example.xml to compile/doc/run all examples using
  16. the ant taskdefs.
  17. In both cases the results are not validated except that the operations completed.
  18. Setup of the installation directory (aka product or target directory):
  19. ## dir/file ## ## ant source ## ## variable in ant source ##
  20. {target.dir} test-product.xml ${target.dir}
  21. aspectj-ant test-product.xml
  22. aspectj-ant.jar aspectj-ant installer ${taskdefs.jar}
  23. bin tools installer ${bin.dir}
  24. doc docs installer ${lib.dir}
  25. examples docs installer ${examples.dir}
  26. lib tools installer ${lib.dir}
  27. aspectjtools.jar tools installer ${aspectjtools.jar}
  28. aspectjrt.jar tools installer ${aspectjrt.jar}
  29. product product-test.xml ${test.source.dir}
  30. product-test-output product-test.xml ${test.dest.dir}
  31. ajx-output ant-examples.xml ${ajx.base.dir}
  32. {example}/classes ant-examples.xml
  33. {example}/docs ant-examples.xml
  34. {example}/output ant-examples.xml
  35. out.txt ant-examples.xml
  36. ---------------------------------------------------- to run tests
  37. cd aspectj
  38. ## either this (which builds the ajde and source files, too) ...
  39. build/bin/ant.sh -f build.xml download.files
  40. ## or this (which only builds what's needed)...
  41. build/bin/ant.sh -f build-tools.xml download.files
  42. build/bin/ant.sh -f build-docs.xml download.files
  43. build/bin/ant.sh -f build-ant-tasks.xml download.files
  44. ## then run the tests
  45. build/bin/ant.sh -f test-product.xml
  46. ## and inspect the results
  47. cd ../aj-build/temp/aspectj{version}/product-test-output/ajx-output
  48. ...
  49. ---------------------------------------------------- todo
  50. - include all download.files packages
  51. - need to test installer text interface for ide installer jars
  52. - file differencer on all packages after install
  53. - source-build tests
  54. - file differencer as regression test for emitted output
  55. -------- updates needed for 1.1
  56. - change licenses in scripts to CPL
  57. - reintegrate comparefiles (see aspectj-attic?)
  58. -
  59. -------- tests needed for 1.1
  60. - version checking
  61. - warn when no aspectjrt.jar on classpath.
  62. - warn when bad aspectjrt.jar on classpath
  63. - warn when aspectjrt.jar on classpath has the wrong version number
  64. - no exception printed for any warning
  65. - no warning when correct aspectjrt.jar on classpath
  66. (ant doc/examples/build.xml)
  67. ---- ajbrowser command-line
  68. - ajbrowser on no arguments or only .lst args
  69. - compiler on arguments other than .lst
  70. - compiler help on -help (confusing)
  71. ---- compiler command-line
  72. - sources
  73. - binary
  74. [injars|not] X [aspectpath|not] X [sources|not]
  75. ---- ant tasks
  76. - all compiler variants
  77. -