summaryrefslogtreecommitdiff
path: root/src/tests/tng_io_testing.c
diff options
context:
space:
mode:
authorMagnus Lundborg <lundborg.magnus@gmail.com>2014-06-22 14:24:43 (GMT)
committerMark Abraham <mark.j.abraham@gmail.com>2014-06-26 14:27:36 (GMT)
commitba9aea42b01c0563e0ff0a886999daeaf6b570a7 (patch)
tree15a21fa116e7103fc097b928bae56a3e5260250d /src/tests/tng_io_testing.c
parente8fa7bf3abfc74acf60a048cdfe1f65fdbc0dc2d (diff)
Version 1.6 of the TNG library.
Added functions to get the version of the header and the library. Improved version control of the library using CMake config and version files. Changed tng_util_frame_current_compression_get() return type to double before the API is widely circulated (no release has been made since that function was added). Compiling compression functions into the tng_io library. Uses BuildTNG.cmake instead of including add_subdirectories. Change-Id: I5e4818736fb2632c06ca7df8e84ce9544bf2acaf
Diffstat (limited to 'src/tests/tng_io_testing.c')
-rw-r--r--src/tests/tng_io_testing.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/tests/tng_io_testing.c b/src/tests/tng_io_testing.c
index dd13d92..e1e2726 100644
--- a/src/tests/tng_io_testing.c
+++ b/src/tests/tng_io_testing.c
@@ -15,7 +15,8 @@
#include <stdlib.h>
#include <string.h>
-#include "../../include/tng_io.h"
+#include "tng/tng_io.h"
+#include "tng/version.h"
static tng_function_status tng_test_setup_molecules(tng_trajectory_t traj)
{
@@ -595,6 +596,17 @@ int main()
tng_trajectory_t traj;
tng_function_status stat;
char time_str[TNG_MAX_DATE_STR_LEN];
+ char version_str[TNG_MAX_STR_LEN];
+
+ tng_version(traj, version_str, TNG_MAX_STR_LEN);
+ if(strncmp(TNG_VERSION, version_str, TNG_MAX_STR_LEN) == 0)
+ {
+ printf("Test version control: \t\t\t\tSucceeded.\n");
+ }
+ else
+ {
+ printf("Test version control: \t\t\t\tFailed.\n");
+ }
if(tng_trajectory_init(&traj) != TNG_SUCCESS)
{
contact: Jan Huwald // Impressum