test/parser: Allow tests to provide pre-loaded config data
authorJeremy Kerr <jk@ozlabs.org>
Wed, 15 May 2013 08:01:14 +0000 (16:01 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Thu, 16 May 2013 03:53:34 +0000 (11:53 +0800)
commita5a787c5d170708be5d15ee9418520917653a104
treea27d0556071c3f36c75b65d3f759438f266fca08
parent5d16719922866622fc0f42c570b9934f595e3c33
test/parser: Allow tests to provide pre-loaded config data

Some tests may want to use an existing buffer as config data, so add
test_read_config_data() to allow this.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
test/parser/parser-test.h
test/parser/utils.c