diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2013-10-02 21:38:25 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2013-10-02 21:38:25 (GMT) |
commit | 738f1f0bd661daa07326b51c43c444cca7546f32 (patch) | |
tree | 2c02b810f4ab46633175ef22bbeb90bbecfd6fbc /bin/cmakehdf5 | |
parent | 80ff6d8fee7abfb61519d122247f00a325091d61 (diff) | |
download | hdf5-738f1f0bd661daa07326b51c43c444cca7546f32.zip hdf5-738f1f0bd661daa07326b51c43c444cca7546f32.tar.gz hdf5-738f1f0bd661daa07326b51c43c444cca7546f32.tar.bz2 |
[svn-r24252] add log vars
Diffstat (limited to 'bin/cmakehdf5')
-rwxr-xr-x | bin/cmakehdf5 | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/bin/cmakehdf5 b/bin/cmakehdf5 index 6339698..1f3b21e 100755 --- a/bin/cmakehdf5 +++ b/bin/cmakehdf5 @@ -14,6 +14,8 @@ DPRINT=: progname=`basename $0` # program name cminfile="cmakemin.$$" # Cmake minimum file cfgfile=$progname.$$ # configure file +ctest_log=ctest.log # output of ctest script +install_log=install.log # output of installation $DPRINT $cfgfile # Remove temporary generated files if exit 0 @@ -36,7 +38,8 @@ TIMESTAMP # Explain what and where log files are. cat <<EOF -ctest.log: output of ctest script. +$ctest_log: output of ctest script. +$install_log: output of installation Log files will be stored in Testing/Temporary: LastConfigure_<timestamp>.log: output of configure LastBuild_<timestamp>.log: output of build @@ -230,6 +233,7 @@ if(NOT LOCAL_MEMCHECK_TEST) ERROR_VARIABLE cpackLog.err ) file(WRITE ${CTEST_BINARY_DIRECTORY}/cpack.log "${cpackLog.err}" "${cpackLog}") + message ("installing with ${CPACK_PACKAGE_FILE_NAME} in ./usr") endif(NOT LOCAL_MEMCHECK_TEST) #----------------------------------------------------------------------------- @@ -238,7 +242,15 @@ EOF # Run ctest -ctest -S $cfgfile -C Release -V -O ctest.log +ctest -S $cfgfile -C Release -V -O $ctest_log +exit_code=$? +if [ $exit_code = 0 ]; then + echo CTest script completed without error +else + echo Error encountered CTest script +fi +echo installing... +./*.sh > $install_log exit_code=$? if [ $exit_code = 0 ]; then echo Complete without error |