X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=tests%2FCMakeLists.txt;h=cff3c9ab106f769d156b2f4bbc3549642d773fd4;hb=d533d421f535e784038ca5d393412306124a7dd7;hp=9618761c195bd88f742b32b86a3e3ba2bf2a3612;hpb=c91dc3af643817cde6b7af8954d6a7ea27aa10eb;p=platform%2Fcore%2Ftest%2Fsecurity-tests.git diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 9618761..cff3c9a 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -13,6 +13,39 @@ # limitations under the License. # +INCLUDE(FindPkgConfig) + +PKG_CHECK_MODULES(SYS_FRAMEWORK_TEST + REQUIRED + libxml-2.0 + libpcrecpp + libiri + ) + +PKG_CHECK_MODULES(SYS_FRAMEWORK_TEST_OTHER + REQUIRED + glib-2.0 + dlog + ) + +ADD_DEFINITIONS(${SYS_FRAMEWORK_TEST_OTHER_CFLAGS}) + +include(framework/config.cmake) + +SET(DPL_FRAMEWORK_TEST_LIBRARY "dpl-test-framework") + +INCLUDE_DIRECTORIES(SYSTEM + ${SYS_FRAMEWORK_TEST_OTHER_INCLUDE_DIRS} + ${DPL_FRAMEWORK_TEST_INCLUDE_DIR} + ) + +ADD_LIBRARY(${DPL_FRAMEWORK_TEST_LIBRARY} ${DPL_FRAMEWORK_TEST_SOURCES}) + +TARGET_LINK_LIBRARIES(${DPL_FRAMEWORK_TEST_LIBRARY} + ${SYS_FRAMEWORK_TEST_OTHER_LIBRARIES} + ${SYS_FRAMEWORK_TEST_LIBRARIES} + ) + INSTALL(FILES ${PROJECT_SOURCE_DIR}/tests/security-tests.sh DESTINATION bin PERMISSIONS OWNER_READ @@ -37,7 +70,6 @@ INSTALL(FILES ${PROJECT_SOURCE_DIR}/tests/security-tests-all.sh INSTALL(FILES ${PROJECT_SOURCE_DIR}/tests/test-performance-check.sh - ${PROJECT_SOURCE_DIR}/tests/perf DESTINATION bin PERMISSIONS OWNER_READ OWNER_WRITE @@ -48,6 +80,12 @@ INSTALL(FILES WORLD_EXECUTE ) + +ADD_SUBDIRECTORY(common) +ADD_SUBDIRECTORY(ckm) ADD_SUBDIRECTORY(libprivilege-control-tests) ADD_SUBDIRECTORY(libsmack-tests) +ADD_SUBDIRECTORY(smack-dbus-tests) ADD_SUBDIRECTORY(security-server-tests) +ADD_SUBDIRECTORY(security-manager-tests) +ADD_SUBDIRECTORY(cynara-tests)