Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] config.ini parameters for tycho surefire test

Unless OSGi interprets the system properties itself (so that -D as in the current implementations is enought), I would say that they are the wrong channel to influence the config.ini for the tests. To make this configurable, I would rather introduce a new configuration parameter (e.g. <configIni>...</configIni>) which allows to set anything in the config ini.

In general, I think it should be possible to set values in the config.ini for test execution, so if this is not possible today, please open an new enhancement request: https://bugs.eclipse.org/bugs/query.cgi?format=specific;product=Tycho

Regards
Tobias

> -----Original Message-----
> From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-
> bounces@xxxxxxxxxxx] On Behalf Of Steffen Grunwald
> Sent: 25 August 2011 19:23
> To: tycho-user@xxxxxxxxxxx
> Subject: [tycho-user] config.ini parameters for tycho surefire test
> 
> Hello,
> 
> I would like to run UI tests for an application that starts with
> non-default startLevels.
> My product's config.ini provides these lines as described in the
> "system properties" section in [1]
> osgi.startLevel=20
> osgi.bundles.defaultStartLevel=20
> 
> During the surefire test, the config.ini is created with
> defaultStartLevel 4, although I configured the system properties with:
> 
> <systemProperties>
>         <osgi.startLevel>20</osgi.startLevel>
> 
> <osgi.bundles.defaultStartLevel>20</osgi.bundles.defaultStartLevel>
> </systemProperties>
> 
> The tycho code in [2] does not consider the system property in the
> config.ini but sets the default startlevel to 4 and just appends the
> system properties with -D[...].
> The command line properties do neither take precendence nor are they
> considered at all, if they don't have a command line equivalent in
> [2].
> Is there chance to make tycho consider the _known_ system properties
> (as described in [1]) and put them into config.ini instead of the
> command line?
> 
> Steffen
> 
> [1]
> http://help.eclipse.org/indigo/topic/org.eclipse.platform.doc.isv/referenc
> e/misc/runtime-options.html
> [2] https://github.com/sonatype/sonatype-tycho/blob/master/tycho-equinox-
> launching/src/main/java/org/eclipse/tycho/equinox/launching/internal/Defau
> ltEquinoxInstallationFactory.java#L102
> _______________________________________________
> tycho-user mailing list
> tycho-user@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/tycho-user


Back to the top