From 3ba59b8e79ce38064ddda42785f408897bef8731 Mon Sep 17 00:00:00 2001 From: wisberg Date: Thu, 6 Mar 2003 01:52:41 +0000 Subject: better instructions for running ajcTests.xml and comparing results --- build/readme-build-and-test-aspectj.html | 59 +++++++++++++++++++------------- 1 file changed, 35 insertions(+), 24 deletions(-) (limited to 'build/readme-build-and-test-aspectj.html') diff --git a/build/readme-build-and-test-aspectj.html b/build/readme-build-and-test-aspectj.html index ff22f83bc..2586f4567 100644 --- a/build/readme-build-and-test-aspectj.html +++ b/build/readme-build-and-test-aspectj.html @@ -301,37 +301,48 @@ For bug fixes, associated tests in
  • All compiler tests in tests/ajcTests.xml. - Run these before the final build using the test harness. - Run both with and without the - -emacssym option. You can ignore known limitations and pure-java - failures (the latter - because they are presumed to be the fault of the underlying - eclipse Java compiler); do that by excluding those keywords. - For example, the following command runs the ajcTests.xml - suite twice (with and without -emacssym), skipping tests with - "pureJava" or "knownLimitation" as keywords, emitting verbose harness - information but logging only failures (not passes). It also - suppresses the output streams (but those associated with - failures are emitted when the failures are logged). + Run these before the final build using the test harness, + as follows:
       cd tests/
    -  java -jar ../aj-build/jars/testing-drivers-all.jar ajcTests.xml -emacssym- \
    -     -ajctestSkipKeywords=pureJava,knownLimitation -logFail -verbose -hideStreams
    +  java -jar {..}/testing-drivers-all.jar ajcTests.xml -release 
    +
    + The -release option skips tests + marked purejava or knownLimitation + and only emits one-line results for each test: +
    +PASS one test identifier()
    +FAIL another test identifier()
    +...
     
    - You might also be able to use the build script: + (Use -help on the harness to see the full + definition of the -release alias.) + Run with and without the -emacssym option, + saving the output + to the appropriate subdirectory of + the releases directory. + with the name + ajcTests-result-{version}.txt + or ajcTests-result-{version}-emacssym.txt. +

    + Compare results with a prior release or test run using TestDiffs:

    -  cd build
    -  ../lib/ant/bin/ant -f build.xml ajcTests
    -
    + set CLASSPATH="{..}/testing-drivers-all.jar" + java org.aspectj.testing.util.TestDiffs {first-run}.txt {second-run}.txt + + This will generate lists of tests fixed, broken, missing, or + added. For a release, no tests should be broken, and missing + tests (those in the first run absent from the + second run) should be justified (usually the test was + removed as invalid). A test will show up as + missing from the first run and added to the second run if + it is renamed between runs. +

    For more information, see the instructions for building and running - the test harness - - ../testing-drivers/readme-testing-drivers.html - and the tests + the test harness and the tests ../tests/readme-tests-module.html. -

  • - +
  • Examples. Run these on the built/installed release:
         cd {aspectj-install}/doc/examples
    -- 
    cgit v1.2.3