mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
35 lines
1,009 B
XML
35 lines
1,009 B
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<project name="custom_rules">
|
|
<target name="run">
|
|
<exec executable="adb">
|
|
<arg value="shell" />
|
|
<arg value="am" />
|
|
<arg value="start" />
|
|
<arg value="-a" />
|
|
<arg value="android.intent.action.MAIN" />
|
|
<arg value="-n" />
|
|
<arg value="org.linphone.tester/org.linphone.tester.MainActivity" />
|
|
</exec>
|
|
</target>
|
|
<target name="test">
|
|
<exec executable="adb" failonerror="true" outputproperty="tests.output">
|
|
<arg value="shell" />
|
|
<arg value="am" />
|
|
<arg value="instrument" />
|
|
<arg value="-r" />
|
|
<arg value="-w" />
|
|
<arg value="org.linphone.tester/org.linphone.tester.TestRunner" />
|
|
</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="Process crashed" />
|
|
</condition>
|
|
</fail>
|
|
</target>
|
|
</project>
|