summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xc++/examples/run-c++-ex.sh.in15
-rwxr-xr-xexamples/run-c-ex.sh.in23
-rwxr-xr-xfortran/examples/run-fortran-ex.sh.in22
-rwxr-xr-xhl/c++/examples/run-hlc++-ex.sh.in10
-rwxr-xr-xhl/examples/run-hlc-ex.sh.in28
-rwxr-xr-xhl/fortran/examples/run-hlfortran-ex.sh.in9
-rw-r--r--release_docs/RELEASE.txt2
7 files changed, 83 insertions, 26 deletions
diff --git a/c++/examples/run-c++-ex.sh.in b/c++/examples/run-c++-ex.sh.in
index bd7106e..21db584 100755
--- a/c++/examples/run-c++-ex.sh.in
+++ b/c++/examples/run-c++-ex.sh.in
@@ -43,17 +43,18 @@ H5TOOL_BIN="${prefix}/bin/${H5TOOL}" # The path of the tool binary
#### Run test ####
RunTest()
{
+ TEST_EXEC=$1
Test=$1".cpp"
echo
echo "################# $1 #################"
- ${H5TOOL_BIN} $Test
+ ${H5TOOL_BIN} -o $TEST_EXEC $Test
if [ $? -ne 0 ]
then
echo "messed up compiling $Test"
exit 1
fi
- ./a.out
+ ./$TEST_EXEC
}
@@ -64,12 +65,19 @@ RunTest()
if [ $? -eq 0 ]
then
if (RunTest create &&\
+ rm create &&\
RunTest readdata &&\
+ rm readdata &&\
RunTest writedata &&\
+ rm writedata &&\
RunTest compound &&\
+ rm compound &&\
RunTest extend_ds &&\
+ rm extend_ds &&\
RunTest chunks &&\
- RunTest h5group); then
+ rm chunks &&\
+ RunTest h5group &&\
+ rm h5group); then
EXIT_VALUE=${EXIT_SUCCESS}
else
EXIT_VALUE=${EXIT_FAILURE}
@@ -77,7 +85,6 @@ then
fi
# Cleanup
-rm a.out
rm *.o
rm *.h5
echo
diff --git a/examples/run-c-ex.sh.in b/examples/run-c-ex.sh.in
index 2bc1cd4..0627eb8 100755
--- a/examples/run-c-ex.sh.in
+++ b/examples/run-c-ex.sh.in
@@ -47,17 +47,18 @@ H5TOOL_BIN="${prefix}/bin/${H5TOOL}" # The path of the tool binary
#### Run test ####
RunTest()
{
+ TEST_EXEC=$1
Test=$1".c"
echo
echo "################# $1 #################"
- ${H5TOOL_BIN} $Test
+ ${H5TOOL_BIN} -o $TEST_EXEC $Test
if [ $? -ne 0 ]
then
echo "messed up compiling $Test"
exit 1
fi
- ./a.out
+ ./$TEST_EXEC
}
@@ -78,20 +79,35 @@ fi
if [ $? -eq 0 ]
then
if (RunTest h5_write &&\
+ rm h5_write &&\
RunTest h5_read &&\
+ rm h5_read &&\
RunTest h5_extend_write &&\
+ rm h5_extend_write &&\
RunTest h5_chunk_read &&\
+ rm h5_chunk_read &&\
RunTest h5_compound &&\
+ rm h5_compound &&\
RunTest h5_group &&\
+ rm h5_group &&\
RunTest h5_select &&\
+ rm h5_select &&\
RunTest h5_attribute &&\
+ rm h5_attribute &&\
RunTest h5_mount &&\
+ rm h5_mount &&\
RunTest h5_reference &&\
+ rm h5_reference &&\
RunTest h5_drivers &&\
+ rm h5_drivers &&\
RunTest h5_ref2reg &&\
+ rm h5_ref2reg &&\
RunTest h5_extlink &&\
+ rm h5_extlink &&\
RunTest h5_elink_unix2win &&\
- RunTest h5_shared_mesg); then
+ rm h5_elink_unix2win &&\
+ RunTest h5_shared_mesg &&\
+ rm h5_shared_mesg); then
EXIT_VALUE=${EXIT_SUCCESS}
else
EXIT_VALUE=${EXIT_FAILURE}
@@ -99,7 +115,6 @@ then
fi
# Cleanup
-rm a.out
rm *.o
rm *.h5
rm -rf red blue u2w
diff --git a/fortran/examples/run-fortran-ex.sh.in b/fortran/examples/run-fortran-ex.sh.in
index b29eaaf..2ab4aef 100755
--- a/fortran/examples/run-fortran-ex.sh.in
+++ b/fortran/examples/run-fortran-ex.sh.in
@@ -49,17 +49,18 @@ H5TOOL_BIN="${prefix}/bin/${H5TOOL}" # The path of the tool binary
#### Run test ####
RunTest()
{
+ TEST_EXEC=$1
Test=$1".f90"
echo
echo "################# $1 #################"
- ${H5TOOL_BIN} $Test
+ ${H5TOOL_BIN} -o $TEST_EXEC $Test
if [ $? -ne 0 ]
then
echo "messed up compiling $Test"
exit 1
fi
- ./a.out
+ ./$TEST_EXEC
}
@@ -70,19 +71,33 @@ RunTest()
if [ $? -eq 0 ]
then
if (RunTest dsetexample &&\
+ rm dsetexample &&\
RunTest fileexample &&\
+ rm fileexample &&\
RunTest rwdsetexample &&\
+ rm rwdsetexample &&\
RunTest attrexample &&\
+ rm attrexample &&\
RunTest groupexample &&\
+ rm groupexample &&\
RunTest grpsexample &&\
+ rm grpsexample &&\
RunTest grpdsetexample &&\
+ rm grpdsetexample &&\
RunTest hyperslab &&\
+ rm hyperslab &&\
RunTest selectele &&\
+ rm selectele &&\
RunTest grpit &&\
+ rm grpit &&\
RunTest refobjexample &&\
+ rm refobjexample &&\
RunTest refregexample &&\
+ rm refregexample &&\
RunTest mountexample &&\
- RunTest compound); then
+ rm mountexample &&\
+ RunTest compound &&\
+ rm compound); then
EXIT_VALUE=${EXIT_SUCCESS}
else
EXIT_VALUE=${EXIT_FAILURE}
@@ -90,7 +105,6 @@ then
fi
# Cleanup
-rm a.out
rm *.o
rm *.h5
echo
diff --git a/hl/c++/examples/run-hlc++-ex.sh.in b/hl/c++/examples/run-hlc++-ex.sh.in
index d43606e..b800981 100755
--- a/hl/c++/examples/run-hlc++-ex.sh.in
+++ b/hl/c++/examples/run-hlc++-ex.sh.in
@@ -42,17 +42,18 @@ H5TOOL_BIN="${prefix}/bin/${H5TOOL}" # The path of the tool binary
#### Run test ####
RunTest()
{
+ TEST_EXEC=$1
Test=$1".cpp"
echo
echo "################# $1 #################"
- ${H5TOOL_BIN} $Test
+ ${H5TOOL_BIN} -o $TEST_EXEC $Test
if [ $? -ne 0 ]
then
echo "messed up compiling $Test"
exit 1
fi
- ./a.out
+ ./$TEST_EXEC
}
@@ -63,7 +64,9 @@ RunTest()
if [ $? -eq 0 ]
then
if (RunTest ptExampleFL &&\
- RunTest ptExampleVL); then
+ rm ptExampleFL &&\
+ RunTest ptExampleVL &&\
+ rm ptExampleVL); then
EXIT_VALUE=${EXIT_SUCCESS}
else
EXIT_VALUE=${EXIT_FAILURE}
@@ -71,7 +74,6 @@ then
fi
# Cleanup
-rm a.out
rm *.o
rm *.h5
echo
diff --git a/hl/examples/run-hlc-ex.sh.in b/hl/examples/run-hlc-ex.sh.in
index 86c6276..ae3fcdb 100755
--- a/hl/examples/run-hlc-ex.sh.in
+++ b/hl/examples/run-hlc-ex.sh.in
@@ -47,17 +47,18 @@ H5TOOL_BIN="${prefix}/bin/${H5TOOL}" # The path of the tool binary
#### Run test ####
RunTest()
{
+ TEST_EXEC=$1
Test=$1".c"
echo
echo "################# $1 #################"
- ${H5TOOL_BIN} $Test
+ ${H5TOOL_BIN} -o $TEST_EXEC $Test
if [ $? -ne 0 ]
then
echo "messed up compiling $Test"
exit 1
fi
- ./a.out
+ ./$TEST_EXEC
}
@@ -68,25 +69,45 @@ RunTest()
if [ $? -eq 0 ]
then
if (RunTest ex_lite1 &&\
+ rm ex_lite1 &&\
RunTest ex_lite2 &&\
+ rm ex_lite2 &&\
RunTest ex_lite3 &&\
+ rm ex_lite3 &&\
RunTest ptExampleFL &&\
+ rm ptExampleFL &&\
RunTest ptExampleVL &&\
+ rm ptExampleVL &&\
RunTest ex_image1 &&\
+ rm ex_image1 &&\
RunTest ex_image2 &&\
+ rm ex_image2 &&\
RunTest ex_table_01 &&\
+ rm ex_table_01 &&\
RunTest ex_table_02 &&\
+ rm ex_table_02 &&\
RunTest ex_table_03 &&\
+ rm ex_table_03 &&\
RunTest ex_table_04 &&\
+ rm ex_table_04 &&\
RunTest ex_table_05 &&
+ rm ex_table_05 &&
RunTest ex_table_06 &&\
+ rm ex_table_06 &&\
RunTest ex_table_07 &&\
+ rm ex_table_07 &&\
RunTest ex_table_08 &&\
+ rm ex_table_08 &&\
RunTest ex_table_09 &&\
+ rm ex_table_09 &&\
RunTest ex_table_10 &&\
+ rm ex_table_10 &&\
RunTest ex_table_11 &&\
+ rm ex_table_11 &&\
RunTest ex_table_12 &&\
- RunTest ex_ds1); then
+ rm ex_table_12 &&\
+ RunTest ex_ds1 &&\
+ rm ex_ds1); then
EXIT_VALUE=${EXIT_SUCCESS}
else
EXIT_VALUE=${EXIT_FAILURE}
@@ -94,7 +115,6 @@ then
fi
# Cleanup
-rm a.out
rm *.o
rm *.h5
echo
diff --git a/hl/fortran/examples/run-hlfortran-ex.sh.in b/hl/fortran/examples/run-hlfortran-ex.sh.in
index 364b438..919771d 100755
--- a/hl/fortran/examples/run-hlfortran-ex.sh.in
+++ b/hl/fortran/examples/run-hlfortran-ex.sh.in
@@ -48,17 +48,18 @@ H5TOOL_BIN="${prefix}/bin/${H5TOOL}" # The path of the tool binary
#### Run test ####
RunTest()
{
+ TEST_EXEC=$1
Test=$1".f90"
echo
echo "################# $1 #################"
- ${H5TOOL_BIN} $Test
+ ${H5TOOL_BIN} -o $TEST_EXEC $Test
if [ $? -ne 0 ]
then
echo "messed up compiling $Test"
exit 1
fi
- ./a.out
+ ./$TEST_EXEC
}
@@ -68,7 +69,8 @@ RunTest()
# Run tests
if [ $? -eq 0 ]
then
- if (RunTest exlite); then
+ if (RunTest exlite &&\
+ rm exlite); then
EXIT_VALUE=${EXIT_SUCCESS}
else
EXIT_VALUE=${EXIT_FAILURE}
@@ -76,7 +78,6 @@ then
fi
# Cleanup
-rm a.out
rm *.o
rm *.h5
echo
diff --git a/release_docs/RELEASE.txt b/release_docs/RELEASE.txt
index 4dc260c..d0811a6 100644
--- a/release_docs/RELEASE.txt
+++ b/release_docs/RELEASE.txt
@@ -839,8 +839,6 @@ Known Problems
==============
* --with-mpe configure option does not work with Mpich2. AKC - 2011/03/10)
-* examples/run-all-ex.sh does not work on Cygwin. (NAF - 2011/02/11)
-
* While working on the 1.8.6 release of HDF5, a bug was discovered that can
occur when reading from a dataset in parallel shortly after it has been
written to collectively. The issue was exposed by a new test in the parallel