Skip to content

Writing a non unit test

Chris Siefert edited this page Jul 20, 2017 · 2 revisions

If you're writing a test that is not a unit test, getting the ETI right is hard. Please do not do this by hand.

Instead, use the convenient MACRO-driven function provided in

muelu/test/unit_tests/MueLu_Test_ETI.hpp

To use this, include the following code in your cpp file:

//- -- --------------------------------------------------------
#define MUELU_AUTOMATIC_TEST_ETI_NAME test_main_function
#include "MueLu_Test_ETI.hpp"

int main(int argc, char *argv[]) {
  return Automatic_Test_ETI(argc,argv);
}

Where your test_main_function has the following signature:

int test_main_function(Teuchos::CommandLineProcessor &clp, Xpetra::UnderlyingLib lib, int argc, char *argv[])
Clone this wiki locally