# Copyright by The HDF Group.
# This file is part of HDF5. The full HDF5 copyright notice, including
# terms governing use, modification, and redistribution, is contained in
# 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
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# This script will compile and run the c examples from source files installed #
# in .../share/hdf5_examples/c using h5cc or h5pc. The order for running #
# programs with RunTest in the MAIN section below is taken from the Makefile. #
# The order is important since some of the test programs use data files created #
# by earlier test programs. Any future additions should be placed accordingly. #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# Where the tool is installed.
# default is relative path to installed location of the tools
prefix="${prefix:-../../..}"
PARALLEL=@PARALLEL@ # Am I in parallel mode?
if [ "$PARALLEL" = no ]; then
H5TOOL="h5cc" # The tool name
H5TOOL="h5pcc" # The tool name
H5TOOL_BIN="${prefix}/bin/${H5TOOL}" # The path of the tool binary