blob: a1a66ae24c5fc3cc9ed2e8c6ff171a436b16a267 [file] [log] [blame]
Elliott Hughes94e96092011-05-20 14:46:09 -07001#!/bin/bash
2
3# make sure there's a vogar on the path, but prefer the user's one.
4export PATH=$PATH:~dalvik-prebuild/vogar/bin
5
6VOGAR="vogar $VOGAR_FLAGS $*"
7
8# We enumerate the test packages for vogar rather than just giving it the classes.jar
9# so hundreds of packages can be tested in parallel, rather than one big jar file serially.
10all_test_packages=$(find libcore/*/src/test -name "*.java" | \
11 fgrep -v junit | \
12 fgrep -v org/w3c/domts | \
13 xargs grep -h '^package ' | sed 's/^package //' | sed 's/;$//' | sort | uniq | tr "\n" " ")
14
15echo "Running tests for following test packages:"
16echo $all_test_packages | tr " " "\n"
17
18$VOGAR \
19 --vm-arg -Xmx32M \
20 --classpath out/target/common/obj/JAVA_LIBRARIES/core-tests_intermediates/javalib.jar \
21 --classpath out/target/common/obj/JAVA_LIBRARIES/sqlite-jdbc_intermediates/classes.jar \
22 $all_test_packages \
23 tests.api.org.w3c.dom \
24 || true