From e28e3db132795c85acd09f3aba926f586e7550e6 Mon Sep 17 00:00:00 2001 From: Nimika Keshri Date: Fri, 27 Aug 2010 16:56:25 +0300 Subject: [PATCH] Changes: Test for invoker can launch applications even without applauncherd RevBy: TrustMe --- tests/TestScripts/test-func-launcher.py | 21 +++++++++++++++ tests/bug-tests/tests.xml | 35 ++++++++++++++----------- 2 files changed, 41 insertions(+), 15 deletions(-) diff --git a/tests/TestScripts/test-func-launcher.py b/tests/TestScripts/test-func-launcher.py index 5d61933..da5c488 100644 --- a/tests/TestScripts/test-func-launcher.py +++ b/tests/TestScripts/test-func-launcher.py @@ -713,6 +713,27 @@ class launcher_tests (unittest.TestCase): print ("The Invoker killed by : %s" %op) self.assert_(op == 'Segmentation fault (core dumped)', "The invoker was not killed by the same signal") + + def test_020_launch_wo_applauncherd(self): + """ + To Test that invoker can launch applications even when the applauncherd is not running + """ + + #Stop applauncherd + os.system("initctl stop xsession/applauncherd") + time.sleep(1) + #Try to launch an application using invoker + os.system('invoker --type=m /usr/bin/fala_ft_hello.launch &') + time.sleep(3) + process_id1 = self.get_pid('fala_ft_hello') + + self.assert_(process_id1 != None , "application not launcherd running") + time.sleep(1) + self.kill_process(PREFERED_APP) + os.system("initctl start xsession/applauncherd") + + + # main if __name__ == '__main__': # When run with testrunner, for some reason the PATH doesn't include diff --git a/tests/bug-tests/tests.xml b/tests/bug-tests/tests.xml index 2d8b750..cd3df1e 100644 --- a/tests/bug-tests/tests.xml +++ b/tests/bug-tests/tests.xml @@ -10,19 +10,24 @@ /usr/bin/waitloadavg.rb -l 1.0 -p 1.0 -t 120 - + + source /tmp/session_bus_address.user; DISPLAY=:0 `pyversions -d` /usr/share/applauncherd-testscripts/test-func-launcher.py test_009_launch_multiple_apps_cont + + + + source /tmp/session_bus_address.user; DISPLAY=:0 `pyversions -d` /usr/share/applauncherd-testscripts/test-func-launcher.py test_020_launch_wo_applauncherd + + + source /tmp/session_bus_address.user; DISPLAY=:0 `pyversions -d` /usr/share/applauncherd-testscripts/test-func-launcher.py test_007_no_aegis_Bug170905 - + source /tmp/session_bus_address.user; DISPLAY=:0 `pyversions -d` /usr/share/applauncherd-testscripts/test-func-launcher.py test_008_invoker_creds - - source /tmp/session_bus_address.user; DISPLAY=:0 `pyversions -d` /usr/share/applauncherd-testscripts/test-func-launcher.py test_009_launch_multiple_apps_cont - - + source /tmp/session_bus_address.user; DISPLAY=:0 `pyversions -d` /usr/share/applauncherd-testscripts/test-func-launcher.py test_006_creds @@ -39,11 +44,11 @@ /usr/bin/waitloadavg.rb -l 1.0 -p 1.0 -t 120 - + source /tmp/session_bus_address.user; DISPLAY=:0 /usr/share/applauncherd-testscripts/tc_theming.rb --name test_application_specific_theming - + source /tmp/session_bus_address.user; DISPLAY=:0 /usr/share/applauncherd-testscripts/tc_theming.rb --name test_global_theming @@ -61,19 +66,19 @@ /usr/bin/waitloadavg.rb -l 1.0 -p 1.0 -t 120 - + source /tmp/session_bus_address.user; DISPLAY=:0 `pyversions -d` /usr/share/applauncherd-testscripts/test-func-launcher.py test_010 - + source /tmp/session_bus_address.user; DISPLAY=:0 `pyversions -d` /usr/share/applauncherd-testscripts/test-func-launcher.py test_017_invoker_exit_status - + source /tmp/session_bus_address.user; DISPLAY=:0 `pyversions -d` /usr/share/applauncherd-testscripts/test-func-launcher.py test_018_invoker_gid_uid - + source /tmp/session_bus_address.user; DISPLAY=:0 `pyversions -d` /usr/share/applauncherd-testscripts/test-func-launcher.py test_019_signal_forwarding @@ -88,15 +93,15 @@ /usr/bin/waitloadavg.rb -l 1.0 -p 1.0 -t 120 - + source /tmp/session_bus_address.user; DISPLAY=:0 `pyversions -d` /usr/share/applauncherd-testscripts/test-func-launcher.py test_014_fd_booster_m - + source /tmp/session_bus_address.user; DISPLAY=:0 `pyversions -d` /usr/share/applauncherd-testscripts/test-func-launcher.py test_015_fd_booster_q - + source /tmp/session_bus_address.user; DISPLAY=:0 `pyversions -d` /usr/share/applauncherd-testscripts/test-func-launcher.py test_016_restart_booster