Ignore:
Timestamp:
08/25/22 16:50:29 (3 years ago)
Author:
Mathieu Morlighem
Message:

merged trunk-jpl and trunk for revision 27230

Location:
issm/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk

  • issm/trunk/packagers/linux/package-issm-linux-binaries-matlab.sh

    r27035 r27232  
    112112cp ${LIBGFORTRAN} ${LIBGFORTRAN_DIST} 2> /dev/null
    113113
     114echo "Moving GSHHG assets to share/"
     115if [ -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
     118else
     119        echo "GSHHG not found"
     120        exit 1
     121fi
     122
     123echo "Moving PROJ assets to share/"
     124if [ -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
     127else
     128        echo "PROJ not found"
     129        exit 1
     130fi
     131
    114132# Run tests
    115133if [ ${skip_tests} -eq 0 ]; then
     
    119137
    120138        # 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.log
     139        ${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
    122140
    123141        # 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`
    125143
    126144        if [ ${matlabExitedInError} -ne 0 ]; then
     
    136154
    137155        # 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`
    139158
    140159        if [ ${numTestsFailed} -ne 0 ]; then
    141160                echo "One or more tests FAILED"
     161                cat matlab.log
    142162                exit 1
    143163        else
     
    152172svn cleanup --remove-ignored --remove-unversioned test # Clean up test directory (before copying to package)
    153173echo "Copying assets to package: ${PKG}"
    154 cp -rf bin examples lib scripts test ${PKG}
     174cp -rf bin examples lib scripts share test ${PKG}
    155175mkdir ${PKG}/execution
    156176echo "Cleaning up unneeded/unwanted files"
Note: See TracChangeset for help on using the changeset viewer.