I've just ran the log4j 1.2 test suite compiled against the log4j 1.2 code base but run against the SVN HEAD and posted the results at http://people.apache.org/~carnold/crosstest.txt.

After building the SVN HEAD and running the log4j 1.2 test suite against log4j 1.2, you then run the test suite specifying -Dlog4j.jar something like:

$ cd log4j12/test
$ ant runAll -Dlog4j.jar=/Users/curta/ls-svn/log4j/dist/lib/log4j- all-1.3alpha-7.jar -Dlib.home.dir=/Users/curta/java -lib /Users/curta/ junit3.8.1/junit.jar -Dhaltonfailure=false -l cross.log

I deleted log4j12/dist/classes for good measure just to make sure I wasn't inadvertently running against log4j 1.2 code.

Here is a quick summary of failing tests:

Serialization tests: The serialized forms of LoggingEvent are not compatible between log4j 1.2 and 1.3.

XMLLayout: log4j 1.3 replaces the <MDC> tag with <properties>, adds sequenceNumber attribute.

HTMLLayout: log4j 1.3 adds style attributes which cause some tests to fail.

Test failures with UnexpectedFormatException stack traces or LOG4J- INTERNAL in file comparisons: These cases fail due to unexpected log4j internal logging in the generated log files.

DRFA: Throws a java.lang.VerifyError since the implementation of o.a.l.DailyRollingFileAppender in log4j 1.3 is just a facade around o.a.l.rolling.RollingFileAppender.

Syslog: Some unexpected changes in behavior that should be investigated.

However, over all pretty reasonable. Unfortunately the log4j 1.2 test suite doesn't have great coverage. But the results are a lot better than a couple of thousand VerifyError's.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to