Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Best practice for a mixed environment

I omitted the tycho-surefire plugin part.

Another idea to make it work is maybe to have two target platform definitions, one for windows and one for linux. Then for the product creation I use the Windows one, for the tycho-surefire tests the linux platform.

Is such a configuration supported? I doubt that I'm the only one with such a requirement.

Thanks, Yves

On 23.01.2012 12:52, Cristiano Gavião wrote:
What I read in this list some time ago was that you must test each
product in your own SO environment. So, you can't test Windows RCP on
Linux, unless you set some kind of xvnc session..

Btw, your setup seems to be missing dependencies for the launching RCP
with tycho-surefire...

There are some examples on how to launch swtbot with tycho in old
messages... try to search for...

regards


On 23/01/12 03:44, Yves Langisch wrote:
Thanks Ramesh, but I think that does not solve my problem as our testers (Windows) takes the current RCP product directly from Jenkins. So I still need the Linux version for the surefire tests and the Windows version as a final product.

-
Yves

On Jan 20, 2012, at 1:13 PM, ramesh gunjal wrote:

You can pass -D property to maven on command line and use them in your POM.

E.g. On Windows your cammnd will looks something like
$ mvn -Declipse.os=win32 -Declipse.ws=win32 -Declipse.arch=x86_64 install

And you need to change your POM accordingly.

<environments>
   <environment>
     <os>${eclipse.os}</os>
     <ws>${eclipse.ws}</ws>
     <arch>${eclipse.arch}</arch>
   </environment>
</environments>


--
God bless you and all,
Ramesh
From: Yves Langisch<yves@xxxxxxxxxxx>
To: Tycho user list<tycho-user@xxxxxxxxxxx>
Sent: Friday, 20 January 2012 3:54 PM
Subject: [tycho-user] Best practice for a mixed environment

Hi,

I'm having difficulties to make my headless tycho-surefire tests run on our linux-based Jenkins server:

!SUBENTRY 1 org.eclipse.osgi 2 0 2012-01-20 10:55:51.955
!MESSAGE Bundle org.eclipse.swt.win32.win32.x86_64_3.7.1.v3738a [32] was not resolved.
!SUBENTRY 2 org.eclipse.swt.win32.win32.x86_64 2 0 2012-01-20 10:55:51.955
!MESSAGE Platform filter did not match: (&  (osgi.ws=win32) (osgi.os=win32) (osgi.arch=x86_64))

The linux specific launcher bundles seem to be missing. But for our customers the RCP client only needs to run on Windows boxes. That's why my target platform configuration looks as follows:

<plugin>
     <groupId>${tycho-groupId}</groupId>
     <artifactId>target-platform-configuration</artifactId>
     <version>${tycho-version}</version>
     <configuration>
         <resolver>p2</resolver>
         <pomDependencies>consider</pomDependencies>
         <environments>
             <environment>
                 <os>win32</os>
                 <ws>win32</ws>
                 <arch>x86_64</arch>
             </environment>
         </environments>
         <target>
             <artifact>
                 <groupId>ch.dummy</groupId>
                 <artifactId>my-client-targetplatform</artifactId>
                 <version>${project.version}</version>
                 <classifier>my-client</classifier>
             </artifact>
         </target>
     </configuration>
</plugin>

What's the best way to make the surefire tests run on both platforms? Do I need a second target platform or is it enough to add an new environment entry for linux? The final product should only contain the Windows stuff.

Thanks
Yves
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user


_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user


_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user



_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user



Back to the top