Files
hdf5/HDF5Examples/test-pc.sh
T
jhendersonHDF 4a12cfec19 Align CMake compiler wrappers with old Autotools versions (#5649)
Implemented missing --help/-h, -c, -echo and -shlib/-noshlib options

Added new -nohl option to avoid building and linking against
high-level HDF5 libraries if desired

Implemented adding of HDF5 installation library directory to rpath of
resulting executable/library and added new -norpath option to avoid
this behavior if desired

Added parsing of HDF5_USE_SHLIB environment variable to determine
whether to link against shared or static HDF5 libraries

Added parsing of HDF5_PKG_CONFIG_ARGS environment variable to separate
pkg-config-specific options from compiler-specific options and prevent
conflicts
2025-07-28 07:42:52 -05:00

57 lines
1.5 KiB
Bash
Executable File

#! /bin/sh
#
# Copyright by The HDF Group.
# 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 LICENSE file, which can be found at the root of the source code
# distribution tree, or in https://www.hdfgroup.org/licenses.
# If you do not have access to either file, you may request a copy from
# help@hdfgroup.org.
# This file is for use of h5cc created with the CMake process.
# Environment variable, HDF5_HOME is expected to be set.
# $1 is the path name of the source directory.
# $2 is the path name of the build directory.
# $3 is the current path name.
top_srcdir=$1
top_builddir=$2
currentpath=.
verbose=yes
nerrors=0
return_val=0
mkdir -p "$top_builddir"
cd "$top_srcdir"
# Loop through all subdirectories
for dir in */; do
if [ -d "$dir" ] && [ ! -L "$dir" ]; then
#check if test-pc.sh exists
if [ -f "$dir/test-pc.sh" ];
then
echo "Entering directory: $dir"
(
mkdir -p "$top_builddir/$dir"
cd "$dir"
./test-pc.sh $top_srcdir/ $top_builddir/ $dir # Execute script in the subdirectory
status=$?
exit $status
)
return_val=$?
if test $return_val -ne 0
then
echo "Exiting directory: $dir with $return_val tests FAILED"
else
echo "Exiting directory: $dir Passed"
fi
nerrors=`expr $return_val + $nerrors`
fi
fi
done
echo "$nerrors tests failed in HDF5Examples"
exit $nerrors