diff options
author | Larry Knox <lrknox@hdfgroup.org> | 2011-04-12 17:58:57 (GMT) |
---|---|---|
committer | Larry Knox <lrknox@hdfgroup.org> | 2011-04-12 17:58:57 (GMT) |
commit | 60abcfd2e85c005266afb82f755f773808203c6c (patch) | |
tree | 2ab10a6ca9c08e8f243ffea6a3b3a7ab331ad19f /c++ | |
parent | e4c6ef2f06a9e85ab7485eaab6b4b5fad699c8e3 (diff) | |
download | hdf5-60abcfd2e85c005266afb82f755f773808203c6c.zip hdf5-60abcfd2e85c005266afb82f755f773808203c6c.tar.gz hdf5-60abcfd2e85c005266afb82f755f773808203c6c.tar.bz2 |
[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
Diffstat (limited to 'c++')
-rwxr-xr-x | c++/examples/run-c++-ex.sh.in | 15 |
1 files changed, 11 insertions, 4 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 |