Add support for reading values from refdata
authorTeemu Murtola <teemu.murtola@gmail.com>
Sun, 9 Oct 2016 18:33:06 +0000 (21:33 +0300)
committerRoland Schulz <roland.schulz@intel.com>
Mon, 17 Oct 2016 10:07:14 +0000 (12:07 +0200)
commitfe91ec7e2d63c06ba7124092a75af1732331896c
tree0cc3b22abd65c5e4c63e3d50ea7027e0ca04143d
parent8d9040a087d7f381f0b0ea7b282c25b854c050e9
Add support for reading values from refdata

This is the easiest way to support tests in child changes for
serialization.  Some alternative approach may be possible in the future,
when the serialization approach matures, but I seem to recall there have
been requests for this functionality also in other contexts.  There is
some less-than-ideal behavior (in particular, a newly created test fails
if it uses this functionality, and only succeeds when you actually
create the reference data).

Also add support for a separate type of unsigned char reference values,
to support serialization tests.

Change-Id: I35ee9d43a0737a342f756cda0e7a789273ce1d9e
docs/doxygen/lib/refdata.md
src/testutils/refdata-checkers.h
src/testutils/refdata.cpp
src/testutils/refdata.h
src/testutils/tests/refdata_tests.cpp