logo separator

[mkgmap-dev] Unable to build splitter

From Gerd Petermann GPetermann_muenchen at hotmail.com on Mon Jan 30 12:30:31 GMT 2017

Hi Paul,

I think there should be no need to install ant-junit, so it seems that the
download of one or more jar files failed.
When you run ant dist the first time you should see something like this for target resolve-test:

resolve-test:
[ivy:retrieve] downloading http://repo1.maven.org/maven2/junit/junit/4.11/junit-4.11.jar ...
[ivy:retrieve] ....... (239kB)
[ivy:retrieve] .. (0kB)
[ivy:retrieve]  [SUCCESSFUL ] junit#junit;4.11!junit.jar (334ms)
[ivy:retrieve] downloading http://repo1.maven.org/maven2/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar ...
[ivy:retrieve] ..... (43kB)
[ivy:retrieve] .. (0kB)
[ivy:retrieve]  [SUCCESSFUL ] org.hamcrest#hamcrest-core;1.3!hamcrest-core.jar (175ms)

Did you try to compile mkgmap on one of these systems? If that worked I see no reason why splitter would fail.

Gerd


________________________________________
Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von Paul <paul at pointdee.co.uk>
Gesendet: Montag, 30. Januar 2017 13:13:24
An: Development list for mkgmap
Betreff: [mkgmap-dev] Unable to build splitter

I'm not sure if this is a splitter problem or OS problem but I thought
I'd ask here first as I think that this problem is likely to have
started with r570
(http://www.mkgmap.org.uk/pipermail/mkgmap-dev/2017q1/025847.html). The
following has been tried on both openSuSE 13.2 and 42.2

I checked out the latest splitter into an empty directory, ran "ant
dist" and received an error regarding junit.jar. I then installed
ant-junit and now when running "ant dist" I get

resolve-test:

compile.tests:
     [javac] Compiling 13 source files to
/home/bos/Maps/tile-splitter/splitter/build/test-classes

run.tests:
     [junit] Running uk.me.parabola.splitter.AreaSetTest
     [junit] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time
elapsed: 0.042 sec
     [junit] TEST uk.me.parabola.splitter.AreaSetTest FAILED
     [junit] Running uk.me.parabola.splitter.ConvertTest
     [junit] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time
elapsed: 0.006 sec
     [junit] TEST uk.me.parabola.splitter.ConvertTest FAILED
     [junit] Running uk.me.parabola.splitter.RoundingTest
     [junit] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time
elapsed: 0.002 sec
     [junit] TEST uk.me.parabola.splitter.RoundingTest FAILED
     [junit] Running uk.me.parabola.splitter.geo.CityFinderTest
     [junit] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time
elapsed: 0.003 sec
     [junit] TEST uk.me.parabola.splitter.geo.CityFinderTest FAILED
     [junit] Running uk.me.parabola.splitter.tools.CustomCollectionsTest
     [junit] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time
elapsed: 0.005 sec
     [junit] TEST uk.me.parabola.splitter.tools.CustomCollectionsTest FAILED
     [junit] Running uk.me.parabola.splitter.tools.SparseBitSetTest
     [junit] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time
elapsed: 0.002 sec
     [junit] TEST uk.me.parabola.splitter.tools.SparseBitSetTest FAILED
     [junit] Tests FAILED
[junitreport] Processing
/home/bos/Maps/tile-splitter/splitter/tmp/TESTS-TestSuites.xml to
/tmp/null380785018
[junitreport] Loading stylesheet
jar:file:/usr/share/java/ant/ant-junit.jar!/org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-frames.xsl
[junitreport] Warning:
org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property
'http://javax.xml.XMLConstants/property/accessExternalDTD' is not
recognized.
[junitreport] Warning:
org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property
'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not
recognized.
[junitreport] Transform time: 303ms
[junitreport] Deleting: /tmp/null380785018

BUILD FAILED
/home/bos/Maps/tile-splitter/splitter/build.xml:261: Test failed.  See
test-reports/index.html

Total time: 5 seconds





If I then look in test-reports/index.html and expand the failures I get
the following

No tests found in uk.me.parabola.splitter.AreaSetTest

junit.framework.AssertionFailedError: No tests found in
uk.me.parabola.splitter.AreaSetTest

If you need more information please ask

Thanks

Paul
_______________________________________________
mkgmap-dev mailing list
mkgmap-dev at lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


More information about the mkgmap-dev mailing list