Gilles Filippini a écrit le 30/04/2020 à 19:45 : > Pierre Gruet a écrit le 30/04/2020 à 17:40 : >> Hi Gilles, >> >> Le 29/04/2020 à 17:53, Gilles Filippini a écrit : >>> Andreas Tille a écrit le 29/04/2020 à 17:36 : >>>> Hi Gilles, >>>> >>>> On Wed, Apr 29, 2020 at 05:10:38PM +0200, Gilles Filippini wrote: >>>>> >>>>> I've cloned the git repo and attempted a build. But the dh_auto_test >>>>> part doesn't execute any test actually: >>>>> >>>>> debian/rules override_dh_auto_test >>>>> make[1]: Entering directory >>>>> ... >>>>> =============================================== >>>>> All >>>>> Tests run: 0, Failures: 0, Skips: 0 >>>>> =============================================== >>>>> >>>>> >>>>> =============================================== >>>>> All >>>>> Total tests run: 0, Failures: 0, Skips: 0 >>>>> =============================================== >>>> >>>> Thanks a lot for checking - any idea how to force execution of >>>> the tests? >>> >>> No, I don't know how this is supposed to work :/ >>> >> >> Thanks for checking; I had also seen that these tests did not run, this will >> have to be fixed. More important is the fact that I have put and arranged >> the piece of code of dh_auto_test override into a test in >> debian/tests/providedTests; here they run, and while the first ones pass, >> next ones fail and I feel this is because the java code cannot link to the >> native code in the jni package. >> >> Yet, my problem is that I have not been able to investigate more deeply, as >> the Java part is build using Gradle but the jni part is built outside of >> Gradle, using a single command. >> I thus don't know if the link between the Java and native code is correctly >> done at that stage. >> >> While I agree, of course, that we will need that the tests in >> override_dh_auto_test run, we are already able to reproduce the problem I am >> describing by running autopkgtest on the built package. > > Here is what I obtain running autopkgtest against the binary packages: > > autopkgtest [19:41:00]: test providedTests: [----------------------- > xargs: javac: No such file or directory > autopkgtest [19:41:00]: test providedTests: -----------------------] > autopkgtest [19:41:01]: test providedTests: - - - - - - - - - - results > - - - - - - - - - - > providedTests FAIL non-zero exit status 127 > autopkgtest [19:41:01]: test providedTests: - - - - - - - - - - stderr > - - - - - - - - - - > xargs: javac: No such file or directory > autopkgtest [19:41:01]: @@@@@@@@@@@@@@@@@@@@ summary > providedTests FAIL non-zero exit status 127 > > Is the salsa git repo up to date?
I've managed to run the tests (adding default-jdk the the Depends field into debian/tests/control), and reproduced the failures you mentioned. I can't tell whether it it the library's fault or the test cases' one, but most failures are due to the JNI library not being loaded. Adding System.loadLibrary("sis-jhfd5"); to the init() method of HDF5DataSetRandomAccessFileTest.java fixed them. It remains 16 unrelated failures (IllegalArgumentException, AssertionError, HDF5DatatypeInterfaceException). Best, _g.