2010-11-15 12:04:28 +08:00
|
|
|
#! /bin/sh
|
|
|
|
#
|
|
|
|
# Copyright by The HDF Group.
|
|
|
|
# Copyright by the Board of Trustees of the University of Illinois.
|
|
|
|
# All rights reserved.
|
|
|
|
#
|
|
|
|
# This file is part of HDF5. The full HDF5 copyright notice, including
|
|
|
|
# terms governing use, modification, and redistribution, is contained in
|
2017-04-18 03:32:16 +08:00
|
|
|
# the COPYING file, which can be found at the root of the source code
|
|
|
|
# distribution tree, or in https://support.hdfgroup.org/ftp/HDF5/releases.
|
|
|
|
# If you do not have access to either file, you may request a copy from
|
|
|
|
# help@hdfgroup.org.
|
2010-11-15 12:04:28 +08:00
|
|
|
#
|
|
|
|
# Test for external link with environment variable: HDF5_EXT_PREFIX
|
|
|
|
|
2012-08-24 00:07:43 +08:00
|
|
|
srcdir=@srcdir@
|
2010-11-15 12:04:28 +08:00
|
|
|
|
2012-08-24 00:07:43 +08:00
|
|
|
nerrors=0
|
2010-11-15 12:04:28 +08:00
|
|
|
|
|
|
|
##############################################################################
|
|
|
|
##############################################################################
|
2019-08-15 23:28:40 +08:00
|
|
|
### T H E T E S T S ###
|
2010-11-15 12:04:28 +08:00
|
|
|
##############################################################################
|
|
|
|
##############################################################################
|
|
|
|
|
|
|
|
# test for external links with HDF5_EXT_PREFIX
|
|
|
|
echo "Testing external link with HDF5_EXT_PREFIX"
|
2019-08-15 23:28:40 +08:00
|
|
|
TEST_NAME=links_env # The test name
|
|
|
|
TEST_BIN=`pwd`/$TEST_NAME # The path of the test binary
|
|
|
|
ENVCMD="env HDF5_EXT_PREFIX=.:tmp_links" # The environment variable & value
|
2010-11-16 03:24:46 +08:00
|
|
|
#
|
|
|
|
# Run the test
|
2012-08-24 00:07:43 +08:00
|
|
|
echo "$ENVCMD $RUNSERIAL $TEST_BIN"
|
2011-10-04 16:36:27 +08:00
|
|
|
$ENVCMD $RUNSERIAL $TEST_BIN
|
2010-11-15 12:04:28 +08:00
|
|
|
exitcode=$?
|
|
|
|
if [ $exitcode -eq 0 ]; then
|
|
|
|
echo "Test for HDF5_EXT_PREFIX PASSED"
|
|
|
|
else
|
2019-08-15 23:28:40 +08:00
|
|
|
nerrors="`expr $nerrors + 1`"
|
|
|
|
echo "***Error encountered for HDF5_EXT_PREFIX test***"
|
2010-11-15 12:04:28 +08:00
|
|
|
fi
|
|
|
|
exit $nerrors
|