hotspot/test/compiler/6894807/Test6894807.sh
author iignatyev
Sun, 03 Aug 2014 12:04:17 +0400
changeset 25924 4c3dd8541530
parent 13523 6a7f3e56a242
permissions -rw-r--r--
8051896: jtreg tests don't use $TESTJAVAOPTS Reviewed-by: kvn, ctornqvi
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6257
43c2f12b4e90 6977952: Test: Sync missing tests from hs16.3 to hs17.x
asaha
parents:
diff changeset
     1
#!/bin/sh
25924
4c3dd8541530 8051896: jtreg tests don't use $TESTJAVAOPTS
iignatyev
parents: 13523
diff changeset
     2
#
4c3dd8541530 8051896: jtreg tests don't use $TESTJAVAOPTS
iignatyev
parents: 13523
diff changeset
     3
#  Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved.
4c3dd8541530 8051896: jtreg tests don't use $TESTJAVAOPTS
iignatyev
parents: 13523
diff changeset
     4
#  DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4c3dd8541530 8051896: jtreg tests don't use $TESTJAVAOPTS
iignatyev
parents: 13523
diff changeset
     5
# 
4c3dd8541530 8051896: jtreg tests don't use $TESTJAVAOPTS
iignatyev
parents: 13523
diff changeset
     6
#  This code is free software; you can redistribute it and/or modify it
4c3dd8541530 8051896: jtreg tests don't use $TESTJAVAOPTS
iignatyev
parents: 13523
diff changeset
     7
#  under the terms of the GNU General Public License version 2 only, as
4c3dd8541530 8051896: jtreg tests don't use $TESTJAVAOPTS
iignatyev
parents: 13523
diff changeset
     8
#  published by the Free Software Foundation.
4c3dd8541530 8051896: jtreg tests don't use $TESTJAVAOPTS
iignatyev
parents: 13523
diff changeset
     9
# 
4c3dd8541530 8051896: jtreg tests don't use $TESTJAVAOPTS
iignatyev
parents: 13523
diff changeset
    10
#  This code is distributed in the hope that it will be useful, but WITHOUT
4c3dd8541530 8051896: jtreg tests don't use $TESTJAVAOPTS
iignatyev
parents: 13523
diff changeset
    11
#  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4c3dd8541530 8051896: jtreg tests don't use $TESTJAVAOPTS
iignatyev
parents: 13523
diff changeset
    12
#  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4c3dd8541530 8051896: jtreg tests don't use $TESTJAVAOPTS
iignatyev
parents: 13523
diff changeset
    13
#  version 2 for more details (a copy is included in the LICENSE file that
4c3dd8541530 8051896: jtreg tests don't use $TESTJAVAOPTS
iignatyev
parents: 13523
diff changeset
    14
#  accompanied this code).
4c3dd8541530 8051896: jtreg tests don't use $TESTJAVAOPTS
iignatyev
parents: 13523
diff changeset
    15
# 
4c3dd8541530 8051896: jtreg tests don't use $TESTJAVAOPTS
iignatyev
parents: 13523
diff changeset
    16
#  You should have received a copy of the GNU General Public License version
4c3dd8541530 8051896: jtreg tests don't use $TESTJAVAOPTS
iignatyev
parents: 13523
diff changeset
    17
#  2 along with this work; if not, write to the Free Software Foundation,
4c3dd8541530 8051896: jtreg tests don't use $TESTJAVAOPTS
iignatyev
parents: 13523
diff changeset
    18
#  Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4c3dd8541530 8051896: jtreg tests don't use $TESTJAVAOPTS
iignatyev
parents: 13523
diff changeset
    19
# 
4c3dd8541530 8051896: jtreg tests don't use $TESTJAVAOPTS
iignatyev
parents: 13523
diff changeset
    20
#  Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4c3dd8541530 8051896: jtreg tests don't use $TESTJAVAOPTS
iignatyev
parents: 13523
diff changeset
    21
#  or visit www.oracle.com if you need additional information or have any
4c3dd8541530 8051896: jtreg tests don't use $TESTJAVAOPTS
iignatyev
parents: 13523
diff changeset
    22
#  questions.
4c3dd8541530 8051896: jtreg tests don't use $TESTJAVAOPTS
iignatyev
parents: 13523
diff changeset
    23
