summaryrefslogtreecommitdiff
path: root/tests/CMakeLists.txt
blob: 5950646cc1b8eedf71535c50b779b29164bc2270 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Copyright (c) 2016 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.
#

SET(TARGET_CAPI_TEST "cert-svc-tests-capi")
SET(TARGET_PKCS12_TEST "cert-svc-tests-pkcs12")
SET(TARGET_VCORE_TEST "cert-svc-tests-vcore")
SET(TARGET_PLUGIN_SAMPLE "cert-svc-validator-plugin")

PKG_CHECK_MODULES(TEST_DEP
    REQUIRED
    libpcrecpp
    openssl
    )

SET(TEST_DIR ${CMAKE_CURRENT_SOURCE_DIR})

SET(DPL_TEST_SOURCES
    ${TEST_DIR}/dpl/src/assert.cpp
    ${TEST_DIR}/dpl/src/binary_queue.cpp
    ${TEST_DIR}/dpl/src/colors.cpp
    ${TEST_DIR}/dpl/src/errno_string.cpp
    ${TEST_DIR}/dpl/src/exception.cpp
    ${TEST_DIR}/dpl/src/singleton.cpp
    ${TEST_DIR}/dpl/src/test_results_collector.cpp
    ${TEST_DIR}/dpl/src/test_runner.cpp
    ${TEST_DIR}/dpl/src/test_runner_child.cpp
    ${TEST_DIR}/dpl/src/test_runner_multiprocess.cpp
    ${TEST_DIR}/dpl/src/value_separated_policies.cpp
    ${TEST_DIR}/dpl/src/value_separated_tokens.cpp

    )

INCLUDE_DIRECTORIES(
    SYSTEM
    ${TEST_DEP_INCLUDE_DIRS}
    ${PROJECT_SOURCE_DIR}/src
    ${TEST_DIR}/dpl/include
    )

ADD_SUBDIRECTORY(capi)
ADD_SUBDIRECTORY(pkcs12)
ADD_SUBDIRECTORY(vcore)
ADD_SUBDIRECTORY(plugin)
ADD_SUBDIRECTORY(upgrade)