[Kde-pim] KDE/kdepimlibs/akonadi/tests/testrunner
Igor Trindade Oliveira
igor_trindade at yahoo.com.br
Tue Nov 18 02:40:03 GMT 2008
hello,
Me and Kevin are working on testrunner since GSoC 2008 and i will go to explain how you can use it.
First you need create a configuration file in KStandDirs config resource type(try to use:kde4-config --path config , to find the path in my case the path is /usr/share/kde4/config) , the configuration file is a xml and look like:
<config> -- xml root
<kdehome>/home/igor/kde/installs/trunk </kdehome> --path to your kde home in my case is /home/igor/kde/installs/trunk
<confighome> /home/igor/codes/kde/tests/test_akonadi/</confighome> --path to akonadi configuration, in my case /home/igor/codes/kde/tests/test_akonadi/
<datahome>/home/igor/codes/kde/tests/test_akonadi/data</datahome> --path to akonadi data
<resource>akonadi_ical_resource</resource> -- load the
akonadi ical resource
<resource>akonadi_vcard_resource</resource> --load the akonadi vcard
resource
<item location="/path/to/file.vcf" collection="akonadi_vcard_resource_0"/> --load the file.vcf item to akonadi_vcard_resource_0 collection
</config> --finish configuration
After that you only needs to run the testrunner:
%./akonaditest
and it creates a shellscript file in your current directory called testenvironment.sh and you just need to run it.
%source testenvironment.sh
And right now you have a self contained Akonadi server. :>
If you have any kind of problem, send me a mail.
cheers,
Igor
--- Em seg, 17/11/08, Kevin Krammer <kevin.krammer at gmx.at> escreveu:
> De: Kevin Krammer <kevin.krammer at gmx.at>
> Assunto: [Kde-pim] KDE/kdepimlibs/akonadi/tests/testrunner
> Para: kde-commits at kde.org
> Cc: kde-pim at kde.org
> Data: Segunda-feira, 17 de Novembro de 2008, 18:06
> SVN commit 885725 by krake:
>
> Make it build in its new home.
>
> Also deactivated its install, so we can keep working on it
> as part of the test infrastructure during the 4.2 freeze.
> We can re-enable it as an official test tool during 4.3
> development.
>
> CCMAIL: kde-pim at kde.org
>
>
>
> M +47 -5 CMakeLists.txt
>
>
> ---
> trunk/KDE/kdepimlibs/akonadi/tests/testrunner/CMakeLists.txt
> #885724:885725
> @@ -1,11 +1,53 @@
> project (akonaditest)
>
> -include_directories(${KDE4_INCLUDES})
> -include_directories (${Boost_INCLUDE_DIR})
> +include_directories(
> + ${CMAKE_SOURCE_DIR}/kabc
> + ${CMAKE_SOURCE_DIR}/kcal
> + ${CMAKE_SOURCE_DIR}/akonadi
> + ${CMAKE_BINARY_DIR}/kabc
> + ${CMAKE_BINARY_DIR}/kcal
> + ${CMAKE_BINARY_DIR}/akonadi
> + ${CMAKE_CURRENT_SOURCE_DIR}
> + ${Boost_INCLUDE_DIR}
> + ${AKONADI_INCLUDE_DIR}
> + ${KDE4_INCLUDES}
> +)
> +
> set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}
> ${KDE4_ENABLE_EXCEPTIONS}" )
>
> -set(akonaditest_SRCS main.cpp akonaditesting.cpp dao.cpp
> item.cpp itemfactory.cpp calitem.cpp vcarditem.cpp
> feeditem.cpp setup.cpp configreader.cpp config.cpp
> shellscript.cpp symbols.cpp)
> +set(akonaditest_SRCS
> + main.cpp
> + akonaditesting.cpp
> + dao.cpp
> + item.cpp
> + itemfactory.cpp
> + calitem.cpp
> + vcarditem.cpp
> + feeditem.cpp
> + setup.cpp
> + configreader.cpp
> + config.cpp
> + shellscript.cpp
> + symbols.cpp
> +)
>
> kde4_add_executable(akonaditest ${akonaditest_SRCS})
> -target_link_libraries(akonaditest ${KDE4_KDEUI_LIB}
> ${Boost_LIBRARIES} ${KDE4_AKONADI_LIBS} ${KDE4_KABC_LIBS}
> ${KDE4_KCAL_LIBS} ${KDE4_SYNDICATION_LIBS} )
> -install(TARGETS akonaditest
> ${INSTALL_TARGETS_DEFAULT_ARGS})
> +
> +target_link_libraries(akonaditest
> + akonadi-kde
> + kabc
> + kcal
> + syndication
> + ${KDE4_KDEUI_LIB}
> + ${Boost_LIBRARIES}
> + ${KDE4_AKONADI_LIBS}
> + ${KDE4_KABC_LIBS}
> + ${KDE4_KCAL_LIBS}
> + ${KDE4_SYNDICATION_LIBS}
> + ${KDE4_KDECORE_LIBS}
> + ${QT_QTCORE_LIBRARY}
> + ${QT_QTXML_LIBRARY}
> + ${QT_QTDBUS_LIBRARY}
> +)
> +
> +#install(TARGETS akonaditest
> ${INSTALL_TARGETS_DEFAULT_ARGS})
> _______________________________________________
> KDE PIM mailing list kde-pim at kde.org
> https://mail.kde.org/mailman/listinfo/kde-pim
> KDE PIM home page at http://pim.kde.org/
Veja quais são os assuntos do momento no Yahoo! +Buscados
http://br.maisbuscados.yahoo.com
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/
More information about the kde-pim
mailing list