mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-30 15:32:37 +08:00
[svn-r20482]
Fixed issue HDFFV-5866 (BZ 2156). Changed scripts to run examples to use specific names for compiled executable files instead of a.out, which did not work on Cywin as it produces a.exe by default. Removed issue from known problems section of RELEASE.txt. Tested with Cygwin 1.7.8 on Windows 7. This line, and those below, will be ignored-- M release_docs/RELEASE.txt M hl/c++/examples/run-hlc++-ex.sh.in M hl/fortran/examples/run-hlfortran-ex.sh.in M hl/examples/run-hlc-ex.sh.in M c++/examples/run-c++-ex.sh.in M fortran/examples/run-fortran-ex.sh.in M examples/run-c-ex.sh.in
This commit is contained in:
parent
e4c6ef2f06
commit
60abcfd2e8
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user