test/cfgfile: add basic unit tests
authorAllain Legacy <allain.legacy@windriver.com>
Fri, 31 Mar 2017 13:51:58 +0000 (09:51 -0400)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 4 Apr 2017 14:32:06 +0000 (16:32 +0200)
commitc54e7234bc9e105cc4d6da5b5e5eea94c4343a11
tree5f7fa0304d5de2344b7c9dcda28189435901bc26
parenta29491c2f417c58cf02ace231d7a0215315e1346
test/cfgfile: add basic unit tests

This commit adds the basic infrastructure for the cfgfile library unit
tests.  It includes success path tests for the most commonly used APIs.
More unit tests will be added later.

Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
Signed-off-by: Allain Legacy <allain.legacy@windriver.com>
MAINTAINERS
test/test/Makefile
test/test/test_cfgfile.c [new file with mode: 0644]
test/test/test_cfgfiles/etc/empty.ini [new file with mode: 0644]
test/test/test_cfgfiles/etc/empty_key_value.ini [new file with mode: 0644]
test/test/test_cfgfiles/etc/invalid_section.ini [new file with mode: 0644]
test/test/test_cfgfiles/etc/line_too_long.ini [new file with mode: 0644]
test/test/test_cfgfiles/etc/missing_section.ini [new file with mode: 0644]
test/test/test_cfgfiles/etc/sample1.ini [new file with mode: 0644]