#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation.
#
# This code is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# version 2 for more details (a copy is included in the LICENSE file that
# accompanied this code).
#
# You should have received a copy of the GNU General Public License version
# 2 along with this work; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
# or visit www.oracle.com if you need additional information or have any
# questions.
#
# @test
# @bug 4429040 4591027 4814743
# @summary Unit test for charset providers
#
# @build Test FooCharset FooProvider
# @run shell basic.sh
# @run shell basic.sh ja_JP.eucJP
# @run shell basic.sh tr_TR
#
if [ -z "$TESTJAVA" ]; then
TESTJAVA=$1; shift
TESTSRC=`pwd`
TESTCLASSES=`pwd`
fi
CSS='US-ASCII 8859_1 iso-ir-6 UTF-16 windows-1252 !BAR cp1252'
if [ \! -d $EXTD ]; then
# Initialize
echo Initializing...
echo FooProvider \
fi
if [ $# -gt 0 ]; then
# Use locale specified on command line, if it's supported
L="$1"
shift
s=`uname -s`
echo "$L: Locales not supported on this system, skipping..."
exit 0
fi
echo "$L: Locale not supported, skipping..."
exit 0
fi
fi
cd $TMP
esac
failures=0
echo '';
av=''
av="$av -cp $TESTD -Djava.ext.dirs=$EXTD";
else
fi
# Minimal policy in this case is more or less carbon copy of jre default
# security policy and doesn't give explicit runtime permission
# for user provided runtime loadable charsets
av="$av -Djava.security.manager -Djava.security.policy==$TESTSRC/default-pol";;
esac
continue;
else
fi
done
done
echo ''
then echo "$failures cases failed";
else echo "All cases passed"; fi
exit $failures