diff --git a/debian/applauncherd-testapps.install b/debian/applauncherd-testapps.install index 9de37ee..d85ff14 100644 --- a/debian/applauncherd-testapps.install +++ b/debian/applauncherd-testapps.install @@ -1,5 +1,6 @@ usr/bin/fala_ft_hello usr/bin/fala_status +usr/bin/fala_wait usr/bin/fala_ft_hello1 usr/bin/fala_ft_hello2 usr/bin/fala_ft_creds1 diff --git a/debian/applauncherd-testscripts.install b/debian/applauncherd-testscripts.install index aa1b5a2..c5fd080 100644 --- a/debian/applauncherd-testscripts.install +++ b/debian/applauncherd-testscripts.install @@ -8,6 +8,7 @@ usr/share/applauncherd-testscripts/test-perf.rb usr/share/applauncherd-testscripts/get-coordinates.rb usr/share/applauncherd-testscripts/utils.py usr/share/applauncherd-testscripts/test-security.py +usr/share/applauncherd-testscripts/test-invoker.py usr/share/applauncherd-testscripts/test-daemons.py usr/share/applauncherd-testscripts/test-boot-mode.py usr/share/applauncherd-testscripts/view.qml diff --git a/src/invoker/invoker.c b/src/invoker/invoker.c index 91c8910..399867f 100644 --- a/src/invoker/invoker.c +++ b/src/invoker/invoker.c @@ -101,6 +101,9 @@ static void sig_forwarder(int sig) // Send the signal to itself using the default handler raise(sig); +#ifdef WITH_COVERAGE + __gcov_flush(); +#endif } } diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index c35ceeb..5e575c8 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -43,6 +43,9 @@ add_subdirectory(common/unittests) # Sub build: common/testapps/fala_status add_subdirectory(common/testapps/fala_status) +# Sub build: common/testapps/fala_wait +add_subdirectory(common/testapps/fala_wait) + # Sub build: common/testapps/focustest add_subdirectory(common/testapps/focustest) diff --git a/tests/common/testapps/fala_wait/CMakeLists.txt b/tests/common/testapps/fala_wait/CMakeLists.txt new file mode 100644 index 0000000..bf92277 --- /dev/null +++ b/tests/common/testapps/fala_wait/CMakeLists.txt @@ -0,0 +1,32 @@ +# Set sources +set(SRC fala_wait.cpp) + +link_libraries(${MEEGOTOUCH_LIBRARIES}) + +include(${QT_USE_FILE}) + +# Use the compiler and linker flags given in meegotouch-boostable.pc +# in the source tree. +execute_process(COMMAND "env" + "PKG_CONFIG_PATH=${CMAKE_SOURCE_DIR}/data/pkgconfig" + "/usr/bin/pkg-config" + "--cflags" + "meegotouch-boostable" + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} + OUTPUT_VARIABLE booster_cflags + OUTPUT_STRIP_TRAILING_WHITESPACE) +execute_process(COMMAND "env" + "PKG_CONFIG_PATH=${CMAKE_SOURCE_DIR}/data/pkgconfig" + "/usr/bin/pkg-config" "--libs" + "meegotouch-boostable" + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} + OUTPUT_VARIABLE booster_libs + OUTPUT_STRIP_TRAILING_WHITESPACE) +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${booster_cflags}") +set(CMAKE_EXE_LINKER_FLAGS ${booster_libs}) + +add_executable(fala_wait ${SRC}) + +# Install +install(PROGRAMS fala_wait DESTINATION /usr/bin/ ) + diff --git a/tests/common/testapps/fala_wait/fala_wait.cpp b/tests/common/testapps/fala_wait/fala_wait.cpp new file mode 100644 index 0000000..02705fd --- /dev/null +++ b/tests/common/testapps/fala_wait/fala_wait.cpp @@ -0,0 +1,36 @@ +/*************************************************************************** +** +** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (directui@nokia.com) +** +** This file is part of applauncherd +** +** If you have questions regarding the use of this file, please contact +** Nokia at directui@nokia.com. +** +** This library is free software; you can redistribute it and/or +** modify it under the terms of the GNU Lesser General Public +** License version 2.1 as published by the Free Software Foundation +** and appearing in the file LICENSE.LGPL included in the packaging +** of this file. +** +****************************************************************************/ + +#include +#include +#include +#include + +#ifdef HAVE_MCOMPONENTCACHE +#include +#endif + +M_EXPORT int main(int argc, char ** argv) +{ +#ifdef HAVE_MCOMPONENTCACHE + MApplication *app = MComponentCache::mApplication(argc, argv); +#endif + QTimer::singleShot(6000, app, SLOT(quit())); + app->exec(); +} diff --git a/tests/harmattan/red-tests/tests.xml b/tests/harmattan/red-tests/tests.xml index 578345d..7fbaffc 100644 --- a/tests/harmattan/red-tests/tests.xml +++ b/tests/harmattan/red-tests/tests.xml @@ -49,6 +49,18 @@ source /tmp/session_bus_address.user; DISPLAY=:0 `pyversions -d` /usr/share/applauncherd-testscripts/test-func-launcher.py test_launched_app_name + + source /tmp/session_bus_address.user; DISPLAY=:0 `pyversions -d` /usr/share/applauncherd-testscripts/test-func-launcher.py test_argv_mbooster_limit + + + source /tmp/session_bus_address.user; DISPLAY=:0 `pyversions -d` /usr/share/applauncherd-testscripts/test-func-launcher.py test_argv_dbooster_limit + + + source /tmp/session_bus_address.user; DISPLAY=:0 `pyversions -d` /usr/share/applauncherd-testscripts/test-func-launcher.py test_argv_mbooster_over_limit + + + source /tmp/session_bus_address.user; DISPLAY=:0 `pyversions -d` /usr/share/applauncherd-testscripts/test-func-launcher.py test_argv_mbooster_over_limit +