[osmosis-dev] some tests failed on Gentoo (may be because of wrong CLASSPATH)

Brett Henderson brett at bretth.com
Tue Nov 29 05:03:57 GMT 2011


Hi Dmytro,

On 29 November 2011 00:07, Dmytro Gorbunov <dmitro.gorbunov at gmail.com>wrote:

> Hello,
>
> I'm trying to build and test osmosis on Gentoo, all tests pass except
> 2 of them -
> Test org.openstreetmap.osmosis.xml.v0_6.XmlChangeReaderWriterTest FAILED
> and
> Test org.openstreetmap.osmosis.xml.v0_6.XmlReaderWriterTest FAILED
>

You need to find out why those tests have failed.  There is a directory
called "report/test" within each project, so in this case
"xml/report/test".  This directory contains a text and xml file per test
which will provide details of the failure.


>
> I'm using sources from
> git clone 'https://github.com/brettch/osmosis.git'
> cd osmosis/ && git checkout 0.39
>
> with command 'ant test' and CLASSPATH as
> setenv CLASSPATH `java-config -d --classpath
>
> jpf-1.5,jdbc-postgresql,xerces-2,ant-junit4,ant-antlr,checkstyle,ant-core,ant-ivy-2,guava,commons-beanutils-1.7`
> java -version
> java version "1.6.0_29"
> Java(TM) SE Runtime Environment (build 1.6.0_29-b11)
> Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02, mixed mode)
>

Is there any reason you're setting a CLASSPATH?  The project should be
self-contained and capable of retrieving all dependencies over the
Internet.  Unless there's some Gentoo-specific reason for setting a
CLASSPATH I'd unset that environment variable.


>
> But when I open sources under xml folder in Eclipse (3.7) and try to
> execute Junit tests XmlChangeReaderWriterTest and XmlReaderWriterTest
> successfully pass.
>
>
> Is this some sort of known problem or I should create bug in the
> bugtracker about that?
>

I suspect there is a Gentoo specific issue here.  I'm not aware of build
problems on other platforms.

Brett
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/osmosis-dev/attachments/20111129/1fec19ab/attachment.html>


More information about the osmosis-dev mailing list