# 
6257
43c2f12b4e90 6977952: Test: Sync missing tests from hs16.3 to hs17.x
asaha
parents:
diff changeset
    24
43c2f12b4e90 6977952: Test: Sync missing tests from hs16.3 to hs17.x
asaha
parents:
diff changeset
    25
if [ "${TESTSRC}" = "" ]
25924
4c3dd8541530 8051896: jtreg tests don't use $TESTJAVAOPTS
iignatyev
parents: 13523
diff changeset
    26
then
4c3dd8541530 8051896: jtreg tests don't use $TESTJAVAOPTS
iignatyev
parents: 13523
diff changeset
    27
  TESTSRC=${PWD}
4c3dd8541530 8051896: jtreg tests don't use $TESTJAVAOPTS
iignatyev
parents: 13523
diff changeset
    28
  echo "TESTSRC not set.  Using "${TESTSRC}" as default"
6257
43c2f12b4e90 6977952: Test: Sync missing tests from hs16.3 to hs17.x
asaha
parents:
diff changeset
    29
fi
25924
4c3dd8541530 8051896: jtreg tests don't use $TESTJAVAOPTS
iignatyev
parents: 13523
diff changeset
    30
echo "TESTSRC=${TESTSRC}"
6257
43c2f12b4e90 6977952: Test: Sync missing tests from hs16.3 to hs17.x
asaha
parents:
diff changeset
    31
25924
4c3dd8541530 8051896: jtreg tests don't use $TESTJAVAOPTS
iignatyev
parents: 13523
diff changeset
    32
## Adding common setup Variables for running shell tests.
4c3dd8541530 8051896: jtreg tests don't use $TESTJAVAOPTS
iignatyev
parents: 13523
diff changeset
    33
. ${TESTSRC}/../../test_env.sh
6257
43c2f12b4e90 6977952: Test: Sync missing tests from hs16.3 to hs17.x
asaha
parents:
diff changeset
    34
25924
4c3dd8541530 8051896: jtreg tests don't use $TESTJAVAOPTS
iignatyev
parents: 13523
diff changeset
    35
${TESTJAVA}${FS}bin${FS}java ${TESTOPTS} IsInstanceTest > test.out 2>&1
6257
43c2f12b4e90 6977952: Test: Sync missing tests from hs16.3 to hs17.x
asaha
parents:
diff changeset
    36
43c2f12b4e90 6977952: Test: Sync missing tests from hs16.3 to hs17.x
asaha
parents:
diff changeset
    37
cat test.out
43c2f12b4e90 6977952: Test: Sync missing tests from hs16.3 to hs17.x
asaha
parents:
diff changeset
    38
43c2f12b4e90 6977952: Test: Sync missing tests from hs16.3 to hs17.x
asaha
parents:
diff changeset
    39
grep "Failed at index" test.out
43c2f12b4e90 6977952: Test: Sync missing tests from hs16.3 to hs17.x
asaha
parents:
diff changeset
    40
43c2f12b4e90 6977952: Test: Sync missing tests from hs16.3 to hs17.x
asaha
parents:
diff changeset
    41
if [ $? = 0 ]
43c2f12b4e90 6977952: Test: Sync missing tests from hs16.3 to hs17.x
asaha
parents:
diff changeset
    42
then
43c2f12b4e90 6977952: Test: Sync missing tests from hs16.3 to hs17.x
asaha
parents:
diff changeset
    43
    echo "Test Failed"
43c2f12b4e90 6977952: Test: Sync missing tests from hs16.3 to hs17.x
asaha
parents:
diff changeset
    44
    exit 1
43c2f12b4e90 6977952: Test: Sync missing tests from hs16.3 to hs17.x
asaha
parents:
diff changeset
    45
else
43c2f12b4e90 6977952: Test: Sync missing tests from hs16.3 to hs17.x
asaha
parents:
diff changeset
    46
    echo "Test Passed"
43c2f12b4e90 6977952: Test: Sync missing tests from hs16.3 to hs17.x
asaha
parents:
diff changeset
    47
    exit 0
43c2f12b4e90 6977952: Test: Sync missing tests from hs16.3 to hs17.x
asaha
parents:
diff changeset
    48
fi