Changes: Perf tests splitted into different packages. Fixed the co-ordinate problem

RevBy: TrustMe
pull/1/head
Nimika Keshri 15 years ago
parent 9a1ad3c9a2
commit d3eb3a7904

@ -1 +0,0 @@
usr/share/applauncherd-bug-tests/tests.xml

@ -0,0 +1 @@
usr/share/applauncherd-libmeegotouch-perf-tests/tests.xml

@ -1,2 +0,0 @@
usr/share/applauncherd-performance-tests/tests.xml

@ -0,0 +1 @@
usr/share/applauncherd-qml-perf-tests/tests.xml

@ -0,0 +1 @@
usr/share/applauncherd-red-tests/tests.xml

@ -0,0 +1 @@
usr/share/applauncherd-reference-perf-tests/tests.xml

26
debian/control vendored

@ -101,23 +101,37 @@ XB-Maemo-CI-Stage:acceptance, validation
Description: applauncherd art tests
Art tests for testing applauncherd.
Package: applauncherd-bug-tests
Package: applauncherd-red-tests
Priority: extra
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, applauncherd-testapps, applauncherd-testscripts
XB-Maemo-CI-Packages: applauncherd
XB-Maemo-CI-Stage: fast, staging
Description: applauncherd bug tests
Tests related to bugs for testing applauncherd.
Description: Tests related to bugs and new features for applauncherd
Package: applauncherd-performance-tests
Package: applauncherd-libmeegotouch-perf-tests
Priority: extra
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, applauncherd-testapps, applauncherd-testscripts
XB-Maemo-CI-Packages: applauncherd
XB-Maemo-CI-Stage: fast, staging
Description: applauncherd performance tests
Performance testing binaries and shellscripts for testing applauncherd.
Description: applauncherd performance tests for libmeegotouch applications
Package: applauncherd-qml-perf-tests
Priority: extra
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, applauncherd-testapps, applauncherd-testscripts
XB-Maemo-CI-Packages: applauncherd
XB-Maemo-CI-Stage: fast, staging
Description: applauncherd performance tests for qml applications
Package: applauncherd-reference-perf-tests
Priority: extra
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, applauncherd-testapps, applauncherd-testscripts
XB-Maemo-CI-Packages: applauncherd
XB-Maemo-CI-Stage: fast, staging
Description: applauncherd performance tests for libmeegotouch applications without launcher
Package: applauncherd-doc
Depends: ${misc:Depends}

@ -22,14 +22,20 @@ add_subdirectory(Harmattan/TestScripts)
# Sub build: Harmattan/art-tests
add_subdirectory(Harmattan/art-tests)
# Sub build: Harmattan/bug-tests
add_subdirectory(Harmattan/bug-tests)
# Sub build: Harmattan/red-tests
add_subdirectory(Harmattan/red-tests)
# Sub build: Harmattan/functests
add_subdirectory(Harmattan/functests)
# Sub build: Harmattan/perftests
add_subdirectory(Harmattan/perftests)
# Sub build: Harmattan/perftests/qml
add_subdirectory(Harmattan/perftests/qml)
# Sub build: Harmattan/perftests/qml
add_subdirectory(Harmattan/perftests/lmt)
# Sub build: Harmattan/perftests/qml
add_subdirectory(Harmattan/perftests/reference)
# Sub build: Common/unittests
add_subdirectory(Common/unittests)

@ -151,7 +151,9 @@ if @meegoHome.test_object_exists?("LauncherButton", :text => appName)
icon.refresh
end
xpos = @meegoHome.LauncherButton(:name => "LauncherButton", :text => appName).attribute('x')
xpos = xpos.to_i + 59
ypos = @meegoHome.LauncherButton(:name => "LauncherButton", :text => appName).attribute('y')
ypos = ypos.to_i + 58
@pos = "#{xpos}x#{ypos}"
puts @pos

@ -0,0 +1,7 @@
if ($ENV{HARMATTAN})
install(FILES tests.xml DESTINATION /usr/share/applauncherd-libmeegotouch-perf-tests/)
endif ($ENV{HARMATTAN})
if ($ENV{MEEGO})
# Do nothing
endif ($ENV{MEEGO})

