Running the Unit Tests
Nektar++ comes with several unit test modules that can be used to verify that it has been compiled correctly on your architecture. To build the unit tests, enable the NEKTAR_BUILD_UNIT_TESTS options in cmake.
After building Nektar++, you will find several executables in the bin directory that has the string "UnitTest" in their name. To run the test, simply execute the desired executable from the command line. If everything has compiled correctly, you will see the following output:
Running n test cases ... *** No errors detected
Note
In Mac OS X systems some errors messages could appear, an example is:
UnitTests-g(13232) malloc: *** error for object 0x3000100600f10: pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug
As long as they are after the "*** No errors detected"
message, the libraries have been built correctly.