Rework the way tests are installed and run.
authorXavier Ducrohet <xav@android.com>
Fri, 21 Sep 2012 20:28:40 +0000 (13:28 -0700)
committerXavier Ducrohet <xav@android.com>
Fri, 21 Sep 2012 20:28:40 +0000 (13:28 -0700)
commit4518ee9ba3a30450b7d92e0a040706d8de7c5bd4
tree75b511b4015ff4429b3ffeb0bc8ef15c70ef6364
parent0bfbe9a91ef886dbfa653436ca4f0194310feb44
Rework the way tests are installed and run.

It used to do:
    Install all, run all, uninstall all.
It now does:
   foreach variant: install, run, uninstall.

This allows to properly test different flavors that share the same
package name. Before installAll would override some packages with new
ones and only the last installed flavor would be installed.

Note that right now this relies on dependsOn to do the install, run
and uninstall in the proper order which is not reliable so this
needs to be fixed.

Also, we'll want to change this later to support deploying to
multiple emulators.

Change-Id: I0931b3a9b7a0cbd37c2e763e4abf768777342b37
gradle/src/main/groovy/com/android/build/gradle/AndroidBasePlugin.groovy
gradle/src/main/groovy/com/android/build/gradle/AndroidPlugin.groovy
gradle/src/main/groovy/com/android/build/gradle/internal/ApplicationVariant.groovy
gradle/src/main/groovy/com/android/build/gradle/internal/ProductionAppVariant.groovy