Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Allow the user to specify the packages to test.

Change-Id: Ifa550bccf0cedfa3fa21805f9e862aa9f6f4447b
  • Loading branch information...
commit 555c4728b8fdfd96590c218491f15b88712704dc 1 parent 4596cf1
Elliott Hughes authored

Showing 1 changed file with 8 additions and 5 deletions. Show diff stats Hide diff stats

  1. +8 5 run-libcore-tests
13 run-libcore-tests
@@ -3,22 +3,25 @@
3 3 # make sure there's a vogar on the path, but prefer the user's one.
4 4 export PATH=$PATH:~dalvik-prebuild/vogar/bin
5 5
6   -VOGAR="vogar $VOGAR_FLAGS $*"
  6 +VOGAR="vogar $VOGAR_FLAGS"
7 7
8 8 # We enumerate the test packages for vogar rather than just giving it the classes.jar
9 9 # so hundreds of packages can be tested in parallel, rather than one big jar file serially.
10   -all_test_packages=$(find libcore/*/src/test -name "*.java" | \
  10 +all_test_packages=$(find `dirname $0`/*/src/test -name "*.java" | \
11 11 fgrep -v junit | \
12 12 fgrep -v org/w3c/domts | \
13 13 xargs grep -h '^package ' | sed 's/^package //' | sed 's/;$//' | sort | uniq | tr "\n" " ")
  14 +all_test_packages="$all_test_packages tests.api.org.w3c.dom"
  15 +
  16 +# Use the list of packages supplied on the command-line, if any.
  17 +test_packages=${*:-$all_test_packages}
14 18
15 19 echo "Running tests for following test packages:"
16   -echo $all_test_packages | tr " " "\n"
  20 +echo $test_packages | tr " " "\n"
17 21
18 22 $VOGAR \
19 23 --vm-arg -Xmx32M \
20 24 --classpath out/target/common/obj/JAVA_LIBRARIES/core-tests_intermediates/javalib.jar \
21 25 --classpath out/target/common/obj/JAVA_LIBRARIES/sqlite-jdbc_intermediates/classes.jar \
22   - $all_test_packages \
23   - tests.api.org.w3c.dom \
  26 + $test_packages \
24 27 || true

0 comments on commit 555c472

Please sign in to comment.
Something went wrong with that request. Please try again.