Changeset 1899 for XIOS/trunk/xios_test_suite/TEST_SUITE/job_irene.sh
- Timestamp:
- 06/12/20 11:42:45 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/xios_test_suite/TEST_SUITE/job_irene.sh
r1828 r1899 1 1 #!/bin/bash 2 ###################### 3 ## CURIE TGCC/CEA ## 4 ###################### 5 #MSUB -r XIOS 6 #MSUB -o client_output.out # standard output 7 #MSUB -e client_error.err #error output 8 #MSUB -eo 9 #MSUB -c 1 10 #MSUB -n 48 # Number of MPI tasks (SPMD case) or cores (MPMD case) 11 #MSUB -X 12 #MSUB -x 13 #MSUB -T 1800 # Wall clock limit (seconds) 14 #MSUB -q skylake # thin nodes 15 #MSUB -A gen0826 16 #MSUB -Q test 17 #MSUB -m work,scratch 2 3 export build_dir=xios_test_suite/RUN_TEST_SUITE/build_${arch}_${mode} 4 export svnR=$(svn info --show-item revision ../../) 5 6 echo "Start Building XIOS ... " 7 bash -c "cd ../.. && ./make_xios --arch_path `pwd`/../ARCH --arch ${arch} --${mode} --build_dir ${build_dir} --job 4" 8 9 export build_status=$? 10 if [[ ${build_status} == 0 ]] 11 then 12 echo "XIOS Build Finished. Start Unit Tests" 13 bash ./my_prod.sh 14 rundir=${xios_test_suite_repository}/RUN 15 mkdir -p $rundir ; CHMOD $rundir 16 mkdir -p ${rundir}/test_${xios_machine_name} ; CHMOD ${rundir}/test_${xios_machine_name} 17 18 cp report_${svnR}_${arch}_${mode}.txt ${rundir}/test_${xios_machine_name}/test_${svnR}_${xios_machine_name}_${arch}_${mode}.txt 19 20 CHMOD ${rundir}/test_${xios_machine_name}/test_${svnR}_${xios_machine_name}_${arch}_${mode}.txt 21 22 mkdir -p ${rundir}/def_files ; CHMOD ${rundir}/RUN/def_files 23 mkdir -p ${rundir}/def_files/${svnR} ; CHMOD ${rundir}/def_files/${svnR} 24 25 for i in $(ls -d test_*/) 26 do 27 mkdir -p ${rundir}/def_files/${svnR}/${i%%} 28 cp ${i%%}/user_param.json ${rundir}/def_files/${svnR}/${i%%} 29 for j in $(ls -d ${i%%/}/CONFIG_*) 30 do 31 mkdir -p ${rundir}/def_files/${svnR}/${j%%} 32 cp ${j%%}/all_param.def ${rundir}/def_files/${svnR}/${j%%} 33 done 34 CHMOD ${rundir}/def_files 35 done 18 36 19 37 20 #============================= X64_IRENE_prod ============================= 21 22 23 cd $BRIDGE_MSUB_PWD 24 25 export arch=X64_IRENE 26 export mode=prod 27 28 ./run_test 29 30 31 #============================= X64_IRENE_debug ============================= 32 33 34 cd $BRIDGE_MSUB_PWD 35 36 export arch=X64_IRENE 37 export mode=debug 38 39 ./run_test 38 else 39 echo "XIOS Build Failed. Skip Unit Tests" 40 fi 40 41 41 42 42 43 43
Note: See TracChangeset
for help on using the changeset viewer.