Missing config.h meant there were not run.
Also fix rerun test without zlib. The input is zlib compressed and thus should
only be tested if zlib support is available.
Change-Id: Ia80abcb7584f698512578652621cb16c16e4188a
"Either set GMX_BUILD_UNITTESTS=OFF or tell CMake how to find a working version of libxml2.")
endif()
+if(GMX_USE_TNG AND NOT GMX_EXTERNAL_TNG)
+ # TNG wants zlib if it is available
+ find_package(ZLIB QUIET)
+ include(gmxTestZLib)
+ gmx_test_zlib(HAVE_ZLIB)
+endif()
+
########################################################################
# Generate development version info for cache
########################################################################
/* Define if we have pipes */
#cmakedefine HAVE_PIPES
+/* Define if we have zlib */
+#cmakedefine HAVE_ZLIB
+
/*! \endcond */
include_directories(${TNG_IO_INCLUDE_DIRS})
endif()
if(NOT GMX_EXTERNAL_TNG)
- # TNG wants zlib if it is available
- find_package(ZLIB QUIET)
- include(gmxTestZLib)
- gmx_test_zlib(HAVE_ZLIB)
-
include(${CMAKE_SOURCE_DIR}/src/external/tng_io/BuildTNG.cmake)
tng_get_source_list(TNG_SOURCES TNG_IO_DEFINITIONS)
list(APPEND LIBGROMACS_SOURCES ${TNG_SOURCES})
#include "testutils/cmdlinetest.h"
#include "gromacs/utility/arrayref.h"
+#include "config.h"
+
namespace
{
#include "gromacs/options/filenameoption.h"
#include "testutils/cmdlinetest.h"
+#include "config.h"
+
namespace
{
* version. */
const char *trajectoryFileNames[] = {
"../../../gromacs/gmxana/legacytests/spc2-traj.trr",
-#ifdef GMX_USE_TNG
+#if defined GMX_USE_TNG && defined HAVE_ZLIB
"../../../gromacs/gmxana/legacytests/spc2-traj.tng",
#endif
"../../../gromacs/gmxana/legacytests/spc2-traj.xtc",