- Timestamp:
- 08/31/21 09:49:57 (3 years ago)
- Location:
- XIOS/dev/dev_ym/XIOS_COUPLING/xios_test_suite
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_ym/XIOS_COUPLING/xios_test_suite/COMPILE/compile_jeanzay
r1945 r2210 1 1 #!/bin/bash 2 set -x2 #set -x 3 3 export revision=$(svn info --show-item revision .. 2>&1) 4 4 python config_compile.py -
XIOS/dev/dev_ym/XIOS_COUPLING/xios_test_suite/ENV/jeanzay.env
r1944 r2210 1 module load subversion 2 module load cmake 3 module load python/3.7.5 1 module load subversion 2>&1 2 module load cmake 2>&1 3 module load python/3.7.5 2>&1 4 module load cdo/1.9.8 2>&1 4 5 5 6 CHMOD() { setfacl -m u::rwX,u:rpsl565:rwX,u:rpsl954:rwX,u:rgzi016:rwX,g::r-X,o::r-X,m::rwX "$@" ;} … … 12 13 13 14 export ref_location=/gpfswork/rech/psl/rpsl954/reference_dir 15 export ref_location=/gpfswork/rech/psl/uim55ri/CI/reference/XIOS_COUPLING 14 16 export ref_file=reference.tar.gz 15 17 16 18 export PYTHON=python 17 export user_account=" wuu@cpu"19 export user_account="psl@cpu" 18 20 19 21 mkdir -p $xios_test_suite_repository ; CHMOD $xios_test_suite_repository -
XIOS/dev/dev_ym/XIOS_COUPLING/xios_test_suite/TEST_SUITE/my_run.sh
r2140 r2210 44 44 jobid="${cmd//[!0-9]/}" 45 45 i=0 46 output=$(squeue -u rpsl954| grep ${jobid})46 output=$(squeue -u uim55ri | grep ${jobid}) 47 47 while [ ! -z "$output" ] 48 48 do … … 50 50 sleep 30 51 51 ((i+=30)) 52 output=$(squeue -u rpsl954 | grep ${jobid}) 52 if [[ $i -eq 300 ]]; then 53 output=$(squeue -u uim55ri | grep ${jobid}) 54 scancel $jobid 55 break 56 fi 53 57 done 54 58 fi -
XIOS/dev/dev_ym/XIOS_COUPLING/xios_test_suite/TEST_SUITE/run_test
r2036 r2210 18 18 echo "#SBATCH --account="$user_account >> compile.sh 19 19 echo "#SBATCH --job-name=XIOS_rev"$svnR >> compile.sh 20 echo "#SBATCH --exclusive " >> compile.sh 20 21 echo "cd \${SLURM_SUBMIT_DIR}">> compile.sh 21 22 echo "ulimit -c 0">> compile.sh … … 24 25 cmd=$(sbatch compile.sh) 25 26 jobid="${cmd//[!0-9]/}" 26 output=$(squeue -u rpsl954| grep ${jobid})27 output=$(squeue -u uim55ri | grep ${jobid}) 27 28 while [ ! -z "$output" ] 28 29 do … … 30 31 sleep 30 31 32 ((i+=30)) 32 output=$(squeue -u rpsl954| grep ${jobid})33 output=$(squeue -u uim55ri | grep ${jobid}) 33 34 done 34 35 -
XIOS/dev/dev_ym/XIOS_COUPLING/xios_test_suite/TEST_SUITE/step1.py
r2192 r2210 85 85 fh.write("#SBATCH -t 00:10:00\n") 86 86 fh.write("#SBATCH --account="+user_acct+"\n") 87 fh.write("#SBATCH --exclusive\n") 87 88 fh.write("ulimit -c 0\n") 88 89 fh.write("cd ${SLURM_SUBMIT_DIR}\n") … … 146 147 fh.write("#SBATCH --account="+user_acct+"\n") 147 148 fh.write("#SBATCH --job-name=XIOS_rev"+svnR+"\n") 149 fh.write("#SBATCH --exclusive\n") 148 150 fh.write("ulimit -c 0\n") 149 151 fh.write("cd ${SLURM_SUBMIT_DIR}\n") -
XIOS/dev/dev_ym/XIOS_COUPLING/xios_test_suite/TEST_SUITE/step2.py
r2173 r2210 82 82 for checkfile in checkfiles: 83 83 if os.path.exists(config+"/"+checkfile) and os.path.exists("reference/ref_"+config+"/"+checkfile): 84 OSinfo("cdo -W diffn "+config+"/"+checkfile+" "+"reference/ref_"+config+"/"+checkfile+" 2>&1 |grep -v 'Found more than one time variable'|grep -v 'cdo diffn: Processed'|grep -v ' Time variable >time_counter< not found!' > diff_"+checkfile+".txt")84 OSinfo("cdo -W diffn "+config+"/"+checkfile+" "+"reference/ref_"+config+"/"+checkfile+" 2>&1 |grep -v 'Found more than one time variable'|grep -v 'cdo diffn: Processed'|grep -v 'cdo diffn: Processed'|grep -v 'Time variable >time_counter< not found!' > diff_"+checkfile+".txt") 85 85 if os.stat("diff_"+checkfile+".txt").st_size==0: # if no diff -> set 0 86 86 report.write(folder_name+" "+folder_name+"@"+config_name+" "+folder_name+"@"+config_name+"@"+checkfile+" "+str(1)+"\n")
Note: See TracChangeset
for help on using the changeset viewer.