Add test for libprivilege-control / perm_add_additional_rules.
authorLukasz Wojciechowski <l.wojciechow@partner.samsung.com>
Thu, 9 Jan 2014 13:34:48 +0000 (14:34 +0100)
committerMarcin Niesluchowski <m.niesluchow@samsung.com>
Mon, 27 Jan 2014 07:18:55 +0000 (08:18 +0100)
commitda47372df3a72b44c161ab3449f462ddae32ad44
treecc1431fd09db2f5063b6b8d084c568b787df8411
parent9c638419ddc9363bda7f349d647555840db5b7b5
Add test for libprivilege-control / perm_add_additional_rules.

[Issue#]        SSDWSSP-679
[Feature]       Add new tests covering perm_add_additional_rules.
[Cause]         Function need to be tested.
[Solution]      Add tests checking database.
[Verification]  Build security-tests.
                Run tests on target:
                "security-tests.sh libprivilege-control --output=text \
                    --regexp=perm_add_additional_rules"

Change-Id: Idcb2f996d55aa1a7b557e830824e78af46a63f0e
12 files changed:
tests/libprivilege-control-tests/CMakeLists.txt
tests/libprivilege-control-tests/common/db.cpp
tests/libprivilege-control-tests/common/db.h
tests/libprivilege-control-tests/common/db_sqlite.cpp
tests/libprivilege-control-tests/common/db_sqlite.h
tests/libprivilege-control-tests/common/duplicates.cpp
tests/libprivilege-control-tests/common/duplicates.h
tests/libprivilege-control-tests/common/libprivilege-control_test_common.h
tests/libprivilege-control-tests/libprivilege-control_test_common.cpp
tests/libprivilege-control-tests/test_cases.cpp
tests/libprivilege-control-tests/test_cases_nosmack.cpp
tests/libprivilege-control-tests/test_cases_perm_add_additional_rules.cpp [new file with mode: 0644]