2665N/A#!/bin/sh
2665N/A#
2665N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
2665N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
2665N/A#
2665N/A# This code is free software; you can redistribute it and/or modify it
2665N/A# under the terms of the GNU General Public License version 2 only, as
2665N/A# published by the Free Software Foundation.
2665N/A#
2665N/A# This code is distributed in the hope that it will be useful, but WITHOUT
2665N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
2665N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
2665N/A# version 2 for more details (a copy is included in the LICENSE file that
2665N/A# accompanied this code).
2665N/A#
2665N/A# You should have received a copy of the GNU General Public License version
2665N/A# 2 along with this work; if not, write to the Free Software Foundation,
2665N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
2665N/A#
2665N/A# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2665N/A# or visit www.oracle.com if you need additional information or have any
2665N/A# questions.
2665N/A#
2665N/A#
4503N/A## some tests require path to find test source dir
2665N/Aif [ "${TESTSRC}" = "" ]
2665N/Athen
4503N/A TESTSRC=${PWD}
4503N/A echo "TESTSRC not set. Using "${TESTSRC}" as default"
2665N/Afi
2665N/Aecho "TESTSRC=${TESTSRC}"
4503N/A## Adding common setup Variables for running shell tests.
4503N/A. ${TESTSRC}/../../test_env.sh
2665N/A
2665N/Aset -x
2665N/A
2665N/Acp ${TESTSRC}/Stemmer.java .
2665N/Acp ${TESTSRC}/words .
2665N/A
4503N/A${COMPILEJAVA}/bin/javac ${TESTJAVACOPTS} -d . Stemmer.java
2665N/A
2665N/A${TESTJAVA}/bin/java ${TESTVMOPTS} -Xbatch Stemmer words > test.out 2>&1
2665N/A
2665N/Aexit $?
2665N/A