Commit 91dcfa35 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Activate Autotest

parent ece323e8
Pipeline #42848 canceled with stage
...@@ -5,3 +5,10 @@ find_package(Qt5Test CONFIG REQUIRED) ...@@ -5,3 +5,10 @@ find_package(Qt5Test CONFIG REQUIRED)
if(Ldap_FOUND) if(Ldap_FOUND)
ecm_add_tests(testkldap.cpp NAME_PREFIX "kldap-" LINK_LIBRARIES KF5::Ldap Qt5::Test) ecm_add_tests(testkldap.cpp NAME_PREFIX "kldap-" LINK_LIBRARIES KF5::Ldap Qt5::Test)
endif() endif()
set(ldapclientsearchconfigreadconfigjobtest_source ldapclientsearchconfigreadconfigjobtest.cpp)
add_executable(ldapclientsearchconfigreadconfigjobtest ${ldapclientsearchconfigreadconfigjobtest_source})
add_test(NAME ldapclientsearchconfigreadconfigjobtest COMMAND ldapclientsearchconfigreadconfigjobtest)
ecm_mark_as_test(ldapclientsearchconfigreadconfigjobtest)
target_link_libraries(ldapclientsearchconfigreadconfigjobtest Qt5::Test KF5::Ldap)
...@@ -5,7 +5,8 @@ ...@@ -5,7 +5,8 @@
*/ */
#include "ldapclientsearchconfigreadconfigjobtest.h" #include "ldapclientsearchconfigreadconfigjobtest.h"
#include <QTest>
QTEST_MAIN(LdapClientSearchConfigReadConfigJobTest)
LdapClientSearchConfigReadConfigJobTest::LdapClientSearchConfigReadConfigJobTest(QObject *parent) LdapClientSearchConfigReadConfigJobTest::LdapClientSearchConfigReadConfigJobTest(QObject *parent)
: QObject(parent) : QObject(parent)
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment