blob: 75533475483fff91ea68194afbcb86bf982eb979 [file] [log] [blame]
Elliott Hughes6bb4aac2011-05-20 14:46:49 -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 external/apache-harmony/*/src/test -name "*.java" | \
11 fgrep -v junit | \
12 fgrep -v org/w3c/domts | \
13 fgrep -v support/src/test/java | \
14 xargs grep -h '^package ' | sed 's/^package //' | sed 's/;$//' | sort | uniq | tr "\n" " ")
15
16echo "Running tests for following test packages:"
17echo $all_test_packages | tr " " "\n"
18
19# beans: works, except IndexedPropertyDescriptorTest won't load
20# concurrent: needs vogar to detect code type in the target VM
21# crypto: many of the javax.crypto tests fail due to classloader visibility issues
22# logging: many failures due to missing bundles
23# prefs: many prefs tests fail; this needs investigation
24
25$VOGAR \
26 --vm-arg -Xmx32M \
27 --classpath out/host/common/obj/JAVA_LIBRARIES/apache-harmony-tests-hostdex_intermediates/javalib.jar \
28 --results-dir /home/dalvik-prebuild/vogar-harmony-results \
29 $all_test_packages \
30 || true