Ticket #72 (new defect)

Opened 2 years ago

Last modified 2 years ago

Install system for UnitTest++

Reported by: dirk Assigned to: unassigned
Priority: major Milestone: 2.0 Beta
Component: Build Version: 2.0
Keywords: Cc:
Completion:

Description (Last modified by allenb)

Currently the buildbot auto tests don't work, because the unittest lib is only available for one architecture at a time. A real fix for that would be having it installed in the system, a first workaround can be to have an installation inside the UntiTest++ dist, i.e. have a hierarchy like

…/inst/ia32/{include,lib} …/inst/x64/{include,lib64}

See also: #68

Change History

10/01/06 17:22:29 changed by allenb

  • version set to 2.0.

Another (potentially easier) solution would be to put the unittest++ source in a subdirectory of a common test helpers directory in Source and then just build the unittest++ library as part of the standard build in the architecture specific build directory.

Something like:

Source

— System — …. — UnitTestSupport? (Everything unit test support related under here)

— UnitTest++ (Vendor branch of UnitTest++) — OpenSG (OpenSG specific helpers)

This may seem a little heavy weight, but UnitTest++ is not that large and it has a number of good advantages. - We can rely upon having the expected version of unittest++ available - We can (statically) link against UnitTest++ easily - The build is simplified because we know how the test libs will be compiled - Multi-arch/compiler/etc is supported out of the box because it is part of the standard build.

Aside from the initial cost of compiling the unittest library there are not any downsides that I see. And that cost is fairly insignificant compared to the time to compile OpenSG proper.

10/01/06 17:24:34 changed by allenb

That should have looked like:

Source
  — System 
  — ... 
  — UnitTestSupport (Everything unit test support related under here)
     — UnitTest++   (Vendor branch of UnitTest++) 
     — OpenSG       (OpenSG specific helpers)

10/01/06 17:26:31 changed by allenb

  • description changed.

10/01/06 17:26:56 changed by allenb

  • description changed.