1 #
2 # Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # This code is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License version 2 only, as
7 # published by the Free Software Foundation.
8 #
9 # This code is distributed in the hope that it will be useful, but WITHOUT
10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 # version 2 for more details (a copy is included in the LICENSE file that
13 # accompanied this code).
14 #
15 # You should have received a copy of the GNU General Public License version
16 # 2 along with this work; if not, write to the Free Software Foundation,
17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 #
19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 # or visit www.oracle.com if you need additional information or have any
21 # questions.
22 #
24 # @key headful
25 # @bug 8055160 8216008
26 # @summary Unit test for javax.accessibility.AccessibilitySPI
27 #
28 # @build Load FooProvider BarProvider UnusedProvider
29 # @run shell basic.sh
30
31 # Command-line usage: sh basic.sh /path/to/build
32
33 if [ -z "$TESTJAVA" ]; then
34 if [ $# -lt 1 ]; then exit 1; fi
35 TESTJAVA="$1"
36 TESTSRC=`pwd`
37 TESTCLASSES="`pwd`"
38 fi
39
40 JAVA="$TESTJAVA/bin/java"
41
42 OS=`uname -s`
43 case "$OS" in
44 SunOS | Darwin | AIX )
45 FS='/'
46 SEP=':' ;;
47 Linux )
48 FS='/'
49 SEP=':' ;;
50 * )
51 FS='\\'
52 SEP='\;' ;;
53 esac
54
55 TESTD=x.test
56 rm -rf $TESTD
57 mkdir -p $TESTD
58
59 mv $TESTCLASSES/FooProvider.class $TESTD
60 mv $TESTCLASSES/BarProvider.class $TESTD
61 mv $TESTCLASSES/UnusedProvider.class $TESTD
62 mkdir -p $TESTD/META-INF/services
63 echo FooProvider >$TESTD/META-INF/services/javax.accessibility.AccessibilityProvider
64 echo BarProvider >>$TESTD/META-INF/services/javax.accessibility.AccessibilityProvider
|
1 #
2 # Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved.
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # This code is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License version 2 only, as
7 # published by the Free Software Foundation.
8 #
9 # This code is distributed in the hope that it will be useful, but WITHOUT
10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 # version 2 for more details (a copy is included in the LICENSE file that
13 # accompanied this code).
14 #
15 # You should have received a copy of the GNU General Public License version
16 # 2 along with this work; if not, write to the Free Software Foundation,
17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 #
19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 # or visit www.oracle.com if you need additional information or have any
21 # questions.
22 #
24 # @key headful
25 # @bug 8055160 8216008
26 # @summary Unit test for javax.accessibility.AccessibilitySPI
27 #
28 # @build Load FooProvider BarProvider UnusedProvider
29 # @run shell basic.sh
30
31 # Command-line usage: sh basic.sh /path/to/build
32
33 if [ -z "$TESTJAVA" ]; then
34 if [ $# -lt 1 ]; then exit 1; fi
35 TESTJAVA="$1"
36 TESTSRC=`pwd`
37 TESTCLASSES="`pwd`"
38 fi
39
40 JAVA="$TESTJAVA/bin/java"
41
42 OS=`uname -s`
43 case "$OS" in
44 Darwin | AIX )
45 FS='/'
46 SEP=':' ;;
47 Linux )
48 FS='/'
49 SEP=':' ;;
50 * )
51 FS='\\'
52 SEP='\;' ;;
53 esac
54
55 TESTD=x.test
56 rm -rf $TESTD
57 mkdir -p $TESTD
58
59 mv $TESTCLASSES/FooProvider.class $TESTD
60 mv $TESTCLASSES/BarProvider.class $TESTD
61 mv $TESTCLASSES/UnusedProvider.class $TESTD
62 mkdir -p $TESTD/META-INF/services
63 echo FooProvider >$TESTD/META-INF/services/javax.accessibility.AccessibilityProvider
64 echo BarProvider >>$TESTD/META-INF/services/javax.accessibility.AccessibilityProvider
|