@ -0,0 +1,62 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<testdefinition version="0.1">
<!-- Test suite, name mandatory - the same as test package name -->
<!-- Schema: https://projects.maemo.org/docs/testing/xml-definition.html -->
<suite name="applauncherd-libmeegotouch-perf-tests" domain="Application framework">
<set name="test-command-line" description="Application startup time from command line" feature="AF DUI Booster for Launcher daemon" requirement="300195">
<pre_steps>
<step>/usr/bin/waitloadavg.rb -l 1.0 -p 1.0 -t 120</step>
</pre_steps>
<case name="Perf-Test-Command-launcher" type="Performance" description="Measure startup time of the application using launcher" timeout="500" level="System" insignificant="true">
<step expected_result="0">source /tmp/session_bus_address.user; DISPLAY=:0 /usr/share/applauncherd-testscripts/test-perf.rb name test_performance -- -c /usr/bin/fala_wl -b "fala_wl" -s 600 -t 50 -w 10 -f "/tmp/fala_wl.log" &gt; /tmp/perf_commandline_with_launcher.txt</step>
</case>
<post_steps>
<step>cp /tmp/fala_wl.log /tmp/cmdline_fala_wl.log</step>
</post_steps>
<environments>
<scratchbox>false</scratchbox>
<hardware>true</hardware>
</environments>
<get>
<file>/tmp/perf_commandline_with_launcher.txt</file>
<file>/tmp/cmdline_fala_wl.log</file>
</get>
</set>
<set name="test-applicationGrid" description="Application startup time from application grid" feature="AF DUI Booster for Launcher daemon" requirement="300195">
<pre_steps>
<step>/usr/bin/waitloadavg.rb -l 1.0 -p 1.0 -t 120</step>
</pre_steps>
<case name="Perf-Test-Grid-launcher" type="Performance" description="Measure startup time of the application using launcher" timeout="840" level="System" insignificant="true">
<step expected_result="0">source /tmp/session_bus_address.user; DISPLAY=:0 /usr/share/applauncherd-testscripts/test-perf.rb name test_performance -- -a fala_wl -b "fala_wl" -s 750 -t 50 -w 10 -f "/tmp/fala_wl.log" &gt; /tmp/perf_grid_with_launcher.txt</step>
</case>
<post_steps>
<step>cp /tmp/fala_wl.log /tmp/grid_fala_wl.log</step>
</post_steps>
<environments>
<scratchbox>false</scratchbox>
<hardware>true</hardware>
</environments>
<get>
<file>/tmp/perf_grid_with_launcher.txt</file>
<file>/tmp/grid_fala_wl.log</file>
</get>
</set>
</suite>
</testdefinition>

@ -1,5 +1,5 @@
if ($ENV{HARMATTAN})
install(FILES tests.xml DESTINATION /usr/share/applauncherd-performance-tests/)
install(FILES tests.xml DESTINATION /usr/share/applauncherd-qml-perf-tests/)
endif ($ENV{HARMATTAN})
if ($ENV{MEEGO})

