diff options
author | Vailin Choi <vchoi@hdfgroup.org> | 2010-11-15 04:04:28 (GMT) |
---|---|---|
committer | Vailin Choi <vchoi@hdfgroup.org> | 2010-11-15 04:04:28 (GMT) |
commit | 0c589bf7b56738d9c643718be5f12a72a1e39e83 (patch) | |
tree | e226588cafdaa999c835c31859119ba6eca43e85 /test/testlinks_env.sh.in | |
parent | 7c2fbcb03e6ea67cee77acb46a4f38ba8a24d8ff (diff) | |
download | hdf5-0c589bf7b56738d9c643718be5f12a72a1e39e83.zip hdf5-0c589bf7b56738d9c643718be5f12a72a1e39e83.tar.gz hdf5-0c589bf7b56738d9c643718be5f12a72a1e39e83.tar.bz2 |
[svn-r19781] Fix for bug #1930:
1) Move the test for H5D_EXT_PREFIX in links.c to a separate file: links_env.c
2) links_env.c will be used by testlinks_env.sh to test for the environmental
variable H5D_EXT_PREFIX in searching for the external linked file.
Diffstat (limited to 'test/testlinks_env.sh.in')
-rw-r--r-- | test/testlinks_env.sh.in | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/test/testlinks_env.sh.in b/test/testlinks_env.sh.in new file mode 100644 index 0000000..9ea85b1 --- /dev/null +++ b/test/testlinks_env.sh.in @@ -0,0 +1,41 @@ +#! /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 +# the files COPYING and Copyright.html. COPYING can be found at the root +# of the source code distribution tree; Copyright.html can be found at the +# root level of an installed copy of the electronic HDF5 document set and +# is linked from the top-level documents page. It can also be found at +# http://hdfgroup.org/HDF5/doc/Copyright.html. If you do not have +# access to either file, you may request a copy from help@hdfgroup.org. +# +# Test for external link with environment variable: HDF5_EXT_PREFIX + +nerrors=0 + +# The build (current) directory might be different than the source directory. +if test -z "$srcdir"; then + srcdir=. +fi + +############################################################################## +############################################################################## +### T H E T E S T S ### +############################################################################## +############################################################################## + +# test for external links with HDF5_EXT_PREFIX +echo "Testing external link with HDF5_EXT_PREFIX" +env "HDF5_EXT_PREFIX=.:tmp" links_env +exitcode=$? +if [ $exitcode -eq 0 ]; then + echo "Test for HDF5_EXT_PREFIX PASSED" + else + nerrors="`expr $nerrors + 1`" + echo "***Error encountered for HDF5_EXT_PREFIX test***" +fi +exit $nerrors |