linphone-android/tests/custom_rules.xml
2014-01-29 12:33:45 +01:00

26 lines
766 B
XML

<?xml version="1.0" encoding="UTF-8"?>
<project name="custom_rules">
<target name="test">
<exec executable="adb" failonerror="true" outputproperty="tests.output">
<arg value="shell" />
<arg value="am" />
<arg value="instrument" />
<arg value="-w" />
<arg value="-e" />
<arg value="size" />
<arg value="small" />
<arg value="org.linphone.test/android.test.InstrumentationTestRunner" />
</exec>
<echo message="${tests.output}"/>
<fail message="Tests failed">
<condition>
<contains string="${tests.output}" substring="FAILURES" />
</condition>
</fail>
<fail message="Tests crashed">
<condition>
<contains string="${tests.output}" substring="INSTRUMENTATION_CODE:" />
</condition>
</fail>
</target>
</project>