]> git.proxmox.com Git - ceph.git/blob - ceph/src/spdk/ocf/tests/unit/framework/tests_config.py
import 15.2.0 Octopus source
[ceph.git] / ceph / src / spdk / ocf / tests / unit / framework / tests_config.py
1 #!/usr/bin/env python2
2
3 #
4 # Copyright(c) 2012-2018 Intel Corporation
5 # SPDX-License-Identifier: BSD-3-Clause-Clear
6 #
7
8 # ALL PATHS SHOULD BE ENDED WITH "/" CHARACTER
9
10 MAIN_DIRECTORY_OF_TESTED_PROJECT = "../../../"
11
12 MAIN_DIRECTORY_OF_UNIT_TESTS = "../tests/"
13
14 # Paths to all directories, in which tests are stored. All paths should be relative to MAIN_DIRECTORY_OF_UNIT_TESTS
15 DIRECTORIES_WITH_TESTS_LIST = ["cleaning/", "metadata/", "mngt/", "concurrency/", "engine/", "eviction/", "utils/"]
16
17 # Paths to all directories containing files with sources. All paths should be relative to MAIN_DIRECTORY_OF_TESTED_PROJECT
18 DIRECTORIES_TO_INCLUDE_FROM_PROJECT_LIST = ["src/", "src/cleaning/", "src/engine/", "src/metadata/", "src/eviction/", "src/mngt/", "src/concurrency/", "src/utils/", "inc/"]
19
20 # Paths to all directories from directory with tests, which should also be included
21 DIRECTORIES_TO_INCLUDE_FROM_UT_LIST = ["ocf_env/"]
22
23 # Paths to include, required by cmake, cmocka, cunit
24 FRAMEWORK_DIRECTORIES_TO_INCLUDE_LIST = ["${CMOCKA_PUBLIC_INCLUDE_DIRS}" ,"${CMAKE_BINARY_DIR}", "${CMAKE_CURRENT_SOURCE_DIR}"]
25
26 # Path to directory containing all sources after preprocessing. Should be relative to MAIN_DIRECTORY_OF_UNIT_TESTS
27 PREPROCESSED_SOURCES_REPOSITORY = "preprocessed_sources_repository/"
28
29 # Path to directory containing all sources after removing unneeded functions and cmake files for tests
30 SOURCES_TO_TEST_REPOSITORY = "sources_to_test_repository/"
31
32 # List of includes. Directories will be recursively copied to given destinations in directory with tests.
33 # key - destination in dir with tests
34 # value - path in tested project to dir which should be copied
35 INCLUDES_TO_COPY_DICT = { 'ocf_env/ocf/' : "inc/" }