Changeset 25197


Ignore:
Timestamp:
07/02/20 11:51:34 (5 years ago)
Author:
jdquinn
Message:

BUG: Uncommented required sections.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/scripts/test-issm-linux-binaries-solid_earth.sh

    r25196 r25197  
    1818
    1919cd ${INSTALL_DIR}
    20 # rm -rf ${PACKAGE_NAME}
    21 # tar -zxvf ${TARBALL}
     20rm -rf ${PACKAGE_NAME}
     21tar -zxvf ${TARBALL}
    2222cd ${PACKAGE_NAME}/test/NightlyRun
    2323
    24 # # Check that MATLAB tests run
    25 # echo "Running MATLAB tests"
    26 # rm matlab.log 2> /dev/null
     24# Check that MATLAB tests run
     25echo "Running MATLAB tests"
     26rm matlab.log 2> /dev/null
    2727
    28 # # Run MATLAB tests redirecting output to logfile and suppressing output to console
    29 # ${MATLAB_PATH}/bin/matlab -nojvm -nosplash -r "try, addpath ../../bin; addpath ../../lib; runme(${MATLAB_NROPTIONS}); exit; catch me,fprintf('%s',getReport(me)); exit; end" -logfile matlab.log &> /dev/null
     28# Run MATLAB tests redirecting output to logfile and suppressing output to console
     29${MATLAB_PATH}/bin/matlab -nojvm -nosplash -r "try, addpath ../../bin; addpath ../../lib; runme(${MATLAB_NROPTIONS}); exit; catch me,fprintf('%s',getReport(me)); exit; end" -logfile matlab.log &> /dev/null
    3030
    31 # # Check that MATLAB did not exit in error
    32 # matlabExitCode=`echo $?`
    33 # matlabExitedInError=`grep -E "Activation cannot proceed|license|Error" matlab.log | wc -l`
     31# Check that MATLAB did not exit in error
     32matlabExitCode=`echo $?`
     33matlabExitedInError=`grep -E "Activation cannot proceed|license|Error" matlab.log | wc -l`
    3434
    35 # if [[ ${matlabExitCode} -ne 0 || ${matlabExitedInError} -ne 0 ]]; then
    36 #       echo "----------MATLAB exited in error!----------"
    37 #       cat matlab.log
    38 #       echo "-----------End of matlab.log-----------"
    39 #       exit 1
    40 # fi
     35if [[ ${matlabExitCode} -ne 0 || ${matlabExitedInError} -ne 0 ]]; then
     36        echo "----------MATLAB exited in error!----------"
     37        cat matlab.log
     38        echo "-----------End of matlab.log-----------"
     39        exit 1
     40fi
    4141
    42 # # Check that all MATLAB tests passed
    43 # numMatlabTestsFailed=`cat matlab.log | grep -c -e "FAILED|ERROR"`
     42# Check that all MATLAB tests passed
     43numMatlabTestsFailed=`cat matlab.log | grep -c -e "FAILED|ERROR"`
    4444
    45 # if [[ ${numMatlabTestsFailed} -ne 0 ]]; then
    46 #       echo "One or more MATLAB tests FAILED"
    47 #       exit 1
    48 # else
    49 #       echo "All MATLAB tests PASSED"
    50 # fi
     45if [[ ${numMatlabTestsFailed} -ne 0 ]]; then
     46        echo "One or more MATLAB tests FAILED"
     47        exit 1
     48else
     49        echo "All MATLAB tests PASSED"
     50fi
    5151
    5252# Check that Python tests run
Note: See TracChangeset for help on using the changeset viewer.