Option --only-from-xml for dpl test framework
authorTomasz Iwanek <t.iwanek@samsung.com>
Mon, 5 Aug 2013 08:50:45 +0000 (10:50 +0200)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Tue, 13 Aug 2013 15:42:10 +0000 (15:42 +0000)
commit490411149e10904f2df6047df9ddbeb3a505b96f
tree5af5fa2c76eff4da7d981744d4bf50fb783bfd3f
parentdee22d25854e8b04c454f57f9ec5a430577abb61
Option --only-from-xml for dpl test framework

[Issue#]       LINUXWRT-743
[Feature]      Reading testcase to be launched from TCT xml file
[Cause]        Need for automatic launching only TCT tests.
[Solution]     Additional option for test binary.
Additonal changes:
 - printing number of testcases at startup
 - listing option will take into account --regexp and --only-from-xml
[Verification] Build and run tests from change. Try this change with wrt-extra tests with commit "W3C testcases names adjust for TCT".
Install TCT on target:
 - tct-widget01-w3c
 - tct-widget02-w3c
 - tct-wgtapi01-w3c
 - tct-wgtapi02-w3c
 - tct-widgetpolicy-w3c
 - tct-widgetdigsig-w3c

All commands below should print requested list of tescases from xml file
and do not complain about wrong XML file (note that list option prints now only test
to run (after filtering them)):
 wrt-extra-tests-plugins-w3c --list --only-from-xml=/usr/share/tct-wgtapi02-w3c-tests/tests.xml
 wrt-extra-tests-plugins-w3c --list --only-from-xml=/usr/share/tct-wgtapi01-w3c-tests/tests.xml
 wrt-extra-tests-w3c --list --only-from-xml=/usr/share/tct-widget01-w3c-tests/tests.xml
 wrt-extra-tests-w3c --list --only-from-xml=/usr/share/tct-widget02-w3c-tests/tests.xml
 wrt-extra-tests-w3c-widget-policy --list --only-from-xml=/usr/share/tct-widgetpolicy-w3c-tests/tests.xml
 wrt-extra-tests-w3c-digsig --list --only-from-xml=/usr/share/tct-widgetdigsig-w3c-tests/tests.xml #no testcases anyway

Change-Id: I1b62a5d17dc351c1f763fb1d9a877e1300bc6a9c
build/test/CMakeLists.txt
build/test/dpl-test-efl.pc.in
modules/test/include/dpl/test/test_runner.h
modules/test/src/test_runner.cpp