On 12/13/2010 5:19 PM, Eric Noulard wrote:
Hi All,

I'm willing to improve CPack test coverage and even if my first try
did make the CMake
dashboard half red I intend to continue until its bigger and greener :-]

Now I have a "test design" problem.
Many CPack generator are not available on all platforms

  RPM, rpm based linux distro only (or debian base with rpm installed)
  DEB, debian based linux distro
  NSIS, Windows and sometimes Linux
  PackageMaker, MacOS
  ...

Moreover the behavior of each generator may be different for the same project.

How shall design the test for those?

Shall check some system name pattern with an associated list of
working CPack generator
(or parse cpack help output for getting supposedly working ones) ?

Are there some platform specific tests inside the CMake tree now?
Is there any "design guidelines" for this kind of tests ?


I would just do ad-hoc platform and find_program checks. I am pretty sure the NSIS stuff does not work on linux. So, just look for the tool that cpack will be using, and if found, enable the test.

-Bill
_______________________________________________
cmake-developers mailing list
[email protected]
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to