Refactor libprivilege-control stress tests. 65/18465/2
authorMarcin Lis <m.lis@samsung.com>
Mon, 24 Mar 2014 10:44:07 +0000 (11:44 +0100)
committerMarcin Lis <m.lis@samsung.com>
Tue, 25 Mar 2014 09:38:17 +0000 (10:38 +0100)
commit069926b120cc19de2436ca4b54dc9ad9b5153ead
tree66f4211bf6dc3ea7b642809de12d773931c01932
parentc370a1000bb92c349d807257c7fb38bf18b67f7b
Refactor libprivilege-control stress tests.

[Issue#]       N/A
[Feature]      Adapt tests to tizen.org
[Cause]        Tests failing under no-smack environment due to improper design.
[Solution]     Make stress tests work well when SMACK is not present by adding
               different conditions. In addition use types defined in common
               headers instead of repeating nested declarations of vectors.

[Verification] Build, install, run tests.

               The following test cases should pass:
                        <<   WITH SMACK   >>
                - privilege_control22_app_installation_1x100_smack
                - privilege_control23_app_installation2_10x10_smack
                        <<  WITHOUT SMACK >>
                - privilege_control22_app_installation_1x100_nosmack
                - privilege_control23_app_installation2_10x10_nosmack

Change-Id: I8a9cfeeb4ce81c7543e3ef33b704441f25dd9c2d
Signed-off-by: Marcin Lis <m.lis@samsung.com>
tests/libprivilege-control-tests/common/libprivilege-control_test_common.h
tests/libprivilege-control-tests/test_cases_stress.cpp