List policy API tests
[platform/core/test/security-tests.git] / tests / cynara-tests / CMakeLists.txt
index c18dc21..98037dd 100644 (file)
@@ -1,3 +1,18 @@
+# Copyright (c) 2014-2015 Samsung Electronics Co., Ltd All Rights Reserved
+#
+#    Licensed under the Apache License, Version 2.0 (the "License");
+#    you may not use this file except in compliance with the License.
+#    You may obtain a copy of the License at
+#
+#        http://www.apache.org/licenses/LICENSE-2.0
+#
+#    Unless required by applicable law or agreed to in writing, software
+#    distributed under the License is distributed on an "AS IS" BASIS,
+#    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#    See the License for the specific language governing permissions and
+#    limitations under the License.
+#
+
 cmake_minimum_required(VERSION 2.8.3)
 
 INCLUDE(FindPkgConfig)
@@ -7,24 +22,32 @@ PKG_CHECK_MODULES(CYNARA_TARGET_DEP
     REQUIRED
     libprivilege-control
     cynara-admin
+    cynara-agent
     cynara-client
     cynara-client-async
+    cynara-plugin
     dbus-1
-    dbus-glib-1
     )
 
 #files to compile
 SET(CYNARA_TARGET_TEST_SOURCES
     ${PROJECT_SOURCE_DIR}/tests/cynara-tests/common/cynara_test_admin.cpp
+    ${PROJECT_SOURCE_DIR}/tests/cynara-tests/common/cynara_test_agent.cpp
+    ${PROJECT_SOURCE_DIR}/tests/cynara-tests/common/cynara_test_agent_request.cpp
+    ${PROJECT_SOURCE_DIR}/tests/cynara-tests/common/cynara_test_agent_response.cpp
     ${PROJECT_SOURCE_DIR}/tests/cynara-tests/common/cynara_test_client.cpp
     ${PROJECT_SOURCE_DIR}/tests/cynara-tests/common/cynara_test_client_async_client.cpp
     ${PROJECT_SOURCE_DIR}/tests/cynara-tests/common/cynara_test_client_async_request_monitor.cpp
     ${PROJECT_SOURCE_DIR}/tests/cynara-tests/common/cynara_test_client_async_status_monitor.cpp
     ${PROJECT_SOURCE_DIR}/tests/cynara-tests/common/cynara_test_commons.cpp
+    ${PROJECT_SOURCE_DIR}/tests/cynara-tests/common/cynara_test_cynara_mask.cpp
     ${PROJECT_SOURCE_DIR}/tests/cynara-tests/common/cynara_test_env.cpp
+    ${PROJECT_SOURCE_DIR}/tests/cynara-tests/common/cynara_test_file_operations.cpp
+    ${PROJECT_SOURCE_DIR}/tests/cynara-tests/plugins/plugins.cpp
     ${PROJECT_SOURCE_DIR}/tests/cynara-tests/cynara-test.cpp
     ${PROJECT_SOURCE_DIR}/tests/cynara-tests/test_cases.cpp
     ${PROJECT_SOURCE_DIR}/tests/cynara-tests/test_cases_async.cpp
+    ${PROJECT_SOURCE_DIR}/tests/cynara-tests/test_cases_db.cpp
     )
 
 #header directories
@@ -35,11 +58,10 @@ INCLUDE_DIRECTORIES(SYSTEM
 INCLUDE_DIRECTORIES(
     ${PROJECT_SOURCE_DIR}/tests/common/
     ${PROJECT_SOURCE_DIR}/tests/cynara-tests/common/
+    ${PROJECT_SOURCE_DIR}/tests/cynara-tests/plugins/
     )
 
 
-ADD_DEFINITIONS("-I/usr/include/dbus-1.0/dbus")
-
 #output format
 ADD_EXECUTABLE(${CYNARA_TARGET_TEST} ${CYNARA_TARGET_TEST_SOURCES})
 
@@ -66,3 +88,10 @@ INSTALL(FILES
     ${PROJECT_SOURCE_DIR}/tests/cynara-tests/WRT_test_for_cynara_rules.smack
     DESTINATION /usr/share/privilege-control/
 )
+
+INSTALL(DIRECTORY
+    ${PROJECT_SOURCE_DIR}/tests/cynara-tests/db_patterns
+    DESTINATION /etc/security-tests/
+)
+
+ADD_SUBDIRECTORY(plugins)