Reorganize project structure and RPM packages 36/234236/12
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Fri, 22 May 2020 14:47:26 +0000 (16:47 +0200)
committerKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Wed, 10 Jun 2020 10:37:47 +0000 (12:37 +0200)
commitefefa90fd791c4dd0a08cc2166e112d6a659a4ac
tree93f98222771baf9e12430183d7c3ef7ad4cf9306
parent89bfaab60f4e0a871656f34c5f4221c077a13ec8
Reorganize project structure and RPM packages

* Internal tests package and binary renamed.
* Scheme test moved to a separate binary as they are not actual unit tests.
  They use internal API, client library and need a running server. These tests
  should be rewritten.
* New key-manager-misc RPM containing scheme test binary and helper tools.
* Project structure reorganized to better fit rpm packages.
* CMakeFiles.txt refactoring.

Change-Id: I4875f0a7189a960f193747591cc917fd5b9e2799
99 files changed:
CMakeLists.txt
common/boost_macros_wrapper.h [moved from tests/boost_macros_wrapper.h with 100% similarity]
common/colour_log_formatter.cpp [moved from tests/colour_log_formatter.cpp with 100% similarity]
common/colour_log_formatter.h [moved from tests/colour_log_formatter.h with 100% similarity]
misc/CMakeLists.txt [moved from tools/CMakeLists.txt with 84% similarity]
misc/ckm_db_tool/CMakeLists.txt [moved from tools/ckm_db_tool/CMakeLists.txt with 66% similarity]
misc/ckm_db_tool/ckm-logic-ext.cpp [moved from tools/ckm_db_tool/ckm-logic-ext.cpp with 97% similarity]
misc/ckm_db_tool/ckm-logic-ext.h [moved from tools/ckm_db_tool/ckm-logic-ext.h with 100% similarity]
misc/ckm_db_tool/ckm_db_merge.cpp [moved from tools/ckm_db_tool/ckm_db_merge.cpp with 99% similarity]
misc/ckm_db_tool/ckm_db_tool.cpp [moved from tools/ckm_db_tool/ckm_db_tool.cpp with 99% similarity]
misc/ckm_db_tool/db-crypto-ext.cpp [moved from tools/ckm_db_tool/db-crypto-ext.cpp with 98% similarity]
misc/ckm_db_tool/db-crypto-ext.h [moved from tools/ckm_db_tool/db-crypto-ext.h with 100% similarity]
misc/ckm_db_tool/db-wrapper.cpp [moved from tools/ckm_db_tool/db-wrapper.cpp with 99% similarity]
misc/ckm_db_tool/db-wrapper.h [moved from tools/ckm_db_tool/db-wrapper.h with 98% similarity]
misc/ckm_initial_values/CMakeLists.txt [moved from tools/ckm_initial_values/CMakeLists.txt with 100% similarity]
misc/ckm_initial_values/base64.cpp [moved from tools/ckm_initial_values/base64.cpp with 99% similarity]
misc/ckm_initial_values/base64.h [moved from tools/ckm_initial_values/base64.h with 100% similarity]
misc/ckm_initial_values/main.cpp [moved from tools/ckm_initial_values/main.cpp with 100% similarity]
misc/ckm_so_loader.cpp [moved from tools/ckm_so_loader.cpp with 100% similarity]
misc/ckm_tool.cpp [moved from tools/ckm_tool.cpp with 100% similarity]
misc/encryption_scheme/CMakeLists.txt [new file with mode: 0644]
misc/encryption_scheme/db-7654 [moved from tests/resources/db-7654 with 100% similarity]
misc/encryption_scheme/db-key-7654 [moved from tests/resources/db-key-7654 with 100% similarity]
misc/encryption_scheme/encryption-scheme.p12 [moved from tests/resources/encryption-scheme.p12 with 100% similarity]
misc/encryption_scheme/generate-db.cpp [moved from tests/encryption-scheme/generate-db.cpp with 97% similarity]
misc/encryption_scheme/key-7654 [moved from tests/resources/key-7654 with 100% similarity]
misc/encryption_scheme/scheme-test.cpp [moved from tests/encryption-scheme/scheme-test.cpp with 99% similarity]
misc/encryption_scheme/scheme-test.h [moved from tests/encryption-scheme/scheme-test.h with 100% similarity]
misc/encryption_scheme/smack-access.cpp [moved from tests/encryption-scheme/smack-access.cpp with 98% similarity]
misc/encryption_scheme/smack-access.h [moved from tests/encryption-scheme/smack-access.h with 100% similarity]
misc/encryption_scheme/test_encryption-scheme.cpp [moved from tests/test_encryption-scheme.cpp with 79% similarity]
packaging/key-manager-misc.manifest.in [moved from packaging/key-manager-tests.manifest.in with 74% similarity]
packaging/key-manager-unit-tests.manifest.in [new file with mode: 0644]
packaging/key-manager.spec
src/CMakeLists.txt
tests/CMakeLists.txt [deleted file]
unit-tests/CMakeLists.txt [new file with mode: 0644]
unit-tests/DBFixture.cpp [moved from tests/DBFixture.cpp with 100% similarity]
unit-tests/DBFixture.h [moved from tests/DBFixture.h with 100% similarity]
unit-tests/main.cpp [moved from tests/main.cpp with 94% similarity]
unit-tests/resources/XML_1_okay.xml [moved from tests/resources/XML_1_okay.xml with 100% similarity]
unit-tests/resources/XML_1_okay.xsd [moved from tests/resources/XML_1_okay.xsd with 100% similarity]
unit-tests/resources/XML_1_wrong.xml [moved from tests/resources/XML_1_wrong.xml with 100% similarity]
unit-tests/resources/XML_1_wrong.xsd [moved from tests/resources/XML_1_wrong.xsd with 100% similarity]
unit-tests/resources/XML_2_structure.xml [moved from tests/resources/XML_2_structure.xml with 100% similarity]
unit-tests/resources/XML_3_encrypted.xml [moved from tests/resources/XML_3_encrypted.xml with 100% similarity]
unit-tests/resources/XML_3_encrypted.xsd [moved from tests/resources/XML_3_encrypted.xsd with 100% similarity]
unit-tests/resources/XML_4_device_key.xml [moved from tests/resources/XML_4_device_key.xml with 100% similarity]
unit-tests/resources/XML_4_device_key.xsd [moved from tests/resources/XML_4_device_key.xsd with 100% similarity]
unit-tests/resources/testme0_ver4.db [moved from tests/resources/testme0_ver4.db with 100% similarity]
unit-tests/resources/testme_ver1.db [moved from tests/resources/testme_ver1.db with 100% similarity]
unit-tests/resources/testme_ver2.db [moved from tests/resources/testme_ver2.db with 100% similarity]
unit-tests/resources/testme_ver3.db [moved from tests/resources/testme_ver3.db with 100% similarity]
unit-tests/resources/traverse/res-1 [moved from tests/resources/traverse/res-1 with 100% similarity]
unit-tests/resources/traverse/res-10 [moved from tests/resources/traverse/res-10 with 100% similarity]
unit-tests/resources/traverse/res-2 [moved from tests/resources/traverse/res-2 with 100% similarity]
unit-tests/resources/traverse/res-3 [moved from tests/resources/traverse/res-3 with 100% similarity]
unit-tests/resources/traverse/res-4 [moved from tests/resources/traverse/res-4 with 100% similarity]
unit-tests/resources/traverse/res-5 [moved from tests/resources/traverse/res-5 with 100% similarity]
unit-tests/resources/traverse/res-6 [moved from tests/resources/traverse/res-6 with 100% similarity]
unit-tests/resources/traverse/res-7 [moved from tests/resources/traverse/res-7 with 100% similarity]
unit-tests/resources/traverse/res-8 [moved from tests/resources/traverse/res-8 with 100% similarity]
unit-tests/resources/traverse/res-9 [moved from tests/resources/traverse/res-9 with 100% similarity]
unit-tests/secure-storage-old-data/README [moved from tests/secure-storage-old-data/README with 100% similarity]
unit-tests/secure-storage-old-data/push-data.sh [moved from tests/secure-storage-old-data/push-data.sh with 100% similarity]
unit-tests/secure-storage-old-data/secure-storage/salt [moved from tests/secure-storage-old-data/secure-storage/salt with 100% similarity]
unit-tests/secure-storage-old-data/secure-storage::test1/test-data-1 [moved from tests/secure-storage-old-data/secure-storage::test1/test-data-1 with 100% similarity]
unit-tests/secure-storage-old-data/secure-storage::test1/test-data-2 [moved from tests/secure-storage-old-data/secure-storage::test1/test-data-2 with 100% similarity]
unit-tests/secure-storage-old-data/secure-storage::test1/test-data-3 [moved from tests/secure-storage-old-data/secure-storage::test1/test-data-3 with 100% similarity]
unit-tests/secure-storage-old-data/secure-storage::test2/test-data-1 [moved from tests/secure-storage-old-data/secure-storage::test2/test-data-1 with 100% similarity]
unit-tests/secure-storage-old-data/secure-storage::test2/test-data-2 [moved from tests/secure-storage-old-data/secure-storage::test2/test-data-2 with 100% similarity]
unit-tests/secure-storage-old-data/secure-storage::test2/test-data-3 [moved from tests/secure-storage-old-data/secure-storage::test2/test-data-3 with 100% similarity]
unit-tests/test_async-observer.cpp [moved from tests/test_async-observer.cpp with 100% similarity]
unit-tests/test_base64.cpp [moved from tests/test_base64.cpp with 100% similarity]
unit-tests/test_binary-queue.cpp [moved from tests/test_binary-queue.cpp with 100% similarity]
unit-tests/test_certificate.cpp [moved from tests/test_certificate.cpp with 100% similarity]
unit-tests/test_comm-manager.cpp [moved from tests/test_comm-manager.cpp with 100% similarity]
unit-tests/test_common.cpp [moved from tests/test_common.cpp with 100% similarity]
unit-tests/test_common.h [moved from tests/test_common.h with 100% similarity]
unit-tests/test_crypto-logic.cpp [moved from tests/test_crypto-logic.cpp with 100% similarity]
unit-tests/test_data-type.cpp [moved from tests/test_data-type.cpp with 100% similarity]
unit-tests/test_db_crypto.cpp [moved from tests/test_db_crypto.cpp with 100% similarity]
unit-tests/test_descriptor-set.cpp [moved from tests/test_descriptor-set.cpp with 100% similarity]
unit-tests/test_dpl-db.cpp [moved from tests/test_dpl-db.cpp with 100% similarity]
unit-tests/test_dpl-exception.cpp [moved from tests/test_dpl-exception.cpp with 100% similarity]
unit-tests/test_exception.cpp [moved from tests/test_exception.cpp with 100% similarity]
unit-tests/test_for-each-file.cpp [moved from tests/test_for-each-file.cpp with 100% similarity]
unit-tests/test_generic-backend.cpp [moved from tests/test_generic-backend.cpp with 100% similarity]
unit-tests/test_key-provider.cpp [moved from tests/test_key-provider.cpp with 99% similarity]
unit-tests/test_key.cpp [moved from tests/test_key.cpp with 100% similarity]
unit-tests/test_log-provider.cpp [moved from tests/test_log-provider.cpp with 100% similarity]
unit-tests/test_safe-buffer.cpp [moved from tests/test_safe-buffer.cpp with 100% similarity]
unit-tests/test_serialization.cpp [moved from tests/test_serialization.cpp with 100% similarity]
unit-tests/test_sql.cpp [moved from tests/test_sql.cpp with 100% similarity]
unit-tests/test_ss-crypto.cpp [moved from tests/test_ss-crypto.cpp with 100% similarity]
unit-tests/test_stringify.cpp [moved from tests/test_stringify.cpp with 100% similarity]
unit-tests/test_sw-backend.cpp [moved from tests/test_sw-backend.cpp with 100% similarity]
unit-tests/test_watched-thread.h [moved from tests/test_watched-thread.h with 100% similarity]
unit-tests/test_xml-parser.cpp [moved from tests/test_xml-parser.cpp with 100% similarity]