Changes: Test for applauncherd.bin --help & application search without giving full path

RevBy: TrustMe
pull/1/head
Nimika Keshri 15 years ago
parent 1b8752e4e6
commit bc237dc57d

@ -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

@ -39,6 +39,14 @@
<step expected_result="0">source /tmp/session_bus_address.user; DISPLAY=:0 `pyversions -d` /usr/share/applauncherd-testscripts/test-func-launcher.py test_012</step>
</case>
<case name="applauncherd-usage" type="Functional" description="Test that invokers --delay parameter works" timeout="120" level="System" insignificant="true">
<step expected_result="0">source /tmp/session_bus_address.user; DISPLAY=:0 `pyversions -d` /usr/share/applauncherd-testscripts/test-func-launcher.py test_013_applauncherd_usage</step>
</case>
<case name="search-app" type="Functional" description="Test that invokers --delay parameter works" timeout="120" level="System" insignificant="true">
<step expected_result="0">source /tmp/session_bus_address.user; DISPLAY=:0 `pyversions -d` /usr/share/applauncherd-testscripts/test-func-launcher.py test_014_search_path</step>
</case>
<environments>
<scratchbox>true</scratchbox>
<hardware>true</hardware>

Loading…
Cancel
Save