Improve test scripts.

This commit is contained in:
Brian Pellin committed 2009-03-10 17:44:45 -05:00
1 parent 0ce2b8546d
commit 3715febcd5
4 files changed
+19 -9

No files matched your search

+10 -3
View File
@@ -297,7 +297,7 @@
</exec>
</target>
<target name="tests">
<target name="tests" depends="reinstall">
<echo>Building and installing tests..</echo>
<exec executable="ant" failonerror="true">
<arg value="-f" />
@@ -305,8 +305,15 @@
<arg value="reinstall"/>
</exec>
<mkdir dir="${log-dir}" />
<exec execute="${adb}">
<arg value="shell am instrument -w -e class com.android.keepass.tests.AllTests com.android.keepass.tests/android.test.InstrumentationTestRunner" />
<exec executable="${adb}">
<arg value="shell" />
<arg value="am" />
<arg value="instrument" />
<arg value="-w" />
<arg value="-e" />
<arg value="class" />
<arg value="com.android.keepass.tests.AllTests" />
<arg value="com.android.keepass.tests/android.test.InstrumentationTestRunner" />
</exec>
</target>
+5 -1
View File
@@ -1,8 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry combineaccessrules="false" kind="src" path="/KeePassDroid"/>
<classpathentry kind="lib" path="/usr/share/java/junit4.jar"/>
<classpathentry kind="lib" path="/home/bpellin/usr/lib/android-sdk-linux_x86-1.1_r1/android.jar" sourcepath="/home/bpellin/scratch/android-src.jar">
<attributes>
<attribute name="javadoc_location" value="file:/home/bpellin/usr/lib/android-sdk-linux_x86-1.1_r1/docs/reference/"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="bin"/>
</classpath>
-1
View File
@@ -1 +0,0 @@
[^.]
+4 -4
View File
@@ -159,8 +159,8 @@
destdir="${outdir-classes}"
bootclasspath="${android-jar}">
<classpath>
<fileset dir="${junit-path}" includes="junit4.jar"/>
<fileset dir="${external-libs}" includes="*.jar"/>
<fileset file="${junit-path}"/>
</classpath>
</javac>
</target>
@@ -173,7 +173,7 @@
<arg value="--output=${intermediate-dex-ospath}" />
<arg path="${outdir-classes-ospath}" />
<fileset dir="${external-libs}" includes="*.jar"/>
<fileset dir="${junit-path}" includes="junit4.jar"/>
<fileset file="${junit-path}"/>
</apply>
</target>
@@ -240,7 +240,7 @@
<arg value="-rj" />
<arg value="${external-libs-ospath}" />
<arg value="-rj" />
<arg value="${junit-ospath}" />
<arg value="${junit-path}" />
<arg value="-nf" />
<arg value="${native-libs-ospath}" />
</exec>
@@ -262,7 +262,7 @@
<arg value="-rj" />
<arg value="${external-libs-ospath}" />
<arg value="-rj" />
<arg value="${junit-ospath}" />
<arg value="${junit-path}" />
<arg value="-nf" />
<arg value="${native-libs-ospath}" />
</exec>