- Timestamp:
- 08/25/22 16:50:29 (3 years ago)
- Location:
- issm/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk
-
issm/trunk/packagers/linux/package-issm-linux-binaries-matlab.sh
r27035 r27232 112 112 cp ${LIBGFORTRAN} ${LIBGFORTRAN_DIST} 2> /dev/null 113 113 114 echo "Moving GSHHG assets to share/" 115 if [ -d ${ISSM_DIR}/externalpackages/gmt/install/share/coast ]; then 116 mkdir ${ISSM_DIR}/share 2> /dev/null 117 cp -R ${ISSM_DIR}/externalpackages/gmt/install/share/coast ${ISSM_DIR}/share 118 else 119 echo "GSHHG not found" 120 exit 1 121 fi 122 123 echo "Moving PROJ assets to share/" 124 if [ -d ${ISSM_DIR}/externalpackages/proj/install/share/proj ]; then 125 mkdir ${ISSM_DIR}/share 2> /dev/null 126 cp -R ${ISSM_DIR}/externalpackages/proj/install/share/proj ${ISSM_DIR}/share 127 else 128 echo "PROJ not found" 129 exit 1 130 fi 131 114 132 # Run tests 115 133 if [ ${skip_tests} -eq 0 ]; then … … 119 137 120 138 # Run tests, redirecting output to logfile and suppressing output to console 121 ${MATLAB_PATH}/bin/matlab -nojvm -nosplash -nojvm -r "try, addpath ${ISSM_DIR}/bin ${ISSM_DIR}/lib ; runme(${MATLAB_NROPTIONS}); exit; catch me,fprintf('%s',getReport(me)); exit; end" &> matlab.log139 ${MATLAB_PATH}/bin/matlab -nojvm -nosplash -nojvm -r "try, addpath ${ISSM_DIR}/bin ${ISSM_DIR}/lib ${ISSM_DIR}/share; runme(${MATLAB_NROPTIONS}); exit; catch me,fprintf('%s',getReport(me)); exit; end" &> matlab.log 122 140 123 141 # Check that MATLAB did not exit in error 124 matlabExitedInError=`grep - E "Activation cannot proceed|Error in matlab_run|Illegal use of reserved keyword" matlab.log | wc -l`142 matlabExitedInError=`grep -c -E "Activation cannot proceed|Error in matlab_run|Illegal use of reserved keyword|Invalid MEX-file" matlab.log` 125 143 126 144 if [ ${matlabExitedInError} -ne 0 ]; then … … 136 154 137 155 # Check that all tests passed 138 numTestsFailed=`cat matlab.log | grep -c -e "FAILED|ERROR"` 156 sed -i "/FAILED TO establish the default connection to the WindowServer/d" matlab.log # First, need to remove WindowServer error message 157 numTestsFailed=`grep -c -E "FAILED|ERROR" matlab.log` 139 158 140 159 if [ ${numTestsFailed} -ne 0 ]; then 141 160 echo "One or more tests FAILED" 161 cat matlab.log 142 162 exit 1 143 163 else … … 152 172 svn cleanup --remove-ignored --remove-unversioned test # Clean up test directory (before copying to package) 153 173 echo "Copying assets to package: ${PKG}" 154 cp -rf bin examples lib scripts test ${PKG}174 cp -rf bin examples lib scripts share test ${PKG} 155 175 mkdir ${PKG}/execution 156 176 echo "Cleaning up unneeded/unwanted files"
Note:
See TracChangeset
for help on using the changeset viewer.