test: avoid truncation of output by CTest

Printing CTEST_FULL_OUTPUT at the beginning of each test tells CTest
not to truncate the test output.

The idea has been borrowed from HAL's MD package (http://halmd.org), see
file test/tools/ctest.cpp.