[ 
https://issues.apache.org/jira/browse/TIKA-1503?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14258110#comment-14258110
 ] 

Hudson commented on TIKA-1503:
------------------------------

SUCCESS: Integrated in tika-trunk-jdk1.7 #391 (See 
[https://builds.apache.org/job/tika-trunk-jdk1.7/391/])
TIKA-1503. Don't run the GDAL FITS test if FITS files aren't supported by the 
installed version of gdalinfo. (tpalsulich: 
http://svn.apache.org/viewvc/tika/trunk/?view=rev&rev=1647742)
* /tika/trunk/CHANGES.txt
* 
/tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/gdal/TestGDALParser.java


> TestGDALParser fails if gdalinfo does not support FITS
> ------------------------------------------------------
>
>                 Key: TIKA-1503
>                 URL: https://issues.apache.org/jira/browse/TIKA-1503
>             Project: Tika
>          Issue Type: Bug
>          Components: parser
>    Affects Versions: 1.7
>            Reporter: Sebastian Nagel
>            Assignee: Tyler Palsulich
>            Priority: Minor
>             Fix For: 1.7
>
>
> gdalinfo is used as external parser (see TIKA-605). The test testParseFITS 
> fails if gdalinfo is compiled without support of FITS:
> {noformat}
> testParseFITS(org.apache.tika.parser.gdal.TestGDALParser)  Time elapsed: 
> 0.206 sec  <<< FAILURE!
> java.lang.AssertionError
>         at org.junit.Assert.fail(Assert.java:86)
>         at org.junit.Assert.assertTrue(Assert.java:41)
>         at org.junit.Assert.assertNotNull(Assert.java:621)
>         at org.junit.Assert.assertNotNull(Assert.java:631)
>         at 
> org.apache.tika.parser.gdal.TestGDALParser.testParseFITS(TestGDALParser.java:153)
> {noformat}
> On Ubuntu 14.04 gdalinfo does not seem to support FITS:
> {noformat}
>  % gdalinfo 
> tika-parsers/src/test/resources/test-documents/WFPC2u5780205r_c0fx.fits
>  ERROR 4: 
> `tika-parsers/src/test/resources/test-documents/WFPC2u5780205r_c0fx.fits' not 
> recognised as a supported file format.
> {noformat}
> The test should check whether gdalinfo supports the format, and skip the test 
> if not.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to