Move generic Sqlite3DBase test files to common part. 36/23836/1
authorMarcin Lis <m.lis@samsung.com>
Tue, 1 Jul 2014 15:06:21 +0000 (17:06 +0200)
committerMarcin Lis <m.lis@samsung.com>
Thu, 3 Jul 2014 14:05:01 +0000 (16:05 +0200)
Prepare DB-test framework for later use in security-manager tests.

Change-Id: I9454431db2654adc0019446e08615ae72051a0fd
Signed-off-by: Marcin Lis <m.lis@samsung.com>
tests/common/CMakeLists.txt
tests/common/db_sqlite.cpp [moved from tests/libprivilege-control-tests/common/db_sqlite.cpp with 100% similarity]
tests/common/db_sqlite.h [moved from tests/libprivilege-control-tests/common/db_sqlite.h with 100% similarity]
tests/libprivilege-control-tests/CMakeLists.txt

index 87c9bcb..53077eb 100644 (file)
@@ -7,6 +7,7 @@ PKG_CHECK_MODULES(COMMON_TARGET_DEP
     dpl-test-efl
     dbus-1
     dbus-glib-1
+    sqlite3
     REQUIRED
     )
 
@@ -21,6 +22,7 @@ SET(COMMON_TARGET_TEST_SOURCES
     ${PROJECT_SOURCE_DIR}/tests/common/dbus_access.cpp
     ${PROJECT_SOURCE_DIR}/tests/common/gdbbacktrace.cpp
     ${PROJECT_SOURCE_DIR}/tests/common/memory.cpp
+    ${PROJECT_SOURCE_DIR}/tests/common/db_sqlite.cpp
     )
 
 #system and local includes
index 6ffa49d..ca2afce 100644 (file)
@@ -69,7 +69,6 @@ PKG_CHECK_MODULES(LPC_TARGET_DEP
 
 #files to compile
 SET(LPC_TARGET_TEST_SOURCES
-    ${PROJECT_SOURCE_DIR}/tests/libprivilege-control-tests/common/db_sqlite.cpp
     ${PROJECT_SOURCE_DIR}/tests/libprivilege-control-tests/common/db.cpp
     ${PROJECT_SOURCE_DIR}/tests/libprivilege-control-tests/common/duplicates.cpp
     ${PROJECT_SOURCE_DIR}/tests/libprivilege-control-tests/libprivilege-control-test.cpp