diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2007-04-09 20:07:48 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2007-04-09 20:07:48 (GMT) |
commit | bd643766e74e50cc5dee0620559c2d01f195d89a (patch) | |
tree | b197a87c3f8e6fd686089b7232a0a1cdb03eb019 | |
parent | bf0ab77972958bc150935677c27dcb82dd4242e0 (diff) | |
download | hdf5-bd643766e74e50cc5dee0620559c2d01f195d89a.zip hdf5-bd643766e74e50cc5dee0620559c2d01f195d89a.tar.gz hdf5-bd643766e74e50cc5dee0620559c2d01f195d89a.tar.bz2 |
[svn-r13619] Purpose:
bug fix.
Description:
SunOS does not support h5c++ -o a.out libapph5c++.a.
Skip this test if I am in a SunOS system.
Tested:
osage and sol.
-rwxr-xr-x | c++/examples/testh5c++.sh.in | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/c++/examples/testh5c++.sh.in b/c++/examples/testh5c++.sh.in index 4cc25e6..3e0c3bd 100755 --- a/c++/examples/testh5c++.sh.in +++ b/c++/examples/testh5c++.sh.in @@ -33,6 +33,10 @@ DIFF='diff -c' nerrors=0 verbose=yes +# setup my machine information. +myos=`uname -s` +myhostnama=`uname -n` + # The build (current) directory might be different than the source directory. if test -z "$srcdir"; then srcdir=. @@ -103,6 +107,7 @@ cat > $prog1 <<EOF int sub1(void) { cout << "in sub1" << endl; + return 0; } EOF @@ -124,6 +129,7 @@ cat > $prog2 <<EOF int sub2(void) { cout << "in sub2" << endl; + return 0; } EOF @@ -228,17 +234,22 @@ TOOLTEST $appmain_o $prog1_o $prog2_o # Build external library, then link with it. echo "***"Build external library and link with it. TOOLTEST -c $prog1 $prog2 -rm $applib +rm -f $applib $AR cru $applib $prog1_o $prog2_o $RANLIB $applib TOOLTEST $appmain $applib TOOLTEST $appmain_o $applib # This is peculiar but should work. (See bug ID 729) TOOLTEST -c $hdf5main -rm $applib +rm -f $applib $AR cru $applib $hdf5main_o $RANLIB $applib -TOOLTEST -o a.out $applib +# SunOS does not support this. Skip it. +if [ $myos = SunOS ]; then + SKIP -o a.out $applib +else + TOOLTEST -o a.out $applib +fi # Just cpp, no compile, no link. echo "***"Just cpp, no compile, no link. |