Fix custom_rules for liblinphone tester

This commit is contained in:
Erwan Croze 2016-11-02 17:59:56 +01:00
parent 3cd872c65a
commit f47ecbf827

View file

@ -67,13 +67,22 @@
<delete file="${output.file}"/>
</target>
<target name="check-for-crash" if="has.crashed">
<exec executable="adb" outputproperty="arch">
<arg value="shell"/>
<arg value="getprop" />
<arg value="ro.product.cpu.abi"/>
</exec>
<exec executable="bash" outputproperty="abi">
<arg value="-c"/>
<arg value="echo ${arch} | tr -d '\r'"/>
</exec>
<exec executable="bash" >
<arg value="-c" />
<arg value="tail -n 500 ${archive.name}" />
</exec>
<exec executable="bash" >
<arg value="-c" />
<arg value="cat ${archive.name} |ndk-stack -sym ../libs-debug/`adb shell getprop ro.product.cpu.abi | tr -d '\r'`" />
<arg value="cat ${archive.name} |ndk-stack -sym ../libs-debug/${abi}" />
</exec>
<fail message="Tests crashed" status="125"/>
</target>