Changeset 1886


Ignore:
Timestamp:
05/26/20 15:16:30 (3 months ago)
Author:
yushan
Message:

trunk : only copy valid reports to XIOS_TEST_SUITE_REPOSITORY

Location:
XIOS/trunk/xios_test_suite
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/xios_test_suite/COMPILE/compile_irene

    r1884 r1886  
    1313mkdir -p ${build_dir}/build_${xios_machine_name} 
    1414 
    15 #cp build_*.txt ${build_dir}/build_${xios_machine_name} 
    16 cp build_${revision}_*.txt ${build_dir}/build_${xios_machine_name} 
     15 
     16allreports=`ls ./build_${revision}_*.txt` 
     17for report in $allreports 
     18do 
     19   ll=$(wc -l $report | awk '{print $1}') 
     20   if [[ $(($ll)) > 4 ]] ;  then 
     21      echo "$report need to be copied" 
     22      cp $report ${build_dir}/build_${xios_machine_name} 
     23   fi 
     24done 
     25 
     26 
    1727CHMOD -R ${build_dir}/build_${xios_machine_name} 
    1828 
  • XIOS/trunk/xios_test_suite/COMPILE/compile_jeanzay

    r1884 r1886  
    1010mkdir -p ${build_dir}/build_${xios_machine_name} 
    1111 
    12 #cp build_*.txt ${build_dir}/build_${xios_machine_name} 
    13 cp build_${revision}_*.txt ${build_dir}/build_${xios_machine_name} 
     12allreports=`ls ./build_${revision}_*.txt` 
     13for report in $allreports 
     14do 
     15   ll=$(wc -l $report | awk '{print $1}') 
     16   if [[ $(($ll)) > 4 ]] ;  then 
     17      echo "$report need to be copied" 
     18      cp $report ${build_dir}/build_${xios_machine_name} 
     19   fi 
     20done 
     21 
    1422CHMOD -R ${build_dir}/build_${xios_machine_name} 
    1523 
  • XIOS/trunk/xios_test_suite/TEST_SUITE/run_test

    r1841 r1886  
    9999mkdir -p ${rundir}/test_${machine_name} ; CHMOD ${rundir}/test_${machine_name} 
    100100 
    101 cp plain_report.txt ${rundir}/test_${machine_name}/test_${xios_revision}_${machine_name}_${arch}_${mode}.txt 
    102 CHMOD ${rundir}/test_${machine_name}/test_${xios_revision}_${machine_name}_${arch}_${mode}.txt 
     101ll=$(wc -l plain_report.txt | awk '{print $1}') 
    103102 
    104 mkdir -p ${rundir}/def_files ;  CHMOD ${rundir}/RUN/def_files 
    105 mkdir -p ${rundir}/def_files/${xios_revision} ;  CHMOD ${rundir}/def_files/${xios_revision} 
     103if [[ $(($ll > 6))  ]] ; then 
     104  #echo "report ok" 
    106105 
    107 for i in $(ls -d test_*/) 
    108 do 
    109   mkdir -p ${rundir}/def_files/${xios_revision}/${i%%} 
    110   cp ${i%%}/user_param.json ${rundir}/def_files/${xios_revision}/${i%%}       
    111   for j in $(ls -d ${i%%/}/config_*) 
     106  cp plain_report.txt ${rundir}/test_${machine_name}/test_${xios_revision}_${machine_name}_${arch}_${mode}.txt 
     107  CHMOD ${rundir}/test_${machine_name}/test_${xios_revision}_${machine_name}_${arch}_${mode}.txt 
     108 
     109  mkdir -p ${rundir}/def_files ;  CHMOD ${rundir}/RUN/def_files 
     110  mkdir -p ${rundir}/def_files/${xios_revision} ;  CHMOD ${rundir}/def_files/${xios_revision} 
     111 
     112  for i in $(ls -d test_*/) 
    112113  do 
    113     mkdir -p ${rundir}/def_files/${xios_revision}/${j%%} 
    114     cp ${j%%}/setup/all_param.def ${rundir}/def_files/${xios_revision}/${j%%}   
     114    mkdir -p ${rundir}/def_files/${xios_revision}/${i%%} 
     115    cp ${i%%}/user_param.json ${rundir}/def_files/${xios_revision}/${i%%}       
     116    for j in $(ls -d ${i%%/}/config_*) 
     117    do 
     118      mkdir -p ${rundir}/def_files/${xios_revision}/${j%%} 
     119      cp ${j%%}/setup/all_param.def ${rundir}/def_files/${xios_revision}/${j%%}   
     120    done 
     121    CHMOD ${rundir}/def_files 
    115122  done 
    116   CHMOD ${rundir}/def_files 
    117 done 
     123fi 
    118124 
    119125fi 
Note: See TracChangeset for help on using the changeset viewer.