summaryrefslogtreecommitdiffstats
path: root/fortran/examples/testh5fc.sh.in
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2007-04-11 21:31:10 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2007-04-11 21:31:10 (GMT)
commite7a398d07453e24eee5681d73e0d6bcfb40af6c7 (patch)
tree38f372c1d5798039ea7cc951b68e0dfa7865bb9c /fortran/examples/testh5fc.sh.in
parenta286af4e0fd4930da8e31d3b5335e6961380c365 (diff)
downloadhdf5-e7a398d07453e24eee5681d73e0d6bcfb40af6c7.zip
hdf5-e7a398d07453e24eee5681d73e0d6bcfb40af6c7.tar.gz
hdf5-e7a398d07453e24eee5681d73e0d6bcfb40af6c7.tar.bz2
[svn-r13646] Fortran/examples/testh5fc.sh.in:
Most fortran compilers do not support the Preprocessing -E option. Removed the tests for preprocessing only. examples/testh5cc.sh.in: c++/examples/testh5c++.sh.in: Updated comments and some cosmetic rearrangement. No substance changes. Tested platform: Copper, kagiso.
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