Permit tests to specify the refdata filename
authorMark Abraham <mark.j.abraham@gmail.com>
Tue, 2 Nov 2021 12:57:07 +0000 (13:57 +0100)
committerMark Abraham <mark.j.abraham@gmail.com>
Fri, 5 Nov 2021 08:55:00 +0000 (08:55 +0000)
commit4ab77f8b8162e37a89f7bdbd89709528326d7c26
treea8a29fcd6908c1abc10eeed152e7063eb2ce69e2
parent977d0e553d447c3a373c4dee62225922364fae27
Permit tests to specify the refdata filename

When the same test data is re-used for multiple test cases it is
wasteful to serialize that data many times. This functionality permits
test cases to choose their own refdata file name, perhaps derived from
the actual test name. This means the tests can run efficiently, don't
needlessly proliferate lots of data, and express directly in the code
that multiple test cases produce the same data.

Refs #4255
src/testutils/include/testutils/refdata.h
src/testutils/refdata.cpp