Add compareDbs() function with database patterns 14/30714/11
authorPawel Wieczorek <p.wieczorek2@samsung.com>
Mon, 1 Dec 2014 13:14:41 +0000 (14:14 +0100)
committerPawel Wieczorek <p.wieczorek2@samsung.com>
Mon, 15 Dec 2014 10:21:22 +0000 (11:21 +0100)
commit78276b7c11eb10b5012934e6fbb0a05e251f914b
treefc08790b8bd292628c5a28f3635bc1916c4fb54d
parentd099645d698bb19322cbc99f5e1ac97cac9ee792
Add compareDbs() function with database patterns

Added function can be used to compare expected with actual contents of
Cynara's database. Patterns are taken from test patterns directory.
Available patterns:
* minimal contents with default DENY policy
* minimal contents with default ALLOW policy
* database with sample DENY policy

Change-Id: I510ba58e1ce12ecc388fd560e71a0f67929db757
packaging/security-tests.spec
tests/common/memory.h
tests/cynara-tests/CMakeLists.txt
tests/cynara-tests/db_patterns/default/_ [new file with mode: 0644]
tests/cynara-tests/db_patterns/default/buckets [new file with mode: 0644]
tests/cynara-tests/db_patterns/defaultAllowed/_ [new file with mode: 0644]
tests/cynara-tests/db_patterns/defaultAllowed/buckets [new file with mode: 0644]
tests/cynara-tests/db_patterns/nonEmptyDatabase/_ [new file with mode: 0644]
tests/cynara-tests/db_patterns/nonEmptyDatabase/buckets [new file with mode: 0644]
tests/cynara-tests/test_cases_db.cpp