diff options
author | Andrew McDermott <andrew.mcdermott@linaro.org> | 2013-09-02 10:09:44 +0100 |
---|---|---|
committer | Andrew McDermott <andrew.mcdermott@linaro.org> | 2013-09-02 10:14:09 +0100 |
commit | 94456ab90b4cf202e0a4474e92001c0627ff4216 (patch) | |
tree | ef06a0fa9f4cc33939d41e593b2a51d6576738d4 /openembedded/scripts | |
parent | 4dcc1956e14805dd9ef8706469595bffd98d4c9f (diff) |
jtreg: add hotspot tests
Signed-off-by: Andrew McDermott <andrew.mcdermott@linaro.org>
Diffstat (limited to 'openembedded/scripts')
-rwxr-xr-x | openembedded/scripts/jtreg-test (renamed from openembedded/scripts/jtreg-jdk-test) | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/openembedded/scripts/jtreg-jdk-test b/openembedded/scripts/jtreg-test index 84050be..b3b601f 100755 --- a/openembedded/scripts/jtreg-jdk-test +++ b/openembedded/scripts/jtreg-test @@ -21,8 +21,8 @@ # Author: Andrew McDermott <andrew.mcdermott@linaro.org> # -if [ $# -lt 1 ]; then - echo "usage: $0: <jdk-test>" >&2 +if [ $# -lt 2 ]; then + echo "usage: $0: <test-dir> <test>" >&2 exit 1 fi @@ -36,32 +36,35 @@ if [ -z "$JT_HOME" ]; then exit 1 fi -if [ -z "$JDK_TEST_DIR" ]; then - echo "error: JDK_TEST_DIR not set!" >&2 - exit 1 -fi - if [ -z "$JTREG" ]; then JTREG=$JT_HOME/linux/bin/jtreg-lava fi -jdk_test=$1; shift +set -x -t=/tmp/jtreg/$jdk_test.$$ +test_dir=$1 +test_to_run=$2 + +t=/tmp/jtreg/$test_to_run.$$ rm -rf $t mkdir -p $t -d=$t/testoutput/$jdk_test +d=$t/testoutput/$test_to_run pl=$d/passlist.txt fl=$d/faillist.txt +archive_bundle=$d/ARCHIVE_BUNDLE.zip -lava-test-case $jdk_test \ +lava-test-case $test_to_run \ --shell \ - make -C $JDK_TEST_DIR PRODUCT_HOME=$PRODUCT_HOME JTREG=$JTREG ALT_OUTPUTDIR=$t $jdk_test + make -C $test_dir PRODUCT_HOME=$PRODUCT_HOME JTREG=$JTREG ALT_OUTPUTDIR=$t $test_to_run exit_code=$? -[ -e $pl ] && lava-test-case-attach $jdk_test $pl -[ -e $fl ] && lava-test-case-attach $jdk_test $fl +[ -e $pl ] && lava-test-case-attach $test_to_run $pl +[ -e $fl ] && lava-test-case-attach $test_to_run $fl + +if [ $exit_code -ne 0 ]; then + [ -e $archive_bundle ] && lava-test-case-attach $test_to_run $archive_bundle +fi rm -rf $t |