blob: a19fd155595c9953d94f6f549eb5ced561ed53d3 [file] [log] [blame]
Nicolas Geoffrayb2e7e242014-11-28 14:24:28 +00001#!/bin/bash
2#
3# Copyright (C) 2014 The Android Open Source Project
4#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16
17if [ ! -d libcore ]; then
18 echo "Script needs to be run at the root of the android tree"
19 exit 1
20fi
21
22# Jar containing all the tests.
23test_jar=out/target/common/obj/JAVA_LIBRARIES/core-tests_intermediates/javalib.jar
24
25if [ ! -f $test_jar ]; then
26 echo "Before running, you must build core-tests and vogar: make core-tests vogar vogar.jar"
27 exit 1
28fi
29
Nicolas Geoffrayc3837e42014-12-03 11:30:26 +000030# Packages that currently work correctly with the expectation files.
David Brazdil598b2202015-02-24 10:12:06 +000031working_packages=("libcore.icu"
32 "libcore.io"
33 "libcore.java.lang"
Nicolas Geoffrayc3837e42014-12-03 11:30:26 +000034 "libcore.java.math"
David Brazdil598b2202015-02-24 10:12:06 +000035 "libcore.java.text"
Nicolas Geoffray3cdf8182014-12-01 10:12:15 +000036 "libcore.java.util"
David Brazdil4cd7dfd2015-02-24 13:33:01 +000037 "libcore.javax.crypto"
David Brazdil598b2202015-02-24 10:12:06 +000038 "libcore.javax.security"
39 "libcore.javax.sql"
40 "libcore.javax.xml"
41 "libcore.net"
42 "libcore.reflect"
43 "libcore.util"
Nicolas Geoffray3cdf8182014-12-01 10:12:15 +000044 "org.apache.harmony.annotation"
David Brazdil4cd7dfd2015-02-24 13:33:01 +000045 "org.apache.harmony.crypto"
David Brazdile2f28ad2015-02-24 10:44:29 +000046 "org.apache.harmony.luni"
47 "org.apache.harmony.nio"
Nicolas Geoffray3cdf8182014-12-01 10:12:15 +000048 "org.apache.harmony.regex"
David Brazdile2f28ad2015-02-24 10:44:29 +000049 "org.apache.harmony.security"
50 "org.apache.harmony.testframework"
51 "org.apache.harmony.tests.java.io"
Nicolas Geoffray3cdf8182014-12-01 10:12:15 +000052 "org.apache.harmony.tests.java.lang"
Nicolas Geoffrayc3837e42014-12-03 11:30:26 +000053 "org.apache.harmony.tests.java.math"
Nicolas Geoffray3cdf8182014-12-01 10:12:15 +000054 "org.apache.harmony.tests.java.util"
David Brazdile2f28ad2015-02-24 10:44:29 +000055 "org.apache.harmony.tests.java.text"
56 "org.apache.harmony.tests.javax.security"
Nicolas Geoffray3cdf8182014-12-01 10:12:15 +000057 "tests.java.lang.String")
Nicolas Geoffrayb2e7e242014-11-28 14:24:28 +000058
59# Run the tests using vogar.
Nicolas Geoffray3cdf8182014-12-01 10:12:15 +000060echo "Running tests for the following test packages:"
61echo ${working_packages[@]} | tr " " "\n"
Nicolas Geoffrayc3837e42014-12-03 11:30:26 +000062vogar $@ --expectations art/tools/libcore_failures.txt --classpath $test_jar ${working_packages[@]}