Hi Emmanuel,

I did consider the option. However, there are several issues.

The main one is that the tests do not explicitly require a session manager.
The requirement comes from one of the dependencies.
Therefore, there is no clear way to determine a priori if a test needs a
session manager.
Of course, this could be done a posteriori, but given the large number
of tests, this would be a very tedious task.

Another problem is that the tests are automatically collected and run by
ant, so even if I managed to identify which tests require a session
manager, I would not know how to disable them specifically.

Finally, from what I have seen, a large fraction of the tests do require
a session manager.
Disabling them would likely lead to a significantly restricted set of
tests that are not very relevant, since NatTable is a graphical library.

Best regards,
Vincent

Le 02/09/2019 à 13:03, Emmanuel Bourg a écrit :
> Hi Vincent,
>
> Did you consider disabling the tests requiring a session manager instead
> of excluding the tests completely?
>
> Emmanuel Bourg
>
>
> Le 31/08/2019 à 20:00, Vincent Prat a écrit :
>> Dear all,
>>
>> Since I am not able to run the tests at build time, I guess they will
>> not run in the CI pipeline either.
>> Therefore, I think it is reasonable not to include the tests in the package.
>>
>> The package is thus now ready for review and eventually upload, if
>> someone wants to sponsor it.
>> Feel free to have a look at https://salsa.debian.org/java-team/nattable.git.
>>
>> Best regards,
>> Vincent
>>
>> Le 26/08/2019 à 18:01, Vincent Prat a écrit :
>>> Dear all,
>>>
>>> I managed to build the tests, and now I am trying to run them during the
>>> packaging process with pbuilder.
>>> For information, I use xvfb to run the tests on a virtual X server.
>>> The last issue I encountered is that some tests (I would say a
>>> significant fraction) seem to require a session manager:
>>>
>>> [junit] ------------- Standard Error -----------------
>>> [junit] SWT SessionManagerDBus: Failed to connect to
>>> org.gnome.SessionManager: Could not         connect: Connection refused
>>> [junit] SWT SessionManagerDBus: Failed to connect to
>>> org.xfce.SessionManager: Could not             connect: Connection refused
>>> [junit] ------------- ---------------- ---------------
>>>
>>> Any idea of how to solve this?
>>>
>>> Best regards,
>>> Vincent
>>>
>>>
>>

Reply via email to