Improve analysisdata reference checks.
authorTeemu Murtola <teemu.murtola@gmail.com>
Thu, 24 May 2012 05:12:46 +0000 (08:12 +0300)
committerTeemu Murtola <teemu.murtola@gmail.com>
Thu, 24 May 2012 15:26:06 +0000 (18:26 +0300)
commit691bc21df5eff47fbffd69da7c57d3e855711c60
treeb52b7d9d37f11628efb4d2e67879b33bdb3f11e0
parent34e0eaa75a90c03618b50d657cb1c7f0fcddccf7
Improve analysisdata reference checks.

The reference checking for AnalysisData objects now supports more
scenarios with multipoint data, i.e., cases where there are point sets
that do not cover all columns.

Supporting changes:
 - Add a TestReferenceChecker::checkPresent() method that allows to
   assign meaning to absence of a reference data item (and to check for
   that).
 - Split common analysisdata XML stylesheet elements to a separate xsl
   file.
 - Add a script for copying the XML stylesheets to the reference data
   directories for easier maintenance.  Master copies of shared
   stylesheets are now kept in src/testutils/.

Needed for #920, but split from the main change to keep it smaller.

Change-Id: I108c013833052c37a4f2e6c73be6161c0dae1c78
13 files changed:
src/gromacs/analysisdata/tests/refdata/analysisdata-referencedata.xsl [new file with mode: 0644]
src/gromacs/analysisdata/tests/refdata/common-referencedata.xsl
src/gromacs/analysisdata/tests/refdata/referencedata.xsl
src/gromacs/selection/tests/refdata/common-referencedata.xsl
src/testutils/analysisdata-referencedata.xsl [new file with mode: 0644]
src/testutils/common-referencedata.xsl [new file with mode: 0644]
src/testutils/copy_xsl.sh [new file with mode: 0755]
src/testutils/mock_datamodule-impl.h
src/testutils/mock_datamodule.cpp
src/testutils/refdata-impl.h
src/testutils/refdata.cpp
src/testutils/refdata.h
src/testutils/tests/refdata.cpp