From bc237dc57d3818d346986e34bc81735aa5c61325 Mon Sep 17 00:00:00 2001 From: Nimika Keshri Date: Wed, 28 Jul 2010 12:16:40 +0300 Subject: [PATCH] Changes: Test for applauncherd.bin --help & application search without giving full path RevBy: TrustMe --- tests/TestScripts/test-func-launcher.py | 16 ++++++++++++++++ tests/functests/tests.xml | 8 ++++++++ 2 files changed, 24 insertions(+) diff --git a/tests/TestScripts/test-func-launcher.py b/tests/TestScripts/test-func-launcher.py index 2276644..737eac8 100644 --- a/tests/TestScripts/test-func-launcher.py +++ b/tests/TestScripts/test-func-launcher.py @@ -523,6 +523,22 @@ class launcher_tests (unittest.TestCase): self.assert_(success, "invoker terminated before delay elapsed") + def test_013_applauncherd_usage(self): + """ + Test applauncherd.bin help + """ + st, op = commands.getstatusoutput("applauncherd.bin --help") + self.assert_(st == 0, "Usage not printed") + str = op.split('\n') + self.assert_(str[0] == 'Usage: applauncherd [options]', "usage not printed properly") + + def test_014_search_path(self): + """ + Test invoker search application path + """ + st = os.system("invoker --type=m fala_ft_hello.launch") + self.assert_(st == 0, "Application not found ") + # main if __name__ == '__main__': # When run with testrunner, for some reason the PATH doesn't include diff --git a/tests/functests/tests.xml b/tests/functests/tests.xml index 70091c4..348a0b5 100644 --- a/tests/functests/tests.xml +++ b/tests/functests/tests.xml @@ -39,6 +39,14 @@ source /tmp/session_bus_address.user; DISPLAY=:0 `pyversions -d` /usr/share/applauncherd-testscripts/test-func-launcher.py test_012 + + source /tmp/session_bus_address.user; DISPLAY=:0 `pyversions -d` /usr/share/applauncherd-testscripts/test-func-launcher.py test_013_applauncherd_usage + + + + source /tmp/session_bus_address.user; DISPLAY=:0 `pyversions -d` /usr/share/applauncherd-testscripts/test-func-launcher.py test_014_search_path + + true true