Fix internal scheme tests 03/191503/2
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Wed, 17 Oct 2018 15:02:10 +0000 (17:02 +0200)
committerKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Fri, 19 Oct 2018 12:31:50 +0000 (14:31 +0200)
commitfe7aaaa1c46cf37dc498827b8f355c7d04a6a65a
treecef48405e7f15f6276fc299dd610bdb3b144685e
parent3a2c08acbcafe1b957ef00ff1f49e5377b5ec005
Fix internal scheme tests

1. Regular std::exception is not reported as error by boost test.
   Std::runtime_error is used because a part of the test code is also used in
   a tool for database generation.

   This commit replaces calls to boost test macros with calls to a wrapper macro
   which is expanded to std::runtime_error or boost test assert depending on a
   compilation flag.

2. Test binaries are modifying process labels which requires onlycap.

   This commit modifies exec label and adds onlycap fixture to disable onlycap
   for scheme tests.

Change-Id: Ibbe44c2bca6e12b5ade360b267c281ef18294258
packaging/key-manager-tests.manifest.in
tests/CMakeLists.txt
tests/encryption-scheme/CMakeLists.txt [deleted file]
tests/encryption-scheme/assert-wrapper.h [new file with mode: 0644]
tests/encryption-scheme/scheme-test.cpp
tests/encryption-scheme/smack-access.cpp
tests/test_encryption-scheme.cpp