@ -0,0 +1,63 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<testdefinition version="0.1">
<!-- Test suite, name mandatory - the same as test package name -->
<!-- Schema: https://projects.maemo.org/docs/testing/xml-definition.html -->
<suite name="applauncherd-qml-perf-tests" domain="Application framework">
<set name="test-command-line" description="Application startup time from command line" feature="AF DUI Booster for Launcher daemon" requirement="300195">
<pre_steps>
<step>/usr/bin/waitloadavg.rb -l 1.0 -p 1.0 -t 120</step>
</pre_steps>
<case name="Perf-Test-Command-QML-launcher" type="Performance" description="Measure startup time of the QML application using launcher" timeout="500" level="System" insignificant="true">
<step expected_result="0">source /tmp/session_bus_address.user; DISPLAY=:0 /usr/share/applauncherd-testscripts/test-perf.rb name test_performance -- -c /usr/bin/fala_qml_wl -b fala_qml_wl -s 600 -f "/tmp/fala_qml_wl.log" &gt; /tmp/perf_commandline_qml_with_launcher.txt</step>
</case>
<post_steps>
<step>cp /tmp/fala_qml_wl.log /tmp/cmdline_fala_qml_wl.log</step>
</post_steps>
<environments>
<scratchbox>false</scratchbox>
<hardware>true</hardware>
</environments>
<get>
<file>/tmp/perf_commandline_qml_with_launcher.txt</file>
<file>/tmp/cmdline_fala_qml_wl.log</file>
</get>
</set>
<set name="test-applicationGrid" description="Application startup time from application grid" feature="AF DUI Booster for Launcher daemon" requirement="300195">
<pre_steps>
<step>/usr/bin/waitloadavg.rb -l 1.0 -p 1.0 -t 120</step>
</pre_steps>
<case name="Perf-Test-Grid-QML-launcher" type="Performance" description="Measure startup time of the QML application using launcher" timeout="840" level="System" insignificant="true">
<step expected_result="0">source /tmp/session_bus_address.user; DISPLAY=:0 /usr/share/applauncherd-testscripts/test-perf.rb name test_performance -- -a fala_qml_wl -b fala_qml_wl -s 750 -f "/tmp/fala_qml_wl.log" &gt; /tmp/perf_grid_qml_with_launcher.txt</step>
</case>
<post_steps>
<step>cp /tmp/fala_qml_wl.log /tmp/grid_fala_qml_wl.log</step>
</post_steps>
<!-- /QML -->
<environments>
<scratchbox>false</scratchbox>
<hardware>true</hardware>
</environments>
<get>
<file>/tmp/perf_grid_qml_with_launcher.txt</file>
<file>/tmp/grid_fala_qml_wl.log</file>
</get>
</set>
</suite>
</testdefinition>

@ -0,0 +1,7 @@
if ($ENV{HARMATTAN})
install(FILES tests.xml DESTINATION /usr/share/applauncherd-reference-perf-tests/)
endif ($ENV{HARMATTAN})
if ($ENV{MEEGO})
# Do nothing
endif ($ENV{MEEGO})

