[Trilinos-Users] Teuchos unit testing support

Nate Roberts nate at nateroberts.com
Fri Aug 29 11:13:48 MDT 2014


Hello,

I'm interested in employing Teuchos's unit testing support in my code.  The documentation here:

http://trilinos.org/docs/r11.10/packages/teuchos/doc/html/group__Teuchos__UnitTest__grp.html

suggests using CMake code like:

PACKAGE_ADD_EXECUTABLE_AND_TEST(
  MyUnitTests
  SOURCES
    UnitTestMain.cpp
    Int_UnitTests.cpp
    ... other unit test files ...
  STANDARD_PASS_OUTPUT
  )

How should I do the PACKAGE_ADD_EXECUTABLE_AND_TEST thing for my own package (which is not part of Trilinos, but is built on top of Trilinos)?  I do see e.g. that at least some of Teuchos's own tests use TRIBITS_ADD_EXECUTABLE_AND_TEST.  Should I make my own version of ADD_EXECUTABLE_AND_TEST, or is there a better way?  (I'm not expert in CMake.)

Thanks and regards,

Nate Roberts

----- Nathan V. Roberts, PhD. ---- Argonne Leadership Computing Facility ---- nvroberts at alcf.anl.gov ---- 630-252-0036 -----

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://software.sandia.gov/pipermail/trilinos-users/attachments/20140829/c49b4029/attachment.html>


More information about the Trilinos-Users mailing list