Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/mobile
Path: blob/master/test/jdk/java/awt/FontClass/CreateFont/fileaccess/TestFontFile.sh
41159 views
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
#
23
24
#!/bin/sh
25
26
if [ "${TESTSRC}" = "" ]
27
then TESTSRC=.
28
fi
29
30
if [ "${TESTJAVA}" = "" ]
31
then
32
PARENT=`dirname \`which java\``
33
TESTJAVA=`dirname ${PARENT}`
34
echo "TESTJAVA not set, selecting " ${TESTJAVA}
35
echo "If this is incorrect, try setting the variable manually."
36
fi
37
38
if [ "${TESTCLASSES}" = "" ]
39
then
40
echo "TESTCLASSES not set. Test cannot execute. Failed."
41
exit 1
42
fi
43
44
BIT_FLAG=""
45
46
# set platform-dependent variables
47
OS=`uname -s`
48
case "$OS" in
49
AIX | Darwin | Linux )
50
NULL=/dev/null
51
PS=":"
52
FS="/"
53
## for linux it's HOME
54
FILE_LOCATION=$HOME
55
;;
56
Windows_* | CYGWIN* )
57
NULL=NUL
58
PS=";"
59
FS="\\"
60
;;
61
* )
62
echo "Unrecognized system!"
63
exit 1;
64
;;
65
esac
66
67
JEMMYPATH=${CPAPPEND}
68
CLASSPATH=.${PS}${TESTCLASSES}${PS}${JEMMYPATH} ; export CLASSPATH
69
70
THIS_DIR=`pwd`
71
72
${TESTJAVA}${FS}bin${FS}java ${BIT_FLAG} -version
73
74
${TESTJAVA}${FS}bin${FS}java -Djava.security.manager=allow ${BIT_FLAG} FontFile > test.out 2>&1
75
76
STATUS=$?
77
78
cat test.out
79
80
exit $STATUS
81
82