diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2005-08-26 22:24:27 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2005-08-26 22:24:27 (GMT) |
commit | 538d37a1bcc15a600c71fad0566d8480c2344ee6 (patch) | |
tree | 73bcb79e9cae2cfd7bc3ab58fb1615b220879875 /fortran | |
parent | a8b272ac257ccbdf4da13423b5175ba22e7d3c14 (diff) | |
download | hdf5-538d37a1bcc15a600c71fad0566d8480c2344ee6.zip hdf5-538d37a1bcc15a600c71fad0566d8480c2344ee6.tar.gz hdf5-538d37a1bcc15a600c71fad0566d8480c2344ee6.tar.bz2 |
[svn-r11303] Purpose:
minor tidy up.
Description:
Changed both test programs and test scripts to use the same suffixes
(.chkexe and .chklog). Changed from .log to .chklog to avoid running
into potential conflicts by other "things" (e.g., config.log).
Tested:
Heping.
Diffstat (limited to 'fortran')
-rw-r--r-- | fortran/Makefile.in | 40 | ||||
-rw-r--r-- | fortran/examples/Makefile.in | 40 | ||||
-rw-r--r-- | fortran/src/Makefile.in | 40 | ||||
-rw-r--r-- | fortran/test/Makefile.in | 38 | ||||
-rw-r--r-- | fortran/testpar/Makefile.in | 39 |
5 files changed, 75 insertions, 122 deletions
diff --git a/fortran/Makefile.in b/fortran/Makefile.in index 447c523..213fd22 100644 --- a/fortran/Makefile.in +++ b/fortran/Makefile.in @@ -284,19 +284,9 @@ H5CC_PP = $(bindir)/h5pcc H5FC = $(bindir)/h5fc H5FC_PP = $(bindir)/h5pfc -# .chkexe and .chksh files are used to mark tests that have run successfully. -# Serial tests create .log and .logsh files. It's important only to clean log -# files generated by HDF5's tests, because the .log suffix is used for -# other files (e.g., config.log)! -# On the other hand, it is very hard to specify the exact name of .chksh and -# .logsh files because some scripts live in the source tree, not the build -# tree. Thus, we clean all .logsh and .chksh files. -CHECK_CLEANFILES = $(TEST_PROG_CHKEXE:.chkexe_=.chkexe) \ - $(TEST_PROG_PARA_CHKEXE:.chkexe_=.chkexe) \ - $(TEST_PROG_CHKEXE:.chkexe_=.log) \ - $(TEST_PROG_PARA_CHKEXE:.chkexe_=.log) \ - *.chksh *.logsh - +# .chkexe files are used to mark tests that have run successfully. +# .chklog files are output from those tests. +CHECK_CLEANFILES = *.chkexe *.chklog @BUILD_PARALLEL_CONDITIONAL_TRUE@TESTPARALLEL_DIR = testpar # Subdirectories in build order, not including examples directory @@ -319,8 +309,8 @@ PROGS = $(bin_PROGRAMS) $(bin_SCRIPTS) $(noinst_PROGRAMS) $(noinst_SCRIPTS) \ TESTS = $(check_PROGRAMS) $(check_SCRIPTS) $(EXTRA_TEST) TEST_PROG_CHKEXE = $(TEST_PROG:=.chkexe_) TEST_PROG_PARA_CHKEXE = $(TEST_PROG_PARA:=.chkexe_) -TEST_SCRIPT_CHKSH = $(TEST_SCRIPT:=.chksh_) -TEST_SCRIPT_PARA_CHKSH = $(TEST_SCRIPT_PARA:=.chksh_) +TEST_SCRIPT_CHKSH = $(TEST_SCRIPT:=.chkexe_) +TEST_SCRIPT_PARA_CHKSH = $(TEST_SCRIPT_PARA:=.chkexe_) all: all-recursive .SUFFIXES: @@ -729,7 +719,7 @@ _exec_check-s: $(TEST_PROG_CHKEXE) $(TEST_SCRIPT_CHKSH) $(TEST_PROG_CHKEXE) $(TEST_PROG_PARA_CHKEXE) dummy.chkexe_: @if test "X$@" != "X.chkexe_" && test "X$@" != "Xdummy.chkexe_"; then \ tname=$(@:.chkexe_=)$(EXEEXT);\ - log=$(@:.chkexe_=.log); \ + log=$(@:.chkexe_=.chklog); \ echo "============================"; \ if $(top_srcdir)/bin/newer $(@:.chkexe_=.chkexe) $${tname}; then \ echo "No need to test $${tname} again."; \ @@ -760,16 +750,16 @@ $(TEST_PROG_CHKEXE) $(TEST_PROG_PARA_CHKEXE) dummy.chkexe_: echo "============================"; \ fi -# The dummy.chksh here prevents the target from being +# The dummysh.chkexe here prevents the target from being # empty if there are no tests in the current directory. # $${log} is the log file. # $${tname} is the name of test. -$(TEST_SCRIPT_CHKSH) $(TEST_SCRIPT_PARA_CHKSH) dummy.chksh_: - @if test "X$@" != "X.chksh_" && test "X$@" != "Xdummy.chksh_"; then \ - tname=`basename $(@:.chksh_=)`;\ - log=`basename $(@:.chksh_=.logsh)`; \ +$(TEST_SCRIPT_CHKSH) $(TEST_SCRIPT_PARA_CHKSH) dummysh.chkexe_: + @if test "X$@" != "X.chkexe_" && test "X$@" != "Xdummysh.chkexe_"; then \ + tname=`basename $(@:.chkexe_=)`;\ + log=`basename $(@:.chkexe_=.chklog)`; \ echo "============================"; \ - if $(top_srcdir)/bin/newer `basename $(@:.chksh_=.chksh)` $(@:.chksh_=); then \ + if $(top_srcdir)/bin/newer `basename $(@:.chkexe_=.chkexe)` $(@:.chkexe_=); then \ echo "No need to test $${tname} again."; \ else \ echo "============================" > $${log}; \ @@ -786,8 +776,8 @@ $(TEST_SCRIPT_CHKSH) $(TEST_SCRIPT_PARA_CHKSH) dummy.chksh_: echo "============================" >> $${log}; \ RUNSERIAL="$(RUNSERIAL)" RUNPARALLEL="$(RUNPARALLEL)" \ srcdir="$(srcdir)" \ - $(SHELL) $(@:.chksh_=) $(TEST_FLAGS) >> $${log} 2>&1 \ - && touch `basename $(@:.chksh_=.chksh)` || \ + $(SHELL) $(@:.chkexe_=) $(TEST_FLAGS) >> $${log} 2>&1 \ + && touch `basename $(@:.chkexe_=.chkexe)` || \ (test $$HDF5_Make_Ignore && echo "*** Error ignored") || \ (cat $${log} && false) || exit 1; \ echo "" >> $${log}; \ @@ -823,7 +813,7 @@ build-check-p: $(LIB) $(PROGS) $(TESTS) test $$test = dummy || false @for test in $(TEST_SCRIPT_PARA) dummy; do \ if test $$test != dummy; then \ - $(MAKE) $(AM_MAKEFLAGS) $$test.chksh_; \ + $(MAKE) $(AM_MAKEFLAGS) $$test.chkexe_; \ fi; \ done; \ test $$test = dummy || false diff --git a/fortran/examples/Makefile.in b/fortran/examples/Makefile.in index 26931f6..0753a52 100644 --- a/fortran/examples/Makefile.in +++ b/fortran/examples/Makefile.in @@ -272,19 +272,9 @@ H5CC_PP = $(bindir)/h5pcc H5FC = $(bindir)/h5fc H5FC_PP = $(bindir)/h5pfc -# .chkexe and .chksh files are used to mark tests that have run successfully. -# Serial tests create .log and .logsh files. It's important only to clean log -# files generated by HDF5's tests, because the .log suffix is used for -# other files (e.g., config.log)! -# On the other hand, it is very hard to specify the exact name of .chksh and -# .logsh files because some scripts live in the source tree, not the build -# tree. Thus, we clean all .logsh and .chksh files. -CHECK_CLEANFILES = $(TEST_PROG_CHKEXE:.chkexe_=.chkexe) \ - $(TEST_PROG_PARA_CHKEXE:.chkexe_=.chkexe) \ - $(TEST_PROG_CHKEXE:.chkexe_=.log) \ - $(TEST_PROG_PARA_CHKEXE:.chkexe_=.log) \ - *.chksh *.logsh - +# .chkexe files are used to mark tests that have run successfully. +# .chklog files are output from those tests. +CHECK_CLEANFILES = *.chkexe *.chklog # Compile parallel fortran examples only if parallel is enabled @BUILD_PARALLEL_CONDITIONAL_TRUE@TEST_PROG_PARA = ph5example @@ -334,8 +324,8 @@ PROGS = $(bin_PROGRAMS) $(bin_SCRIPTS) $(noinst_PROGRAMS) $(noinst_SCRIPTS) \ TESTS = $(check_PROGRAMS) $(check_SCRIPTS) $(EXTRA_TEST) TEST_PROG_CHKEXE = $(TEST_PROG:=.chkexe_) TEST_PROG_PARA_CHKEXE = $(TEST_PROG_PARA:=.chkexe_) -TEST_SCRIPT_CHKSH = $(TEST_SCRIPT:=.chksh_) -TEST_SCRIPT_PARA_CHKSH = $(TEST_SCRIPT_PARA:=.chksh_) +TEST_SCRIPT_CHKSH = $(TEST_SCRIPT:=.chkexe_) +TEST_SCRIPT_PARA_CHKSH = $(TEST_SCRIPT_PARA:=.chkexe_) all: all-am .SUFFIXES: @@ -641,7 +631,7 @@ _exec_check-s: $(TEST_PROG_CHKEXE) $(TEST_SCRIPT_CHKSH) $(TEST_PROG_CHKEXE) $(TEST_PROG_PARA_CHKEXE) dummy.chkexe_: @if test "X$@" != "X.chkexe_" && test "X$@" != "Xdummy.chkexe_"; then \ tname=$(@:.chkexe_=)$(EXEEXT);\ - log=$(@:.chkexe_=.log); \ + log=$(@:.chkexe_=.chklog); \ echo "============================"; \ if $(top_srcdir)/bin/newer $(@:.chkexe_=.chkexe) $${tname}; then \ echo "No need to test $${tname} again."; \ @@ -672,16 +662,16 @@ $(TEST_PROG_CHKEXE) $(TEST_PROG_PARA_CHKEXE) dummy.chkexe_: echo "============================"; \ fi -# The dummy.chksh here prevents the target from being +# The dummysh.chkexe here prevents the target from being # empty if there are no tests in the current directory. # $${log} is the log file. # $${tname} is the name of test. -$(TEST_SCRIPT_CHKSH) $(TEST_SCRIPT_PARA_CHKSH) dummy.chksh_: - @if test "X$@" != "X.chksh_" && test "X$@" != "Xdummy.chksh_"; then \ - tname=`basename $(@:.chksh_=)`;\ - log=`basename $(@:.chksh_=.logsh)`; \ +$(TEST_SCRIPT_CHKSH) $(TEST_SCRIPT_PARA_CHKSH) dummysh.chkexe_: + @if test "X$@" != "X.chkexe_" && test "X$@" != "Xdummysh.chkexe_"; then \ + tname=`basename $(@:.chkexe_=)`;\ + log=`basename $(@:.chkexe_=.chklog)`; \ echo "============================"; \ - if $(top_srcdir)/bin/newer `basename $(@:.chksh_=.chksh)` $(@:.chksh_=); then \ + if $(top_srcdir)/bin/newer `basename $(@:.chkexe_=.chkexe)` $(@:.chkexe_=); then \ echo "No need to test $${tname} again."; \ else \ echo "============================" > $${log}; \ @@ -698,8 +688,8 @@ $(TEST_SCRIPT_CHKSH) $(TEST_SCRIPT_PARA_CHKSH) dummy.chksh_: echo "============================" >> $${log}; \ RUNSERIAL="$(RUNSERIAL)" RUNPARALLEL="$(RUNPARALLEL)" \ srcdir="$(srcdir)" \ - $(SHELL) $(@:.chksh_=) $(TEST_FLAGS) >> $${log} 2>&1 \ - && touch `basename $(@:.chksh_=.chksh)` || \ + $(SHELL) $(@:.chkexe_=) $(TEST_FLAGS) >> $${log} 2>&1 \ + && touch `basename $(@:.chkexe_=.chkexe)` || \ (test $$HDF5_Make_Ignore && echo "*** Error ignored") || \ (cat $${log} && false) || exit 1; \ echo "" >> $${log}; \ @@ -735,7 +725,7 @@ build-check-p: $(LIB) $(PROGS) $(TESTS) test $$test = dummy || false @for test in $(TEST_SCRIPT_PARA) dummy; do \ if test $$test != dummy; then \ - $(MAKE) $(AM_MAKEFLAGS) $$test.chksh_; \ + $(MAKE) $(AM_MAKEFLAGS) $$test.chkexe_; \ fi; \ done; \ test $$test = dummy || false diff --git a/fortran/src/Makefile.in b/fortran/src/Makefile.in index 98f6209..69d55c5 100644 --- a/fortran/src/Makefile.in +++ b/fortran/src/Makefile.in @@ -339,19 +339,9 @@ H5CC_PP = $(bindir)/h5pcc H5FC = $(bindir)/h5fc H5FC_PP = $(bindir)/h5pfc -# .chkexe and .chksh files are used to mark tests that have run successfully. -# Serial tests create .log and .logsh files. It's important only to clean log -# files generated by HDF5's tests, because the .log suffix is used for -# other files (e.g., config.log)! -# On the other hand, it is very hard to specify the exact name of .chksh and -# .logsh files because some scripts live in the source tree, not the build -# tree. Thus, we clean all .logsh and .chksh files. -CHECK_CLEANFILES = $(TEST_PROG_CHKEXE:.chkexe_=.chkexe) \ - $(TEST_PROG_PARA_CHKEXE:.chkexe_=.chkexe) \ - $(TEST_PROG_CHKEXE:.chkexe_=.log) \ - $(TEST_PROG_PARA_CHKEXE:.chkexe_=.log) \ - *.chksh *.logsh - +# .chkexe files are used to mark tests that have run successfully. +# .chklog files are output from those tests. +CHECK_CLEANFILES = *.chkexe *.chklog # Include src directory in both Fortran and C flags (C compiler is used # for linking). @@ -429,8 +419,8 @@ PROGS = $(bin_PROGRAMS) $(bin_SCRIPTS) $(noinst_PROGRAMS) $(noinst_SCRIPTS) \ TESTS = $(check_PROGRAMS) $(check_SCRIPTS) $(EXTRA_TEST) TEST_PROG_CHKEXE = $(TEST_PROG:=.chkexe_) TEST_PROG_PARA_CHKEXE = $(TEST_PROG_PARA:=.chkexe_) -TEST_SCRIPT_CHKSH = $(TEST_SCRIPT:=.chksh_) -TEST_SCRIPT_PARA_CHKSH = $(TEST_SCRIPT_PARA:=.chksh_) +TEST_SCRIPT_CHKSH = $(TEST_SCRIPT:=.chkexe_) +TEST_SCRIPT_PARA_CHKSH = $(TEST_SCRIPT_PARA:=.chkexe_) all: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) all-am @@ -925,7 +915,7 @@ _exec_check-s: $(TEST_PROG_CHKEXE) $(TEST_SCRIPT_CHKSH) $(TEST_PROG_CHKEXE) $(TEST_PROG_PARA_CHKEXE) dummy.chkexe_: @if test "X$@" != "X.chkexe_" && test "X$@" != "Xdummy.chkexe_"; then \ tname=$(@:.chkexe_=)$(EXEEXT);\ - log=$(@:.chkexe_=.log); \ + log=$(@:.chkexe_=.chklog); \ echo "============================"; \ if $(top_srcdir)/bin/newer $(@:.chkexe_=.chkexe) $${tname}; then \ echo "No need to test $${tname} again."; \ @@ -956,16 +946,16 @@ $(TEST_PROG_CHKEXE) $(TEST_PROG_PARA_CHKEXE) dummy.chkexe_: echo "============================"; \ fi -# The dummy.chksh here prevents the target from being +# The dummysh.chkexe here prevents the target from being # empty if there are no tests in the current directory. # $${log} is the log file. # $${tname} is the name of test. -$(TEST_SCRIPT_CHKSH) $(TEST_SCRIPT_PARA_CHKSH) dummy.chksh_: - @if test "X$@" != "X.chksh_" && test "X$@" != "Xdummy.chksh_"; then \ - tname=`basename $(@:.chksh_=)`;\ - log=`basename $(@:.chksh_=.logsh)`; \ +$(TEST_SCRIPT_CHKSH) $(TEST_SCRIPT_PARA_CHKSH) dummysh.chkexe_: + @if test "X$@" != "X.chkexe_" && test "X$@" != "Xdummysh.chkexe_"; then \ + tname=`basename $(@:.chkexe_=)`;\ + log=`basename $(@:.chkexe_=.chklog)`; \ echo "============================"; \ - if $(top_srcdir)/bin/newer `basename $(@:.chksh_=.chksh)` $(@:.chksh_=); then \ + if $(top_srcdir)/bin/newer `basename $(@:.chkexe_=.chkexe)` $(@:.chkexe_=); then \ echo "No need to test $${tname} again."; \ else \ echo "============================" > $${log}; \ @@ -982,8 +972,8 @@ $(TEST_SCRIPT_CHKSH) $(TEST_SCRIPT_PARA_CHKSH) dummy.chksh_: echo "============================" >> $${log}; \ RUNSERIAL="$(RUNSERIAL)" RUNPARALLEL="$(RUNPARALLEL)" \ srcdir="$(srcdir)" \ - $(SHELL) $(@:.chksh_=) $(TEST_FLAGS) >> $${log} 2>&1 \ - && touch `basename $(@:.chksh_=.chksh)` || \ + $(SHELL) $(@:.chkexe_=) $(TEST_FLAGS) >> $${log} 2>&1 \ + && touch `basename $(@:.chkexe_=.chkexe)` || \ (test $$HDF5_Make_Ignore && echo "*** Error ignored") || \ (cat $${log} && false) || exit 1; \ echo "" >> $${log}; \ @@ -1019,7 +1009,7 @@ build-check-p: $(LIB) $(PROGS) $(TESTS) test $$test = dummy || false @for test in $(TEST_SCRIPT_PARA) dummy; do \ if test $$test != dummy; then \ - $(MAKE) $(AM_MAKEFLAGS) $$test.chksh_; \ + $(MAKE) $(AM_MAKEFLAGS) $$test.chkexe_; \ fi; \ done; \ test $$test = dummy || false diff --git a/fortran/test/Makefile.in b/fortran/test/Makefile.in index a02a7c9..52fdc92 100644 --- a/fortran/test/Makefile.in +++ b/fortran/test/Makefile.in @@ -341,19 +341,11 @@ H5CC_PP = $(bindir)/h5pcc H5FC = $(bindir)/h5fc H5FC_PP = $(bindir)/h5pfc -# .chkexe and .chksh files are used to mark tests that have run successfully. -# Serial tests create .log and .logsh files. It's important only to clean log -# files generated by HDF5's tests, because the .log suffix is used for -# other files (e.g., config.log)! -# On the other hand, it is very hard to specify the exact name of .chksh and -# .logsh files because some scripts live in the source tree, not the build -# tree. Thus, we clean all .logsh and .chksh files. +# .chkexe files are used to mark tests that have run successfully. +# .chklog files are output from those tests. # Temporary files -CHECK_CLEANFILES = $(TEST_PROG_CHKEXE:.chkexe_=.chkexe) \ - $(TEST_PROG_PARA_CHKEXE:.chkexe_=.chkexe) \ - $(TEST_PROG_CHKEXE:.chkexe_=.log) \ - $(TEST_PROG_PARA_CHKEXE:.chkexe_=.log) *.chksh *.logsh *.h5 +CHECK_CLEANFILES = *.chkexe *.chklog *.h5 # Include files AM_FCFLAGS = -I$(top_builddir)/fortran/src $(F9XMODFLAG)$(top_builddir)/fortran/src @@ -408,8 +400,8 @@ PROGS = $(bin_PROGRAMS) $(bin_SCRIPTS) $(noinst_PROGRAMS) $(noinst_SCRIPTS) \ TESTS = $(check_PROGRAMS) $(check_SCRIPTS) $(EXTRA_TEST) TEST_PROG_CHKEXE = $(TEST_PROG:=.chkexe_) TEST_PROG_PARA_CHKEXE = $(TEST_PROG_PARA:=.chkexe_) -TEST_SCRIPT_CHKSH = $(TEST_SCRIPT:=.chksh_) -TEST_SCRIPT_PARA_CHKSH = $(TEST_SCRIPT_PARA:=.chksh_) +TEST_SCRIPT_CHKSH = $(TEST_SCRIPT:=.chkexe_) +TEST_SCRIPT_PARA_CHKSH = $(TEST_SCRIPT_PARA:=.chkexe_) all: all-am .SUFFIXES: @@ -895,7 +887,7 @@ _exec_check-s: $(TEST_PROG_CHKEXE) $(TEST_SCRIPT_CHKSH) $(TEST_PROG_CHKEXE) $(TEST_PROG_PARA_CHKEXE) dummy.chkexe_: @if test "X$@" != "X.chkexe_" && test "X$@" != "Xdummy.chkexe_"; then \ tname=$(@:.chkexe_=)$(EXEEXT);\ - log=$(@:.chkexe_=.log); \ + log=$(@:.chkexe_=.chklog); \ echo "============================"; \ if $(top_srcdir)/bin/newer $(@:.chkexe_=.chkexe) $${tname}; then \ echo "No need to test $${tname} again."; \ @@ -926,16 +918,16 @@ $(TEST_PROG_CHKEXE) $(TEST_PROG_PARA_CHKEXE) dummy.chkexe_: echo "============================"; \ fi -# The dummy.chksh here prevents the target from being +# The dummysh.chkexe here prevents the target from being # empty if there are no tests in the current directory. # $${log} is the log file. # $${tname} is the name of test. -$(TEST_SCRIPT_CHKSH) $(TEST_SCRIPT_PARA_CHKSH) dummy.chksh_: - @if test "X$@" != "X.chksh_" && test "X$@" != "Xdummy.chksh_"; then \ - tname=`basename $(@:.chksh_=)`;\ - log=`basename $(@:.chksh_=.logsh)`; \ +$(TEST_SCRIPT_CHKSH) $(TEST_SCRIPT_PARA_CHKSH) dummysh.chkexe_: + @if test "X$@" != "X.chkexe_" && test "X$@" != "Xdummysh.chkexe_"; then \ + tname=`basename $(@:.chkexe_=)`;\ + log=`basename $(@:.chkexe_=.chklog)`; \ echo "============================"; \ - if $(top_srcdir)/bin/newer `basename $(@:.chksh_=.chksh)` $(@:.chksh_=); then \ + if $(top_srcdir)/bin/newer `basename $(@:.chkexe_=.chkexe)` $(@:.chkexe_=); then \ echo "No need to test $${tname} again."; \ else \ echo "============================" > $${log}; \ @@ -952,8 +944,8 @@ $(TEST_SCRIPT_CHKSH) $(TEST_SCRIPT_PARA_CHKSH) dummy.chksh_: echo "============================" >> $${log}; \ RUNSERIAL="$(RUNSERIAL)" RUNPARALLEL="$(RUNPARALLEL)" \ srcdir="$(srcdir)" \ - $(SHELL) $(@:.chksh_=) $(TEST_FLAGS) >> $${log} 2>&1 \ - && touch `basename $(@:.chksh_=.chksh)` || \ + $(SHELL) $(@:.chkexe_=) $(TEST_FLAGS) >> $${log} 2>&1 \ + && touch `basename $(@:.chkexe_=.chkexe)` || \ (test $$HDF5_Make_Ignore && echo "*** Error ignored") || \ (cat $${log} && false) || exit 1; \ echo "" >> $${log}; \ @@ -989,7 +981,7 @@ build-check-p: $(LIB) $(PROGS) $(TESTS) test $$test = dummy || false @for test in $(TEST_SCRIPT_PARA) dummy; do \ if test $$test != dummy; then \ - $(MAKE) $(AM_MAKEFLAGS) $$test.chksh_; \ + $(MAKE) $(AM_MAKEFLAGS) $$test.chkexe_; \ fi; \ done; \ test $$test = dummy || false diff --git a/fortran/testpar/Makefile.in b/fortran/testpar/Makefile.in index 06bb739..0f50653 100644 --- a/fortran/testpar/Makefile.in +++ b/fortran/testpar/Makefile.in @@ -296,20 +296,11 @@ H5CC_PP = $(bindir)/h5pcc H5FC = $(bindir)/h5fc H5FC_PP = $(bindir)/h5pfc -# .chkexe and .chksh files are used to mark tests that have run successfully. -# Serial tests create .log and .logsh files. It's important only to clean log -# files generated by HDF5's tests, because the .log suffix is used for -# other files (e.g., config.log)! -# On the other hand, it is very hard to specify the exact name of .chksh and -# .logsh files because some scripts live in the source tree, not the build -# tree. Thus, we clean all .logsh and .chksh files. +# .chkexe files are used to mark tests that have run successfully. +# .chklog files are output from those tests. # Temporary files -CHECK_CLEANFILES = $(TEST_PROG_CHKEXE:.chkexe_=.chkexe) \ - $(TEST_PROG_PARA_CHKEXE:.chkexe_=.chkexe) \ - $(TEST_PROG_CHKEXE:.chkexe_=.log) \ - $(TEST_PROG_PARA_CHKEXE:.chkexe_=.log) *.chksh *.logsh \ - parf[12].h5 +CHECK_CLEANFILES = *.chkexe *.chklog parf[12].h5 # Include files AM_FCFLAGS = -I$(top_srcdir)/fortran/src -I$(top_srcdir)/fortran/test $(F9XMODFLAG)$(top_builddir)/fortran/src @@ -343,8 +334,8 @@ PROGS = $(bin_PROGRAMS) $(bin_SCRIPTS) $(noinst_PROGRAMS) $(noinst_SCRIPTS) \ TESTS = $(check_PROGRAMS) $(check_SCRIPTS) $(EXTRA_TEST) TEST_PROG_CHKEXE = $(TEST_PROG:=.chkexe_) TEST_PROG_PARA_CHKEXE = $(TEST_PROG_PARA:=.chkexe_) -TEST_SCRIPT_CHKSH = $(TEST_SCRIPT:=.chksh_) -TEST_SCRIPT_PARA_CHKSH = $(TEST_SCRIPT_PARA:=.chksh_) +TEST_SCRIPT_CHKSH = $(TEST_SCRIPT:=.chkexe_) +TEST_SCRIPT_PARA_CHKSH = $(TEST_SCRIPT_PARA:=.chkexe_) all: all-am .SUFFIXES: @@ -656,7 +647,7 @@ _exec_check-s: $(TEST_PROG_CHKEXE) $(TEST_SCRIPT_CHKSH) $(TEST_PROG_CHKEXE) $(TEST_PROG_PARA_CHKEXE) dummy.chkexe_: @if test "X$@" != "X.chkexe_" && test "X$@" != "Xdummy.chkexe_"; then \ tname=$(@:.chkexe_=)$(EXEEXT);\ - log=$(@:.chkexe_=.log); \ + log=$(@:.chkexe_=.chklog); \ echo "============================"; \ if $(top_srcdir)/bin/newer $(@:.chkexe_=.chkexe) $${tname}; then \ echo "No need to test $${tname} again."; \ @@ -687,16 +678,16 @@ $(TEST_PROG_CHKEXE) $(TEST_PROG_PARA_CHKEXE) dummy.chkexe_: echo "============================"; \ fi -# The dummy.chksh here prevents the target from being +# The dummysh.chkexe here prevents the target from being # empty if there are no tests in the current directory. # $${log} is the log file. # $${tname} is the name of test. -$(TEST_SCRIPT_CHKSH) $(TEST_SCRIPT_PARA_CHKSH) dummy.chksh_: - @if test "X$@" != "X.chksh_" && test "X$@" != "Xdummy.chksh_"; then \ - tname=`basename $(@:.chksh_=)`;\ - log=`basename $(@:.chksh_=.logsh)`; \ +$(TEST_SCRIPT_CHKSH) $(TEST_SCRIPT_PARA_CHKSH) dummysh.chkexe_: + @if test "X$@" != "X.chkexe_" && test "X$@" != "Xdummysh.chkexe_"; then \ + tname=`basename $(@:.chkexe_=)`;\ + log=`basename $(@:.chkexe_=.chklog)`; \ echo "============================"; \ - if $(top_srcdir)/bin/newer `basename $(@:.chksh_=.chksh)` $(@:.chksh_=); then \ + if $(top_srcdir)/bin/newer `basename $(@:.chkexe_=.chkexe)` $(@:.chkexe_=); then \ echo "No need to test $${tname} again."; \ else \ echo "============================" > $${log}; \ @@ -713,8 +704,8 @@ $(TEST_SCRIPT_CHKSH) $(TEST_SCRIPT_PARA_CHKSH) dummy.chksh_: echo "============================" >> $${log}; \ RUNSERIAL="$(RUNSERIAL)" RUNPARALLEL="$(RUNPARALLEL)" \ srcdir="$(srcdir)" \ - $(SHELL) $(@:.chksh_=) $(TEST_FLAGS) >> $${log} 2>&1 \ - && touch `basename $(@:.chksh_=.chksh)` || \ + $(SHELL) $(@:.chkexe_=) $(TEST_FLAGS) >> $${log} 2>&1 \ + && touch `basename $(@:.chkexe_=.chkexe)` || \ (test $$HDF5_Make_Ignore && echo "*** Error ignored") || \ (cat $${log} && false) || exit 1; \ echo "" >> $${log}; \ @@ -750,7 +741,7 @@ build-check-p: $(LIB) $(PROGS) $(TESTS) test $$test = dummy || false @for test in $(TEST_SCRIPT_PARA) dummy; do \ if test $$test != dummy; then \ - $(MAKE) $(AM_MAKEFLAGS) $$test.chksh_; \ + $(MAKE) $(AM_MAKEFLAGS) $$test.chkexe_; \ fi; \ done; \ test $$test = dummy || false |