summaryrefslogtreecommitdiffstats
path: root/c++
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2005-09-18 03:04:28 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2005-09-18 03:04:28 (GMT)
commitc0e83899c3d08404dca016a8108792bf938e40a0 (patch)
tree0f3fc698c722a6b71ca10d7495f9d2a4bacb6c20 /c++
parent28bb8b469438d5cf29d673ee13bdd11a619e4dbb (diff)
downloadhdf5-c0e83899c3d08404dca016a8108792bf938e40a0.zip
hdf5-c0e83899c3d08404dca016a8108792bf938e40a0.tar.gz
hdf5-c0e83899c3d08404dca016a8108792bf938e40a0.tar.bz2
[svn-r11431] Purpose:
New feature. Description: Added the time command to the make check target to report time usage of the execute of each test and test scripts. This gives us some idea how long each test takes and some vague idea it is compute bound or not. powerpc-ibm-aix5.x: Change $RUNPARALLEL default setting to allow it being invoked by the time command. Platforms tested: h5committested.
Diffstat (limited to 'c++')
-rw-r--r--c++/Makefile.in5
-rw-r--r--c++/examples/Makefile.in5
-rw-r--r--c++/src/Makefile.in5
-rw-r--r--c++/test/Makefile.in5
4 files changed, 12 insertions, 8 deletions
diff --git a/c++/Makefile.in b/c++/Makefile.in
index 9dd9234..4414678 100644
--- a/c++/Makefile.in
+++ b/c++/Makefile.in
@@ -263,6 +263,7 @@ target_alias = @target_alias@
# Shell commands used in Makefiles
RM = rm -f
CP = cp
+TIME = time
# Some machines need a command to run executables; this is that command
# so that our tests will run.
@@ -730,7 +731,7 @@ $(TEST_PROG_CHKEXE) $(TEST_PROG_PARA_CHKEXE) dummy.chkexe_:
fi; \
echo "============================" >> $${log}; \
srcdir="$(srcdir)" \
- $(RUNTESTS) ./$${tname} $(TEST_FLAGS) >> $${log} 2>&1 \
+ $(TIME) $(RUNTESTS) ./$${tname} $(TEST_FLAGS) >> $${log} 2>&1 \
&& touch $(@:.chkexe_=.chkexe) || \
(test $$HDF5_Make_Ignore && echo "*** Error ignored") || \
(cat $${log} && false) || exit 1; \
@@ -769,7 +770,7 @@ $(TEST_SCRIPT_CHKSH) $(TEST_SCRIPT_PARA_CHKSH) dummysh.chkexe_:
echo "============================" >> $${log}; \
RUNSERIAL="$(RUNSERIAL)" RUNPARALLEL="$(RUNPARALLEL)" \
srcdir="$(srcdir)" \
- $(SHELL) $(@:.chkexe_=) $(TEST_FLAGS) >> $${log} 2>&1 \
+ $(TIME) $(SHELL) $(@:.chkexe_=) $(TEST_FLAGS) >> $${log} 2>&1 \
&& touch `basename $(@:.chkexe_=.chkexe)` || \
(test $$HDF5_Make_Ignore && echo "*** Error ignored") || \
(cat $${log} && false) || exit 1; \
diff --git a/c++/examples/Makefile.in b/c++/examples/Makefile.in
index 362bde2..f1062a3 100644
--- a/c++/examples/Makefile.in
+++ b/c++/examples/Makefile.in
@@ -255,6 +255,7 @@ target_alias = @target_alias@
# Shell commands used in Makefiles
RM = rm -f
CP = cp
+TIME = time
# Some machines need a command to run executables; this is that command
# so that our tests will run.
@@ -646,7 +647,7 @@ $(TEST_PROG_CHKEXE) $(TEST_PROG_PARA_CHKEXE) dummy.chkexe_:
fi; \
echo "============================" >> $${log}; \
srcdir="$(srcdir)" \
- $(RUNTESTS) ./$${tname} $(TEST_FLAGS) >> $${log} 2>&1 \
+ $(TIME) $(RUNTESTS) ./$${tname} $(TEST_FLAGS) >> $${log} 2>&1 \
&& touch $(@:.chkexe_=.chkexe) || \
(test $$HDF5_Make_Ignore && echo "*** Error ignored") || \
(cat $${log} && false) || exit 1; \
@@ -685,7 +686,7 @@ $(TEST_SCRIPT_CHKSH) $(TEST_SCRIPT_PARA_CHKSH) dummysh.chkexe_:
echo "============================" >> $${log}; \
RUNSERIAL="$(RUNSERIAL)" RUNPARALLEL="$(RUNPARALLEL)" \
srcdir="$(srcdir)" \
- $(SHELL) $(@:.chkexe_=) $(TEST_FLAGS) >> $${log} 2>&1 \
+ $(TIME) $(SHELL) $(@:.chkexe_=) $(TEST_FLAGS) >> $${log} 2>&1 \
&& touch `basename $(@:.chkexe_=.chkexe)` || \
(test $$HDF5_Make_Ignore && echo "*** Error ignored") || \
(cat $${log} && false) || exit 1; \
diff --git a/c++/src/Makefile.in b/c++/src/Makefile.in
index 342a82d..a086775 100644
--- a/c++/src/Makefile.in
+++ b/c++/src/Makefile.in
@@ -297,6 +297,7 @@ target_alias = @target_alias@
# Shell commands used in Makefiles
RM = rm -f
CP = cp
+TIME = time
# Some machines need a command to run executables; this is that command
# so that our tests will run.
@@ -824,7 +825,7 @@ $(TEST_PROG_CHKEXE) $(TEST_PROG_PARA_CHKEXE) dummy.chkexe_:
fi; \
echo "============================" >> $${log}; \
srcdir="$(srcdir)" \
- $(RUNTESTS) ./$${tname} $(TEST_FLAGS) >> $${log} 2>&1 \
+ $(TIME) $(RUNTESTS) ./$${tname} $(TEST_FLAGS) >> $${log} 2>&1 \
&& touch $(@:.chkexe_=.chkexe) || \
(test $$HDF5_Make_Ignore && echo "*** Error ignored") || \
(cat $${log} && false) || exit 1; \
@@ -863,7 +864,7 @@ $(TEST_SCRIPT_CHKSH) $(TEST_SCRIPT_PARA_CHKSH) dummysh.chkexe_:
echo "============================" >> $${log}; \
RUNSERIAL="$(RUNSERIAL)" RUNPARALLEL="$(RUNPARALLEL)" \
srcdir="$(srcdir)" \
- $(SHELL) $(@:.chkexe_=) $(TEST_FLAGS) >> $${log} 2>&1 \
+ $(TIME) $(SHELL) $(@:.chkexe_=) $(TEST_FLAGS) >> $${log} 2>&1 \
&& touch `basename $(@:.chkexe_=.chkexe)` || \
(test $$HDF5_Make_Ignore && echo "*** Error ignored") || \
(cat $${log} && false) || exit 1; \
diff --git a/c++/test/Makefile.in b/c++/test/Makefile.in
index 68d51b1..125bb67 100644
--- a/c++/test/Makefile.in
+++ b/c++/test/Makefile.in
@@ -286,6 +286,7 @@ target_alias = @target_alias@
# Shell commands used in Makefiles
RM = rm -f
CP = cp
+TIME = time
# Some machines need a command to run executables; this is that command
# so that our tests will run.
@@ -714,7 +715,7 @@ $(TEST_PROG_CHKEXE) $(TEST_PROG_PARA_CHKEXE) dummy.chkexe_:
fi; \
echo "============================" >> $${log}; \
srcdir="$(srcdir)" \
- $(RUNTESTS) ./$${tname} $(TEST_FLAGS) >> $${log} 2>&1 \
+ $(TIME) $(RUNTESTS) ./$${tname} $(TEST_FLAGS) >> $${log} 2>&1 \
&& touch $(@:.chkexe_=.chkexe) || \
(test $$HDF5_Make_Ignore && echo "*** Error ignored") || \
(cat $${log} && false) || exit 1; \
@@ -753,7 +754,7 @@ $(TEST_SCRIPT_CHKSH) $(TEST_SCRIPT_PARA_CHKSH) dummysh.chkexe_:
echo "============================" >> $${log}; \
RUNSERIAL="$(RUNSERIAL)" RUNPARALLEL="$(RUNPARALLEL)" \
srcdir="$(srcdir)" \
- $(SHELL) $(@:.chkexe_=) $(TEST_FLAGS) >> $${log} 2>&1 \
+ $(TIME) $(SHELL) $(@:.chkexe_=) $(TEST_FLAGS) >> $${log} 2>&1 \
&& touch `basename $(@:.chkexe_=.chkexe)` || \
(test $$HDF5_Make_Ignore && echo "*** Error ignored") || \
(cat $${log} && false) || exit 1; \