Clean up CTest test management
commit4d13af7b2c27880e9fc6b6ac2e763134bb789745
authorTeemu Murtola <teemu.murtola@gmail.com>
Mon, 30 May 2016 19:56:22 +0000 (30 22:56 +0300)
committerTeemu Murtola <teemu.murtola@gmail.com>
Wed, 7 Sep 2016 10:57:52 +0000 (7 12:57 +0200)
treec65d693097d4a9e4110fe501268a5d7350c380f3
parent82e7490a9939ba1fa86eb710f867b5e7a2721d67
Clean up CTest test management

- Add explicit timeouts to CTest tests. These should work better than
  the current Jenkins timeout: it should produce better JUnit test
  reports, and should catch also tests that end up in an infinite loop
  printing stuff.  The timeouts are still quite generous, since at least
  the coverage run can take a while.
- Use a more easily extensible and better encapsulated mechanism for
  producing the messages about missing tests with 'make check'.
- Abort if running a non-MPI test binary with MPI instead of trying to
  run it on the master rank, since it might deadlock.
- Clean up the macros used to register CTest tests and use a clearer set
  of test labels, and move more logic into src/testutils/CMakeLists.txt.
- Resolve various TODOs.

Change-Id: Ia1370d99eabd5839682832e8c3c60668a667cdde
CMakeLists.txt
src/CMakeLists.txt
src/gromacs/gmxana/legacytests/CMakeLists.txt
src/programs/mdrun/tests/CMakeLists.txt
src/testutils/CMakeLists.txt
src/testutils/TestMacros.cmake
src/testutils/testinit.cpp
tests/CMakeLists.txt
tests/CheckTarget.cmake [copied from src/testutils/CMakeLists.txt with 53% similarity]