From 2f595291dfb016b885e0199c393f76eec83f6fc0 Mon Sep 17 00:00:00 2001 From: Tim Su Date: Fri, 27 Jan 2012 17:03:01 -0800 Subject: [PATCH] Re-write test build.xml for new ant script system. --- .gitignore | 11 +-- tests/ant.properties | 22 ++++++ tests/build.properties | 15 ---- tests/build.xml | 157 +++++++++++++++++++++------------------ tests/proguard.cfg | 8 +- tests/project.properties | 2 +- 6 files changed, 119 insertions(+), 96 deletions(-) create mode 100644 tests/ant.properties delete mode 100644 tests/build.properties diff --git a/.gitignore b/.gitignore index e148057dc..d1418838e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,17 +1,18 @@ *~ +.DS_Store .metadata *.class org.eclipse.ltk.core.refactoring.prefs gen local.properties -antbuild -astrid/src-combined -release -dev +/release +/dev lp-translations/ translations/strings.xml -.DS_Store +astrid/coverage.em +astrid/src-combined +antbuild greendroid/GDCatalog/.project api/bin diff --git a/tests/ant.properties b/tests/ant.properties new file mode 100644 index 000000000..7b5216163 --- /dev/null +++ b/tests/ant.properties @@ -0,0 +1,22 @@ +# This file is used to override default values used by the Ant build system. +# +# This file must be checked in Version Control Systems, as it is +# integral to the build system of your project. + +# This file is only used by the Ant script. + +# You can use this to override default values such as +# 'source.dir' for the location of your java source folder and +# 'out.dir' for the location of your output folder. + +# You can also use it define how the release builds are signed by declaring +# the following properties: +# 'key.store' for the location of your keystore and +# 'key.alias' for the name of the key to use. +# The password will be asked during the build when you use the 'release' target. + +test.runner=com.zutubi.android.junitreport.JUnitReportTestRunner +tested.project.dir=../astrid +reports.dir=reports +build.sysclasspath=last +out.dir=bin diff --git a/tests/build.properties b/tests/build.properties deleted file mode 100644 index 50d6b077f..000000000 --- a/tests/build.properties +++ /dev/null @@ -1,15 +0,0 @@ -# astrid-tests build properties - -tested.project.dir=../astrid - -# output files and apk -out.dir=bin - -# test runner: junit report test runner -test.runner=com.zutubi.android.junitreport.JUnitReportTestRunner - -# reports output directory -reports.dir=reports - -# suppress ant warnings -build.sysclasspath=last diff --git a/tests/build.xml b/tests/build.xml index 46515058b..becc8c808 100644 --- a/tests/build.xml +++ b/tests/build.xml @@ -1,97 +1,88 @@ - + + It contains the path to the SDK. It should *NOT* be checked into + Version Control Systems. --> - - - - - - - - - - - - - - - - - - - - - - Astrid Unit Test Build. Available targets: - help: Displays this help. - run-tests: Run unit tests. - coverage: Run tests and dump emma coverage reports. + --> + + + + + + + + + + + + + - + + + + + + + + + + - - - - - - - + + + + + - Downloading coverage file into project directory... - - - - + + + + - Extracting coverage report... @@ -104,12 +95,11 @@ - + Cleaning up temporary files... - Saving the report file in ${basedir}/coverage/coverage.html @@ -126,4 +116,25 @@ + + + + diff --git a/tests/proguard.cfg b/tests/proguard.cfg index 12dd0392c..b1cdf17b5 100644 --- a/tests/proguard.cfg +++ b/tests/proguard.cfg @@ -18,14 +18,18 @@ native ; } --keepclasseswithmembernames class * { +-keepclasseswithmembers class * { public (android.content.Context, android.util.AttributeSet); } --keepclasseswithmembernames class * { +-keepclasseswithmembers class * { public (android.content.Context, android.util.AttributeSet, int); } +-keepclassmembers class * extends android.app.Activity { + public void *(android.view.View); +} + -keepclassmembers enum * { public static **[] values(); public static ** valueOf(java.lang.String); diff --git a/tests/project.properties b/tests/project.properties index c1fd41ab1..8f51418b2 100644 --- a/tests/project.properties +++ b/tests/project.properties @@ -10,4 +10,4 @@ # Indicates whether an apk should be generated for each density. split.density=false # Project target. -target=android-8 +target=android-14