Added custom rule for ant test to be able to notify buildbot tests have failed
This commit is contained in:
parent
620456d95f
commit
543664e002
1 changed files with 23 additions and 0 deletions
23
tests/custom_rules.xml
Normal file
23
tests/custom_rules.xml
Normal file
|
@ -0,0 +1,23 @@
|
|||
<?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="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>
|
Loading…
Reference in a new issue