summaryrefslogtreecommitdiffstats
path: root/fortran/examples/testh5fc.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'fortran/examples/testh5fc.sh.in')
-rwxr-xr-xfortran/examples/testh5fc.sh.in36
1 files changed, 8 insertions, 28 deletions
diff --git a/fortran/examples/testh5fc.sh.in b/fortran/examples/testh5fc.sh.in
index b16c2e9..1a4bb8f 100755
--- a/fortran/examples/testh5fc.sh.in
+++ b/fortran/examples/testh5fc.sh.in
@@ -38,6 +38,10 @@ DIFF='diff -c'
nerrors=0
verbose=yes
+# setup my machine information.
+myos=`uname -s`
+myhostnama=`uname -n`
+
# The build (current) directory might be different than the source directory.
if test -z "$srcdir"; then
srcdir=.
@@ -57,7 +61,7 @@ applib=libapp${H5TOOL}.a
# short hands
temp_SRC="$hdf5main $appmain $prog1 $prog2"
-temp_OBJ=`echo $temp_SRC | sed -e 's/${suffix}/.o/g'`
+temp_OBJ=`echo $temp_SRC | sed -e "s/\.${suffix}/.o/g"`
temp_FILES="a.out *.h5 $applib"
# Generate appmain:
@@ -138,29 +142,8 @@ DPRINT() {
# Run a test and print PASS or *FAIL*. If a test fails then increment
# the `nerrors' global variable and (if $verbose is set) display the
-# difference between the actual output and the expected output. The
-# expected output is given as the first argument to this function and
-# the actual output file is calculated by replacing the `.ddl' with
-# `.out'. The actual output is not removed if $HDF5_NOCLEANUP has a
-# non-zero value.
-#
-# This test shows what commands will be run and verify they are as expected.
-# It does not actually execute the compiler script to compile source code.
-# The actual execution ability is tested somewhere else.
-#
-# Algorithm:
-# First figure out the parameters (e.g., compiler name and option, linker name and
-# options, libraries used, ....) that the h5cc command uses. Then use the -show to
-# display what commands the tool will use for different parameter and verify if they
-# are as expected.
-# The paramters have two part, prefix and suffix. The prefix part is the real compiler
-# or linker command name, options (-I, -D, ...). The suffix part is the link options,
-# libraries, ....
-#
-
-#
-# $1: -C compile only; -L link only; -CL compile and link.
-# $2-$: remainign arguments
+# failed output. The actual output is not removed if $HDF5_NOCLEANUP is
+# defined.
#
TOOLTEST() {
out=test_$H5TOOL_$$.out
@@ -218,10 +201,7 @@ $RANLIB $applib
SKIP $appmain $applib
SKIP $appmain_o $applib
-# Just cpp, no compile, no link.
-echo "***"Just cpp, no compile, no link.
-TOOLTEST -E $hdf5main
-TOOLTEST -E $appmain $prog1 $prog2
+# No preprocess test since -E is not a common option for Fortran compilers.
##############################################################################
# END