1. jhove2
  2. main

Issues

Issue #125 open

opensp tests fail on ubuntu

Erik Hetzner
created an issue

Linux gales.cdlib.org 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:24 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

java version "1.6.0_24" Java(TM) SE Runtime Environment (build 1.6.0_24-b07) Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)

Apache Maven 2.2.1 (rdebian-4) Java version: 1.6.0_24 Java home: /usr/lib/jvm/java-6-sun-1.6.0.24/jre Default locale: en_US, platform encoding: UTF-8 OS name: "linux" version: "2.6.38-8-generic" arch: "amd64" Family: "unix"

Failed tests attached.

Comments (14)

  1. Sheila Morrissey

    Email to Eric and TechTopics listserv: Hello, Eric

    The OpenSpWrapperWindowsExeTest class needs to be refactored to test for OS in setup(), not just in individual tests – this should NEVER run in Ubuntu – quick workaround is to add ignore annotation above the class declaration for now.

    For OpenSpWrapperTest – do you have OpenSP installed on your Ubuntu box? If so – this is a matter of Spring configuration for SGML module and its tests. (this test needs to be refactored to degrade more usefully in setup if path to executables does not exist on machine)

    In file config/spring/module/format/sgml/jhove2-sgml-config.xml: Bean id=”OpenSpWrapper” Property name = “onsmglsPath” - -value should be set to path to onsgmls executable on your machine Property name = “sgmlnormpath” value should be set to path to sgmlnorm executable on your machine Bean id=”SgmlCatalogPath” constructorArg should be set to path to actual SGML catalog file on your machine

    IN file src/test/resources/config/module/format/sgml/test-config.xml Bean id=”TestOpenSpWrapper” Property name = “onsmglsPath” - -value should be set to path to onsgmls executable on your machine Property name = “sgmlnormpath” value should be set to path to sgmlnorm executable on your machine

    Sheila

  2. Sheila Morrissey

    Changes pushed to my repository Change was only to OpenSpWrapperWindowsExeTest so that setup no longer fails on non-windows system (cause of problems reported)

    HAVE NOT changed OpenSpWrapperTest -- those problems caused by config files not being updated -- this is a test that should run on any OS, so long as OpenSp has been installed and configuration information about that installation place in regular and test config files. Would welcome comment on whether we should just continue with advice to have user add ignore if you don't want to test this, or to change the test to say, in setup, if can't find configuriation paths, dont' run the test

  3. Erik Hetzner reporter

    tests still fail for me.

    Linux gales.cdlib.org 3.5.0-25-generic #39-Ubuntu SMP Mon Feb 25 18:26:58 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
    

    Attaching failing test output.

    Thanks!

    java version "1.7.0_17"
    Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
    Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)
    
  4. Erik Hetzner reporter

    Maven info:

    Apache Maven 2.2.1 (rdebian-8)
    Java version: 1.7.0_17
    Java home: /usr/lib/jvm/java-7-oracle/jre
    Default locale: en_US, platform encoding: UTF-8
    OS name: "linux" version: "3.5.0-25-generic" arch: "amd64" Family: "unix"
    
  5. Sheila Morrissey

    Erik, I believe this is related to Issue #179 -- calling parameters for sgmls and norm .exes have changed

    Will try to attach sample SGML config and test config files with corrections so you can try

    Thanks so much for testing and reporting this!!!

    NB -- notice you are using Java 1.7 -- we have not yet tested against that (except you!!) -- but we need to, given EOL on 1.6

  6. Sheila Morrissey

    Eric -- I have attached the Spring config file for run time and for unit test on issue #179 Could you see if those help? Also please check that those config files correctly specify the location of OPENSP on your system Thanks

  7. Log in to comment