source:
issm/oecreview/Archive/27032-27229/ISSM-27147-27148.diff
Last change on this file was 27230, checked in by , 3 years ago | |
---|---|
File size: 12.8 KB |
-
../trunk-jpl/packagers/mac/package-issm-mac-binaries-matlab.sh
144 144 ${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 145 145 146 146 # Check that MATLAB did not exit in error 147 matlabExitedInError=`grep - E "Activation cannot proceed|Error in matlab_run|Illegal use of reserved keyword" matlab.log | wc -l`147 matlabExitedInError=`grep -c -E "Activation cannot proceed|Error in matlab_run|Illegal use of reserved keyword" matlab.log` 148 148 149 149 if [ ${matlabExitedInError} -ne 0 ]; then 150 150 echo "----------MATLAB exited in error!----------" … … 158 158 fi 159 159 160 160 # Check that all tests passed 161 numTestsFailed=`grep -E "FAILED|ERROR" matlab.log | wc -l` 161 sed -i '' "/FAILED TO establish the default connection to the WindowServer/d" matlab.log # First, need to remove WindowServer error message 162 numTestsFailed=`grep -c -E "FAILED|ERROR" matlab.log` 162 163 163 164 if [ ${numTestsFailed} -ne 0 ]; then 164 165 echo "One or more tests FAILED" 166 cat matlab.log 165 167 exit 1 166 168 else 167 169 echo "All tests PASSED" … … 174 176 cd ${ISSM_DIR} 175 177 svn cleanup --remove-ignored --remove-unversioned test # Clean up test directory (before copying to package) 176 178 echo "Copying assets to package: ${PKG}" 177 cp -rf bin examples lib scripts test ${PKG}179 cp -rf bin examples lib scripts share test ${PKG} 178 180 mkdir ${PKG}/execution 179 181 cp packagers/mac/issm-executable_entitlements.plist ${PKG}/bin/entitlements.plist 180 182 echo "Cleaning up unneeded/unwanted files" -
../trunk-jpl/packagers/mac/package-issm-mac-binaries-python-2.sh
142 142 143 143 # Check that Python did not exit in error 144 144 pythonExitCode=`echo $?` 145 pythonExitedInError=`grep - E "Error|Standard exception|Traceback|bad interpreter" python.log | wc -l`145 pythonExitedInError=`grep -c -E "Error|Standard exception|Traceback|bad interpreter" python.log` 146 146 147 147 if [[ ${pythonExitCode} -ne 0 || ${pythonExitedInError} -ne 0 ]]; then 148 148 echo "----------Python exited in error!----------" … … 156 156 fi 157 157 158 158 # Check that all tests passed 159 numTestsFailed=`grep -E "FAILED|ERROR" python.log | wc -l` 159 sed -i '' "/FAILED TO establish the default connection to the WindowServer/d" python.log # First, need to remove WindowServer error message 160 numTestsFailed=`grep -c -E "FAILED|ERROR" python.log` 160 161 161 162 if [ ${numTestsFailed} -ne 0 ]; then 162 163 echo "One or more tests FAILED" 164 cat python.log 163 165 exit 1 164 166 else 165 167 echo "All tests PASSED" … … 172 174 cd ${ISSM_DIR} 173 175 svn cleanup --remove-ignored --remove-unversioned test # Clean up test directory (before copying to package) 174 176 echo "Copying assets to package: ${PKG}" 175 cp -rf bin examples lib scripts test ${PKG}177 cp -rf bin examples lib scripts share test ${PKG} 176 178 mkdir ${PKG}/execution 177 179 cp packagers/mac/issm-executable_entitlements.plist ${PKG}/bin/entitlements.plist 178 180 ${ISSM_DIR}/scripts/py_to_pyc.sh ${PKG}/bin # Compile Python source files -
../trunk-jpl/packagers/mac/package-issm-mac-binaries-python-3.sh
145 145 146 146 # Check that Python did not exit in error 147 147 pythonExitCode=`echo $?` 148 pythonExitedInError=`grep - E "Error|Standard exception|Traceback|bad interpreter" python.log | wc -l`148 pythonExitedInError=`grep -c -E "Error|Standard exception|Traceback|bad interpreter" python.log` 149 149 150 150 if [[ ${pythonExitCode} -ne 0 || ${pythonExitedInError} -ne 0 ]]; then 151 151 echo "----------Python exited in error!----------" … … 159 159 fi 160 160 161 161 # Check that all tests passed 162 numTestsFailed=`grep -E "FAILED|ERROR" python.log | wc -l` 162 sed -i '' "/FAILED TO establish the default connection to the WindowServer/d" python.log # First, need to remove WindowServer error message 163 numTestsFailed=`grep -c -E "FAILED|ERROR" python.log` 163 164 164 165 if [ ${numTestsFailed} -ne 0 ]; then 165 166 echo "One or more tests FAILED" 167 cat python.log 166 168 exit 1 167 169 else 168 170 echo "All tests PASSED" … … 175 177 cd ${ISSM_DIR} 176 178 svn cleanup --remove-ignored --remove-unversioned test # Clean up test directory (before copying to package) 177 179 echo "Copying assets to package: ${PKG}" 178 cp -rf bin examples lib scripts test ${PKG}180 cp -rf bin examples lib scripts share test ${PKG} 179 181 mkdir ${PKG}/execution 180 182 cp packagers/mac/issm-executable_entitlements.plist ${PKG}/bin/entitlements.plist 181 183 ${ISSM_DIR}/scripts/py_to_pyc.sh ${PKG}/bin # Compile Python source files -
../trunk-jpl/packagers/mac/test-issm-mac-binaries-matlab.sh
33 33 34 34 # Check that MATLAB did not exit in error 35 35 matlabExitCode=`echo $?` 36 matlabExitedInError=`grep - E "Activation cannot proceed|license|Error|Warning: Name is nonexistent or not a directory" matlab.log | wc -l`36 matlabExitedInError=`grep -c -E "Activation cannot proceed|license|Error|Warning: Name is nonexistent or not a directory" matlab.log` 37 37 38 38 if [[ ${matlabExitCode} -ne 0 || ${matlabExitedInError} -ne 0 ]]; then 39 39 echo "----------MATLAB exited in error!----------" … … 44 44 fi 45 45 46 46 # Check that all tests passed 47 numTestsFailed=` cat matlab.log | grep -c -e "FAILED|ERROR"`47 numTestsFailed=`grep -c -E "FAILED|ERROR" matlab.log` 48 48 49 49 if [[ ${numTestsFailed} -ne 0 ]]; then 50 50 echo "One or more tests FAILED" -
../trunk-jpl/packagers/mac/test-issm-mac-binaries-python-2.sh
33 33 34 34 # Check that Python did not exit in error 35 35 pythonExitCode=`echo $?` 36 pythonExitedInError=`grep - E "runme.py: error" python.log | wc -l`36 pythonExitedInError=`grep -c -E "runme.py: error" python.log` 37 37 38 38 if [[ ${pythonExitCode} -ne 0 || ${pythonExitedInError} -ne 0 ]]; then 39 39 echo "----------Python exited in error!----------" … … 43 43 fi 44 44 45 45 # Check that all tests passed 46 numTestsFailed=` cat python.log | grep -c -e "FAILED|ERROR"`46 numTestsFailed=`grep -c -E "FAILED|ERROR" python.log` 47 47 48 48 if [[ ${numTestsFailed} -ne 0 ]]; then 49 49 echo "One or more tests FAILED" -
../trunk-jpl/packagers/mac/test-issm-mac-binaries-python-3.sh
33 33 34 34 # Check that Python did not exit in error 35 35 pythonExitCode=`echo $?` 36 pythonExitedInError=`grep - E "runme.py: error" python.log | wc -l`36 pythonExitedInError=`grep -c -E "runme.py: error" python.log` 37 37 38 38 if [[ ${pythonExitCode} -ne 0 || ${pythonExitedInError} -ne 0 ]]; then 39 39 echo "----------Python exited in error!----------" … … 43 43 fi 44 44 45 45 # Check that all tests passed 46 numTestsFailed=` cat python.log | grep -c -e "FAILED|ERROR"`46 numTestsFailed=`grep -c -E "FAILED|ERROR" python.log` 47 47 48 48 if [[ ${numTestsFailed} -ne 0 ]]; then 49 49 echo "One or more tests FAILED" -
../trunk-jpl/packagers/linux/package-issm-linux-binaries-matlab.sh
130 130 ${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 131 131 132 132 # Check that MATLAB did not exit in error 133 matlabExitedInError=`grep - E "Activation cannot proceed|Error in matlab_run|Illegal use of reserved keyword|Invalid MEX-file" matlab.log | wc -l`133 matlabExitedInError=`grep -c -E "Activation cannot proceed|Error in matlab_run|Illegal use of reserved keyword|Invalid MEX-file" matlab.log` 134 134 135 135 if [ ${matlabExitedInError} -ne 0 ]; then 136 136 echo "----------MATLAB exited in error!----------" … … 144 144 fi 145 145 146 146 # Check that all tests passed 147 numTestsFailed=`grep -E "FAILED|ERROR" matlab.log | wc -l` 147 sed -i '' "/FAILED TO establish the default connection to the WindowServer/d" matlab.log # First, need to remove WindowServer error message 148 numTestsFailed=`grep -c -E "FAILED|ERROR" matlab.log` 148 149 149 150 if [ ${numTestsFailed} -ne 0 ]; then 150 151 echo "One or more tests FAILED" … … 161 162 cd ${ISSM_DIR} 162 163 svn cleanup --remove-ignored --remove-unversioned test # Clean up test directory (before copying to package) 163 164 echo "Copying assets to package: ${PKG}" 164 cp -rf bin examples lib scripts test ${PKG}165 cp -rf bin examples lib scripts share test ${PKG} 165 166 mkdir ${PKG}/execution 166 167 echo "Cleaning up unneeded/unwanted files" 167 168 rm -f ${PKG}/bin/generic_static.* # Remove static versions of generic cluster classes -
../trunk-jpl/packagers/linux/package-issm-linux-binaries-python-2.sh
129 129 130 130 # Check that Python did not exit in error 131 131 pythonExitCode=`echo $?` 132 pythonExitedInError=`grep - E "Error|Standard exception|Traceback|bad interpreter" python.log | wc -l`132 pythonExitedInError=`grep -c -E "Error|Standard exception|Traceback|bad interpreter" python.log` 133 133 134 134 if [[ ${pythonExitCode} -ne 0 || ${pythonExitedInError} -ne 0 ]]; then 135 135 echo "----------Python exited in error!----------" … … 143 143 fi 144 144 145 145 # Check that all tests passed 146 numTestsFailed=`grep -E "FAILED|ERROR" python.log | wc -l` 146 sed -i '' "/FAILED TO establish the default connection to the WindowServer/d" python.log # First, need to remove WindowServer error message 147 numTestsFailed=`grep -c -E "FAILED|ERROR" python.log` 147 148 148 149 if [[ ${numTestsFailed} -ne 0 ]]; then 149 150 150 echo "One or more tests FAILED" 151 cat python.log 151 152 exit 1 152 153 else 153 154 echo "All tests PASSED" … … 160 161 cd ${ISSM_DIR} 161 162 svn cleanup --remove-ignored --remove-unversioned test # Clean up test directory (before copying to package) 162 163 echo "Copying assets to package: ${PKG}" 163 cp -rf bin examples lib scripts test ${PKG}164 cp -rf bin examples lib scripts share test ${PKG} 164 165 mkdir ${PKG}/execution 165 166 ${ISSM_DIR}/scripts/py_to_pyc.sh ${PKG}/bin # Compile Python source files 166 167 echo "Cleaning up unneeded/unwanted files" -
../trunk-jpl/packagers/linux/package-issm-linux-binaries-python-3.sh
132 132 133 133 # Check that Python did not exit in error 134 134 pythonExitCode=`echo $?` 135 pythonExitedInError=`grep - E "Error|Standard exception|Traceback|bad interpreter" python.log | wc -l`135 pythonExitedInError=`grep -c -E "Error|Standard exception|Traceback|bad interpreter" python.log` 136 136 137 137 if [[ ${pythonExitCode} -ne 0 || ${pythonExitedInError} -ne 0 ]]; then 138 138 echo "----------Python exited in error!----------" … … 146 146 fi 147 147 148 148 # Check that all tests passed 149 numTestsFailed=`grep -E "FAILED|ERROR" python.log | wc -l` 149 sed -i '' "/FAILED TO establish the default connection to the WindowServer/d" python.log # First, need to remove WindowServer error message 150 numTestsFailed=`grep -c -E "FAILED|ERROR" python.log` 150 151 151 152 if [[ ${numTestsFailed} -ne 0 ]]; then 152 153 echo "One or more tests FAILED" … … 163 164 cd ${ISSM_DIR} 164 165 svn cleanup --remove-ignored --remove-unversioned test # Clean up test directory (before copying to package) 165 166 echo "Copying assets to package: ${PKG}" 166 cp -rf bin examples lib scripts test ${PKG}167 cp -rf bin examples lib scripts share test ${PKG} 167 168 mkdir ${PKG}/execution 168 169 ${ISSM_DIR}/scripts/py_to_pyc.sh ${PKG}/bin # Compile Python source files 169 170 echo "Cleaning up unneeded/unwanted files"
Note:
See TracBrowser
for help on using the repository browser.