Changes: Boot-mode tests added to tests.xml

RevBy: TrustMe
pull/1/head
Nimika Keshri 15 years ago
parent 3d2b163018
commit 952776a95f

@ -9,6 +9,7 @@ usr/share/applauncherd-testscripts/get-coordinates.rb
usr/share/applauncherd-testscripts/utils.py usr/share/applauncherd-testscripts/utils.py
usr/share/applauncherd-testscripts/test-security.py usr/share/applauncherd-testscripts/test-security.py
usr/share/applauncherd-testscripts/test-daemons.py usr/share/applauncherd-testscripts/test-daemons.py
usr/share/applauncherd-testscripts/test-boot-mode.py
usr/bin/fala_wid usr/bin/fala_wid
usr/share/applauncherd-testscripts/fala_xres_wl usr/share/applauncherd-testscripts/fala_xres_wl
usr/share/applauncherd-testscripts/fala_xres_wol usr/share/applauncherd-testscripts/fala_xres_wol

@ -84,6 +84,24 @@
<step expected_result="0">source /tmp/session_bus_address.user; DISPLAY=:0 /usr/share/applauncherd-testscripts/tc_splash.rb --name test_no_splash</step> <step expected_result="0">source /tmp/session_bus_address.user; DISPLAY=:0 /usr/share/applauncherd-testscripts/tc_splash.rb --name test_no_splash</step>
</case> </case>
<environments>
<scratchbox>true</scratchbox>
<hardware>true</hardware>
</environments>
</set>
<set name="TC_Boot_mode" description="functional tests for boot mode" feature="AF Basic Launcher daemon support" requirement="300168">
<pre_steps>
<step>/usr/bin/waitloadavg.rb -l 1.0 -p 1.0 -t 120</step>
</pre_steps>
<case name="applauncherd__test_change_to_normal_mode" type="Functional" description="To test change from boot mode to normal mode" timeout="360" level="System" insignificant="true">
<step expected_result="0">source /tmp/session_bus_address.user; DISPLAY=:0 `pyversions -d` /usr/share/applauncherd-testscripts/test-boot-mode.py test_change_to_normal_mode</step>
</case>
<case name="applauncherd__test_boot_mode_and_normal_mode" type="Functional" description="To test boot mode and normal mode" timeout="360" level="System" insignificant="true">
<step expected_result="0">source /tmp/session_bus_address.user; DISPLAY=:0 `pyversions -d` /usr/share/applauncherd-testscripts/test-boot-mode.py test_boot_mode_and_normal_mode</step>
</case>
<environments> <environments>
<scratchbox>true</scratchbox> <scratchbox>true</scratchbox>
<hardware>true</hardware> <hardware>true</hardware>

@ -12,6 +12,7 @@ if ($ENV{HARMATTAN})
test-daemons.py test-daemons.py
test-single-instance.py test-single-instance.py
test-core-dump.py test-core-dump.py
test-boot-mode.py
DESTINATION /usr/share/applauncherd-testscripts) DESTINATION /usr/share/applauncherd-testscripts)
install(PROGRAMS install(PROGRAMS

@ -77,13 +77,14 @@ class BootModeTests(unittest.TestCase):
if get_pid('applauncherd'): if get_pid('applauncherd'):
kill_process('applauncherd') kill_process('applauncherd')
start_applauncherd()
time.sleep(5) time.sleep(5)
def start_applauncherd_in_boot_mode(self): def start_applauncherd_in_boot_mode(self):
remove_applauncherd_runtime_files() remove_applauncherd_runtime_files()
run_app_as_user('/usr/bin/applauncherd --boot-mode', flag = False) run_cmd_as_user('/usr/bin/applauncherd --boot-mode')
time.sleep(5) time.sleep(5)
@ -128,7 +129,7 @@ class BootModeTests(unittest.TestCase):
def launch_apps(self, n = 6): def launch_apps(self, n = 6):
# check that launching works and the apps are there # check that launching works and the apps are there
for i in range(n): for i in range(n):
run_app_as_user('/usr/bin/invoker -n -r 2 --type=m fala_multi-instance %d' % i, flag = False) run_cmd_as_user('/usr/bin/invoker -n -r 2 --type=m fala_multi-instance %d' % i)
# give the applications time to really start # give the applications time to really start
time.sleep(2 * n + 5) time.sleep(2 * n + 5)

Loading…
Cancel
Save