3743N/A# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 2792N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 2792N/A# This code is free software; you can redistribute it and/or modify it 2792N/A# under the terms of the GNU General Public License version 2 only, as 2792N/A# published by the Free Software Foundation. 2792N/A# This code is distributed in the hope that it will be useful, but WITHOUT 2792N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 2792N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 2792N/A# version 2 for more details (a copy is included in the LICENSE file that 2792N/A# You should have received a copy of the GNU General Public License version 2792N/A# 2 along with this work; if not, write to the Free Software Foundation, 2792N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2792N/A# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4503N/A## Adding common setup Variables for running shell tests. 2792N/A# LD_PRELOAD arch needs to match the binary we run, so run the java 3743N/A# Check if TESTVMOPS contains -d64, but cannot use 3743N/A# java ${TESTVMOPS} to run "java -d64" with LD_PRELOAD. 2792N/A# If libjsig and binary do not match, skip test. 2792N/A printf "Mismatching binary and library to preload, skipping test.\n" 2792N/A printf "Skipping test: libjsig missing for given architecture: ${LIBJSIG}\n" 3743N/A# Use java -version to test, java version info appears on stderr, 2792N/A# the libjsig message we are removing appears on stdout. 2792N/A# grep returns zero meaning found, non-zero means not found: