Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
PIM
KDE PIM Runtime
Commits
8051fa17
Commit
8051fa17
authored
Jul 09, 2014
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Port tests
parent
ace576f9
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
32 additions
and
14 deletions
+32
-14
resources/maildir/libmaildir/tests/CMakeLists.txt
resources/maildir/libmaildir/tests/CMakeLists.txt
+7
-1
resources/shared/CMakeLists.txt
resources/shared/CMakeLists.txt
+0
-1
resources/shared/filestore/CMakeLists.txt
resources/shared/filestore/CMakeLists.txt
+3
-4
resources/shared/filestore/tests/CMakeLists.txt
resources/shared/filestore/tests/CMakeLists.txt
+9
-1
resources/shared/filestore/tests/abstractlocalstoretest.cpp
resources/shared/filestore/tests/abstractlocalstoretest.cpp
+2
-2
resources/shared/tests/CMakeLists.txt
resources/shared/tests/CMakeLists.txt
+7
-1
resources/shared/tests/collectionannotationattributetest.cpp
resources/shared/tests/collectionannotationattributetest.cpp
+2
-2
resources/shared/tests/imapaclattributetest.cpp
resources/shared/tests/imapaclattributetest.cpp
+2
-2
No files found.
resources/maildir/libmaildir/tests/CMakeLists.txt
View file @
8051fa17
include
(
ECMAddTests
)
find_package
(
Qt5Test CONFIG REQUIRED
)
set
(
EXECUTABLE_OUTPUT_PATH
${
CMAKE_CURRENT_BINARY_DIR
}
)
set
(
EXECUTABLE_OUTPUT_PATH
${
CMAKE_CURRENT_BINARY_DIR
}
)
include_directories
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/..
)
include_directories
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/..
)
...
@@ -7,7 +11,9 @@ include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/.. )
...
@@ -7,7 +11,9 @@ include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/.. )
set
(
testmaildir_SRCS testmaildir.cpp
)
set
(
testmaildir_SRCS testmaildir.cpp
)
kde4_add_unit_test
(
testmaildir TESTNAME maildir-testmaildir
${
testmaildir_SRCS
}
)
add_executable
(
testmaildir
${
testmaildir_SRCS
}
)
add_test
(
testmaildir testmaildir
)
ecm_mark_as_test
(
maildir-testmaildir
)
target_link_libraries
(
testmaildir Qt5::Test KF5::AkonadiMime maildir
)
target_link_libraries
(
testmaildir Qt5::Test KF5::AkonadiMime maildir
)
resources/shared/CMakeLists.txt
View file @
8051fa17
add_subdirectory
(
filestore
)
add_subdirectory
(
filestore
)
#REACTIVATE
add_subdirectory
(
tests
)
add_subdirectory
(
tests
)
resources/shared/filestore/CMakeLists.txt
View file @
8051fa17
...
@@ -31,8 +31,7 @@ set_target_properties(akonadi-filestore PROPERTIES VERSION ${KDEPIMRUNTIME_LIB_V
...
@@ -31,8 +31,7 @@ set_target_properties(akonadi-filestore PROPERTIES VERSION ${KDEPIMRUNTIME_LIB_V
install
(
TARGETS akonadi-filestore
${
INSTALL_TARGETS_DEFAULT_ARGS
}
)
install
(
TARGETS akonadi-filestore
${
INSTALL_TARGETS_DEFAULT_ARGS
}
)
#reactivate
if
(
KDE4_BUILD_TESTS
)
#if (KDE4_BUILD_TESTS)
add_subdirectory
(
tests
)
# add_subdirectory( tests )
endif
()
#endif ()
resources/shared/filestore/tests/CMakeLists.txt
View file @
8051fa17
include
(
ECMAddTests
)
find_package
(
Qt5Test CONFIG REQUIRED
)
if
(
${
EXECUTABLE_OUTPUT_PATH
}
)
if
(
${
EXECUTABLE_OUTPUT_PATH
}
)
set
(
PREVIOUS_EXEC_OUTPUT_PATH
${
EXECUTABLE_OUTPUT_PATH
}
)
set
(
PREVIOUS_EXEC_OUTPUT_PATH
${
EXECUTABLE_OUTPUT_PATH
}
)
else
()
else
()
...
@@ -15,9 +19,13 @@ include_directories(
...
@@ -15,9 +19,13 @@ include_directories(
${
CMAKE_CURRENT_SOURCE_DIR
}
${
CMAKE_CURRENT_SOURCE_DIR
}
)
)
kde4_add_unit_test
(
abstractlocalstoretest abstractlocalstoretest.cpp
)
add_executable
(
abstractlocalstoretest abstractlocalstoretest.cpp
)
add_test
(
abstractlocalstoretest abstractlocalstoretest
)
ecm_mark_as_test
(
abstractlocalstoretest
)
target_link_libraries
(
target_link_libraries
(
abstractlocalstoretest
abstractlocalstoretest
akonadi-filestore
akonadi-filestore
KF5::AkonadiCore
KF5::AkonadiCore
Qt5::Test
)
)
resources/shared/filestore/tests/abstractlocalstoretest.cpp
View file @
8051fa17
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
#include <KRandom>
#include <KRandom>
#include <qtest
_kde
.h>
#include <qtest.h>
using
namespace
Akonadi
;
using
namespace
Akonadi
;
using
namespace
Akonadi
::
FileStore
;
using
namespace
Akonadi
::
FileStore
;
...
@@ -962,7 +962,7 @@ void AbstractLocalStoreTest::testCompactStore()
...
@@ -962,7 +962,7 @@ void AbstractLocalStoreTest::testCompactStore()
mStore
->
mErrorText
=
QString
();
mStore
->
mErrorText
=
QString
();
}
}
QTEST_
KDE
MAIN
(
AbstractLocalStoreTest
,
NoGUI
)
QTEST_MAIN
(
AbstractLocalStoreTest
)
#include "abstractlocalstoretest.moc"
#include "abstractlocalstoretest.moc"
...
...
resources/shared/tests/CMakeLists.txt
View file @
8051fa17
include
(
ECMAddTests
)
find_package
(
Qt5Test CONFIG REQUIRED
)
macro
(
_add_test _source
)
macro
(
_add_test _source
)
set
(
_test
${
_source
}
)
set
(
_test
${
_source
}
)
get_filename_component
(
_name
${
_source
}
NAME_WE
)
get_filename_component
(
_name
${
_source
}
NAME_WE
)
kde4_add_unit_test
(
${
_name
}
TESTNAME akonadi-
${
_name
}
${
_test
}
)
add_executable
(
${
_name
}
${
_test
}
)
add_test
(
${
_name
}
${
_name
}
)
ecm_mark_as_test
(
knotes-
${
_name
}
)
target_link_libraries
(
${
_name
}
Qt5::Test
target_link_libraries
(
${
_name
}
Qt5::Test
KF5::AkonadiCore KF5::Imap
)
KF5::AkonadiCore KF5::Imap
)
endmacro
()
endmacro
()
...
...
resources/shared/tests/collectionannotationattributetest.cpp
View file @
8051fa17
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
*/
*/
#include <QtTest>
#include <QtTest>
#include <qtest
_kde
.h>
#include <qtest.h>
#include "../collectionannotationsattribute.cpp"
#include "../collectionannotationsattribute.cpp"
typedef
QMap
<
QByteArray
,
QByteArray
>
Annotation
;
typedef
QMap
<
QByteArray
,
QByteArray
>
Annotation
;
...
@@ -79,7 +79,7 @@ class CollectionAnnotationAttributeTest : public QObject
...
@@ -79,7 +79,7 @@ class CollectionAnnotationAttributeTest : public QObject
};
};
QTEST_
KDE
MAIN
(
CollectionAnnotationAttributeTest
,
NoGUI
)
QTEST_MAIN
(
CollectionAnnotationAttributeTest
)
#include "collectionannotationattributetest.moc"
#include "collectionannotationattributetest.moc"
resources/shared/tests/imapaclattributetest.cpp
View file @
8051fa17
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
*/
*/
#include <QtTest>
#include <QtTest>
#include <qtest
_kde
.h>
#include <qtest.h>
#include "../imapaclattribute.cpp"
#include "../imapaclattribute.cpp"
using
namespace
Akonadi
;
using
namespace
Akonadi
;
...
@@ -105,6 +105,6 @@ class ImapAclAttributeTest : public QObject
...
@@ -105,6 +105,6 @@ class ImapAclAttributeTest : public QObject
}
}
};
};
QTEST_
KDE
MAIN
(
ImapAclAttributeTest
,
NoGUI
)
QTEST_MAIN
(
ImapAclAttributeTest
)
#include "imapaclattributetest.moc"
#include "imapaclattributetest.moc"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment