summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2007-04-11 17:29:32 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2007-04-11 17:29:32 (GMT)
commit320775393a0d10a52f412f64e7d73617f6787702 (patch)
tree7e238f0e77ed3a47be7f8db6a30798d681649804
parent41546c1db826329c6029a3608092072d900a0460 (diff)
downloadhdf5-320775393a0d10a52f412f64e7d73617f6787702.zip
hdf5-320775393a0d10a52f412f64e7d73617f6787702.tar.gz
hdf5-320775393a0d10a52f412f64e7d73617f6787702.tar.bz2
[svn-r13640] Description:
Most fortran compilers do not support the Preprocessing -E option. Removed the tests for preprocessing only. Tested platform: Copper.
-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