Changeset c5074d2 in flex_extract.git for source/pythontest/TestData/compilejob.test
- Timestamp:
- Oct 9, 2018, 8:42:16 PM (6 years ago)
- Branches:
- master, ctbto, dev
- Children:
- aa275fc
- Parents:
- 0a06607
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/pythontest/TestData/compilejob.test
r0aaeb04 rc5074d2 17 17 ##PBS -q ns 18 18 ##PBS -S /usr/bin/ksh 19 ##PBS -o /scratch/ms/testgroup/testuser/flex_ecmwf.$ Jobname.$Job_ID.out19 ##PBS -o /scratch/ms/testgroup/testuser/flex_ecmwf.${Jobname}.${Job_ID}.out 20 20 # job output is in .ecaccess_DO_NOT_REMOVE 21 21 ##PBS -j oe … … 26 26 set -x 27 27 export VERSION=7.1 28 case $ HOSTin28 case ${HOST} in 29 29 *ecg*) 30 30 module load python … … 43 43 echo ${GROUP} 44 44 echo ${HOME} 45 echo $ HOME| awk -F / '{print $1, $2, $3, $4}'46 export GROUP=`echo $ HOME| awk -F / '{print $4}'`45 echo ${HOME} | awk -F / '{print $1, $2, $3, $4}' 46 export GROUP=`echo ${HOME} | awk -F / '{print $4}'` 47 47 export SCRATCH=/scratch/ms/${GROUP}/${USER} 48 export FLEXPART_ROOT_SCRIPTS= p_root_test_path48 export FLEXPART_ROOT_SCRIPTS=fp_root_test_path 49 49 export MAKEFILE=Makefile.TEST 50 50 ;; 51 51 esac 52 52 53 mkdir -p $ FLEXPART_ROOT_SCRIPTS/flex_extract_v$VERSION54 cd $ FLEXPART_ROOT_SCRIPTS/flex_extract_v$VERSION# if FLEXPART_ROOT is not set this means cd to the home directory55 tar -xvf $ HOME/flex_extract_v$VERSION.tar53 mkdir -p ${FLEXPART_ROOT_SCRIPTS}/flex_extract_v${VERSION} 54 cd ${FLEXPART_ROOT_SCRIPTS}/flex_extract_v${VERSION} # if FLEXPART_ROOT is not set this means cd to the home directory 55 tar -xvf ${HOME}/flex_extract_v${VERSION}.tar 56 56 cd src 57 57 \rm *.o *.mod CONVERT2 58 make -f $ MAKEFILE>flexcompile 2>flexcompile58 make -f ${MAKEFILE} >flexcompile 2>flexcompile 59 59 60 60 ls -l CONVERT2 >>flexcompile 61 61 if [ $? -eq 0 ]; then 62 62 echo 'SUCCESS!' >>flexcompile 63 mail -s flexcompile.$ HOST.$$ $USER<flexcompile63 mail -s flexcompile.${HOST}.$$ ${USER} <flexcompile 64 64 else 65 65 echo Environment: >>flexcompile 66 66 env >> flexcompile 67 mail -s "ERROR! flexcompile.$ HOST.$$" $USER<flexcompile67 mail -s "ERROR! flexcompile.${HOST}.$$" ${USER} <flexcompile 68 68 fi
Note: See TracChangeset
for help on using the changeset viewer.