Ignore:
Timestamp:
Aug 5, 2020, 8:40:33 AM (4 years ago)
Author:
Anne Philipp <anne.philipp@…>
Branches:
master, ctbto, dev
Children:
b4ae1d6
Parents:
0a75335
Message:

updated unit tests

File:
1 moved

Legend:

Unmodified
Added
Removed
  • Testing/Regression/Unit/Testfiles/submitscript.template.test

    rbe6c0a2 r8028176  
    1717##PBS -q np
    1818##PBS -S /usr/bin/ksh
    19 ## -o /scratch/ms/testgroup/testuser/flex_ecmwf.${PBS_JOBID}.out
     19## -o /scratch/ms/testgroup/testuser/flex_ecmwf.$${PBS_JOBID}.out
    2020## job output is in .ecaccess_DO_NOT_REMOVE
    2121##PBS -j oe
     
    2525
    2626set -x
    27 export VERSION=7.1
    28 case ${HOST} in
     27export VERSION=7.1.2
     28case $${HOST} in
    2929  *ecg*)
    30   module load python
    3130  module unload grib_api
    32   module unload eccodes
     31  module unload emos
     32  module load python3
    3333  module load eccodes
    34   module unload emos
    3534  module load emos/455-r64
    36   export PATH=${PATH}:fp_root_test_path/flex_extract_v7.1/source/python
     35  export PATH=$${PATH}:fp_root_test_path/flex_extract_v7.1.2/Source/Python
    3736  ;;
    3837  *cca*)
    3938  module switch PrgEnv-cray PrgEnv-intel
     39  module load python3
    4040  module load eccodes
    41   module load emos
    42   module load python
    43   export SCRATCH=${TMPDIR}
    44   export PATH=${PATH}:fp_root_test_path/flex_extract_v7.1/source/python
     41  module load emos/455-r64
     42  export SCRATCH=$${TMPDIR}
     43  export PATH=$${PATH}:fp_root_test_path/flex_extract_v7.1.2/Source/Python
    4544  ;;
    4645esac
    4746
    48 cd ${SCRATCH}
    49 mkdir -p python$$
    50 cd python$$
     47cd $${SCRATCH}
     48mkdir -p extract$$$$
     49cd extract$$$$
    5150
    5251export CONTROL=CONTROL
    5352
    54 cat >${CONTROL}<<EOF
     53cat >$${CONTROL}<<EOF
     54$control_content
    5555EOF
    5656
    5757
    58 submit.py --controlfile=${CONTROL} --inputdir=./work --outputdir=./work 1> prot 2>&1
     58submit.py --controlfile=$${CONTROL} --inputdir=./work --outputdir=./work 1> prot 2>&1
    5959
    6060if [ $? -eq 0 ] ; then
    6161  l=0
    62   for muser in `grep -i MAILOPS ${CONTROL}`; do
    63       if [ ${l} -gt 0 ] ; then
    64          mail -s flex.${HOST}.$$ ${muser} <prot
     62  for muser in `grep -i MAILOPS $${CONTROL}`; do
     63      if [ $${l} -gt 0 ] ; then
     64         mail -s flex.$${HOST}.$$$$ $${muser} <prot
    6565      fi
    66       l=$((${l}+1))
     66      l=$(($${l}+1))
    6767  done
    6868else
    6969  l=0
    70   for muser in `grep -i MAILFAIL ${CONTROL}`; do
    71       if [ ${l} -gt 0 ] ; then
    72          mail -s "ERROR! flex.${HOST}.$$" ${muser} <prot
     70  for muser in `grep -i MAILFAIL $${CONTROL}`; do
     71      if [ $${l} -gt 0 ] ; then
     72         mail -s "ERROR! flex.$${HOST}.$$$$" $${muser} <prot
    7373      fi
    74       l=$((${l}+1))
     74      l=$(($${l}+1))
    7575  done
    7676fi
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG