diff options
-rw-r--r-- | libcontextsubscriber/customer-tests/tests.xml | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/libcontextsubscriber/customer-tests/tests.xml b/libcontextsubscriber/customer-tests/tests.xml index 41389673..73f8f2cf 100644 --- a/libcontextsubscriber/customer-tests/tests.xml +++ b/libcontextsubscriber/customer-tests/tests.xml @@ -4,30 +4,45 @@ <suite name="libcontextsubscriber-tests"> <!-- At least one set per suite, name and description mandatory --> <set name="libcontextsubscriber suite" description="libcontextsubscriber tests"> + <!-- Possibly some pre-steps to execute before running the test cases --> + <pre_steps> + <step>export SESSION_BUS_ADDRESS_FILE=/tmp/session_bus_address.user</step> + <step>export DBUS_SESSION_BUS_ADDRESS=unix:path=/tmp/session_bus_socket</step> + </pre_steps> <!-- At least one case per set, name mandatory, description mandatory, other optional --> <case name="libsub001" description="This test verifies that the asynchronicity of the subscriber library" requirement="" timeout="5"> <!-- At least one step per test, expected_result optional - tells which return code is considered passed --> - <step expected_result="0">/usr/share/libcontextsubscriber-tests/asynchronicity/asynchronicity.py</step> + <step expected_result="0">cd /usr/share/libcontextsubscriber-tests/asynchronicity</step> + <step expected_result="0">python asynchronicity.py</step> + <step expected_result="0">cd ..</step> </case> <!-- At least one case per set, name mandatory, description mandatory, other optional --> <case name="libsub002" description="This test verifies that properties are overriden by commander" requirement="" timeout="5"> <!-- At least one step per test, expected_result optional - tells which return code is considered passed --> - <step expected_result="0">/usr/share/libcontextsubscriber-tests/commander/commander_appearing.py</step> + <step expected_result="0">cd /usr/share/libcontextsubscriber-tests/commander</step> + <step expected_result="0">python commander_appearing.py</step> + <step expected_result="0">cd ..</step> </case> <!-- At least one case per set, name mandatory, description mandatory, other optional --> <case name="libsub003" description="This test verifies that nonexistent properties are handled by commander" requirement="" timeout="5"> <!-- At least one step per test, expected_result optional - tells which return code is considered passed --> - <step expected_result="0">/usr/share/libcontextsubscriber-tests/commander/commander_nonexistent.py</step> + <step expected_result="0">cd /usr/share/libcontextsubscriber-tests/commander</step> + <step expected_result="0">python commander_nonexistent.py</step> + <step expected_result="0">cd ..</step> </case> <!-- At least one case per set, name mandatory, description mandatory, other optional --> <case name="libsub004" description="This test verifies that disabling commander restore actual properties values" requirement="" timeout="5"> <!-- At least one step per test, expected_result optional - tells which return code is considered passed --> - <step expected_result="0">/usr/share/libcontextsubscriber-tests/commander/commander_disabled.py</step> + <step expected_result="0">cd /usr/share/libcontextsubscriber-tests/commander</step> + <step expected_result="0">python commander_disabled.py</step> + <step expected_result="0">cd ..</step> </case> <!-- At least one case per set, name mandatory, description mandatory, other optional --> <case name="libsub005" description="This test verifies that subscription to properties" requirement="" timeout="5"> <!-- At least one step per test, expected_result optional - tells which return code is considered passed --> - <step expected_result="0">/usr/share/libcontextsubscriber-tests/subscription/subscription.py</step> + <step expected_result="0">cd /usr/share/libcontextsubscriber-tests/subscription</step> + <step expected_result="0">python subscription.py</step> + <step expected_result="0">cd ..</step> </case> <!-- Environments optional - tells where the tests are run --> <environments> |