@ -14,23 +14,13 @@
<step expected_result="0">source /tmp/session_bus_address.user; DISPLAY=:0 /usr/share/applauncherd-testscripts/test-perf.rb name test_performance -- -c /usr/bin/fala_wol -b "fala_wol" -f "/tmp/fala_wol.log" &gt; /tmp/perf_commandline_without_launcher.txt</step>
</case>
<case name="Perf-Test-Command-launcher" type="Performance" description="Measure startup time of the application using launcher" timeout="500" level="System" insignificant="true">
<step expected_result="0">source /tmp/session_bus_address.user; DISPLAY=:0 /usr/share/applauncherd-testscripts/test-perf.rb name test_performance -- -c /usr/bin/fala_wl -b "fala_wl" -s 600 -t 50 -w 10 -f "/tmp/fala_wl.log" &gt; /tmp/perf_commandline_with_launcher.txt</step>
</case>
<case name="Perf-Test-Command-QML-plain" type="Performance" description="Measure startup time of the qml application without launcher" timeout="500" level="System" insignificant="true">
<step expected_result="0">source /tmp/session_bus_address.user; DISPLAY=:0 /usr/share/applauncherd-testscripts/test-perf.rb name test_performance -- -c /usr/bin/fala_qml_wol -b fala_qml_wol -f "/tmp/fala_qml_wol.log" &gt; /tmp/perf_commandline_qml_without_launcher.txt</step>
</case>
<case name="Perf-Test-Command-QML-launcher" type="Performance" description="Measure startup time of the QML application using launcher" timeout="500" level="System" insignificant="true">
<step expected_result="0">source /tmp/session_bus_address.user; DISPLAY=:0 /usr/share/applauncherd-testscripts/test-perf.rb name test_performance -- -c /usr/bin/fala_qml_wl -b fala_qml_wl -s 600 -f "/tmp/fala_qml_wl.log" &gt; /tmp/perf_commandline_qml_with_launcher.txt</step>
</case>
<post_steps>
<step>cp /tmp/fala_wol.log /tmp/cmdline_fala_wol.log</step>
<step>cp /tmp/fala_wl.log /tmp/cmdline_fala_wl.log</step>
<step>cp /tmp/fala_qml_wl.log /tmp/cmdline_fala_qml_wl.log</step>
<step>cp /tmp/fala_qml_wol.log /tmp/cmdline_fala_qml_wol.log</step>
</post_steps>
@ -40,13 +30,9 @@
</environments>
<get>
<file>/tmp/perf_commandline_with_launcher.txt</file>
<file>/tmp/perf_commandline_without_launcher.txt</file>
<file>/tmp/perf_commandline_qml_with_launcher.txt</file>
<file>/tmp/perf_commandline_qml_without_launcher.txt</file>
<file>/tmp/cmdline_fala_wol.log</file>
<file>/tmp/cmdline_fala_wl.log</file>
<file>/tmp/cmdline_fala_qml_wl.log</file>
<file>/tmp/cmdline_fala_qml_wol.log</file>
</get>
@ -61,26 +47,12 @@
<step expected_result="0">source /tmp/session_bus_address.user; DISPLAY=:0 /usr/share/applauncherd-testscripts/test-perf.rb name test_performance -- -a fala_wol -b "fala_wol" -f "/tmp/fala_wol.log" &gt; /tmp/perf_grid_without_launcher.txt</step>
</case>
<case name="Perf-Test-Grid-launcher" type="Performance" description="Measure startup time of the application using launcher" timeout="840" level="System" insignificant="true">
<step expected_result="0">source /tmp/session_bus_address.user; DISPLAY=:0 /usr/share/applauncherd-testscripts/test-perf.rb name test_performance -- -a fala_wl -b "fala_wl" -s 750 -t 50 -w 10 -f "/tmp/fala_wl.log" &gt; /tmp/perf_grid_with_launcher.txt</step>
</case>
<!-- QML -->
<case name="Perf-Test-Grid-QML-plain" type="Performance" description="Measure startup time of the qml application without launcher" timeout="840" level="System" insignificant="true">
<step expected_result="0">source /tmp/session_bus_address.user; DISPLAY=:0 /usr/share/applauncherd-testscripts/test-perf.rb name test_performance -- -a fala_qml_wol -b fala_qml_wol -f "/tmp/fala_qml_wol.log" &gt; /tmp/perf_grid_qml_without_launcher.txt</step>
</case>
<case name="Perf-Test-Grid-QML-launcher" type="Performance" description="Measure startup time of the QML application using launcher" timeout="840" level="System" insignificant="true">
<step expected_result="0">source /tmp/session_bus_address.user; DISPLAY=:0 /usr/share/applauncherd-testscripts/test-perf.rb name test_performance -- -a fala_qml_wl -b fala_qml_wl -s 750 -f "/tmp/fala_qml_wl.log" &gt; /tmp/perf_grid_qml_with_launcher.txt</step>
</case>
<post_steps>
<step>cp /tmp/fala_wol.log /tmp/grid_fala_wol.log</step>
<step>cp /tmp/fala_wl.log /tmp/grid_fala_wl.log</step>
<step>cp /tmp/fala_qml_wl.log /tmp/grid_fala_qml_wl.log</step>
<step>cp /tmp/fala_qml_wol.log /tmp/grid_fala_qml_wol.log</step>
</post_steps>
@ -92,13 +64,9 @@
</environments>
<get>
<file>/tmp/perf_grid_with_launcher.txt</file>
<file>/tmp/perf_grid_without_launcher.txt</file>
<file>/tmp/perf_grid_qml_with_launcher.txt</file>
<file>/tmp/perf_grid_qml_without_launcher.txt</file>
<file>/tmp/grid_fala_wol.log</file>
<file>/tmp/grid_fala_wl.log</file>
<file>/tmp/grid_fala_qml_wl.log</file>
<file>/tmp/grid_fala_qml_wol.log</file>
</get>

@ -3,6 +3,6 @@ if ($ENV{MEEGO})
endif ($ENV{MEEGO})
if ($ENV{HARMATTAN})
install(FILES tests.xml DESTINATION /usr/share/applauncherd-bug-tests)
install(FILES tests.xml DESTINATION /usr/share/applauncherd-red-tests)
endif ($ENV{HARMATTAN})
Loading…
Cancel
Save