Changeset 25197
- Timestamp:
- 07/02/20 11:51:34 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/scripts/test-issm-linux-binaries-solid_earth.sh
r25196 r25197 18 18 19 19 cd ${INSTALL_DIR} 20 #rm -rf ${PACKAGE_NAME}21 #tar -zxvf ${TARBALL}20 rm -rf ${PACKAGE_NAME} 21 tar -zxvf ${TARBALL} 22 22 cd ${PACKAGE_NAME}/test/NightlyRun 23 23 24 # #Check that MATLAB tests run25 #echo "Running MATLAB tests"26 #rm matlab.log 2> /dev/null24 # Check that MATLAB tests run 25 echo "Running MATLAB tests" 26 rm matlab.log 2> /dev/null 27 27 28 # #Run MATLAB tests redirecting output to logfile and suppressing output to console29 #${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/null28 # 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 30 30 31 # #Check that MATLAB did not exit in error32 #matlabExitCode=`echo $?`33 #matlabExitedInError=`grep -E "Activation cannot proceed|license|Error" matlab.log | wc -l`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` 34 34 35 #if [[ ${matlabExitCode} -ne 0 || ${matlabExitedInError} -ne 0 ]]; then36 #echo "----------MATLAB exited in error!----------"37 #cat matlab.log38 #echo "-----------End of matlab.log-----------"39 #exit 140 #fi35 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 41 41 42 # #Check that all MATLAB tests passed43 #numMatlabTestsFailed=`cat matlab.log | grep -c -e "FAILED|ERROR"`42 # Check that all MATLAB tests passed 43 numMatlabTestsFailed=`cat matlab.log | grep -c -e "FAILED|ERROR"` 44 44 45 #if [[ ${numMatlabTestsFailed} -ne 0 ]]; then46 #echo "One or more MATLAB tests FAILED"47 #exit 148 #else49 #echo "All MATLAB tests PASSED"50 #fi45 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 51 51 52 52 # Check that Python tests run
Note:
See TracChangeset
for help on using the changeset viewer.