Tests that verify serializer behaviours
commit9fd7ce83d0436a604fdea7043b94521665483ec1
authorMark Abraham <mark.j.abraham@gmail.com>
Mon, 30 Dec 2019 12:44:17 +0000 (30 12:44 +0000)
committerJenkins Buildbot on bs-gpu01 <jenkins@gromacs.org>
Mon, 30 Dec 2019 16:02:37 +0000 (30 17:02 +0100)
treee67317e9cd22dc27337cc384305b1e67638aff42
parenta65fe6e73c0ff06fa1bcfa01b218222136fff240
Tests that verify serializer behaviours

xdr_vector serializing char uses four bytes per char, which is
wasteful when that char buffer is just a binary dump such as with the
tpr file body. This test ensures that our assumption when writing tpr
files is that we can reinterpret as a wider data type and avoid excess
padding.

It also tests that xdr_opaque does not introduce such padding.

Refs #3269
Refs #3276

Change-Id: I9c40b8ab7b9dabe461cb4dd146bb132d8f5a9681
src/gromacs/fileio/tests/CMakeLists.txt
src/gromacs/fileio/tests/fileioxdrserializer.cpp [new file with mode: 0644]
src/gromacs/utility/inmemoryserializer.cpp
src/gromacs/utility/tests/inmemoryserializer.cpp