Changeset 1945


Ignore:
Timestamp:
10/02/20 11:28:27 (4 years ago)
Author:
yushan
Message:

trunk : modif related to compilation before unit tests. No longer compile on login node.

Location:
XIOS/trunk/xios_test_suite
Files:
6 edited

Legend:

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

    r1887 r1945  
    99ccc_msub -E "--wait" job_compile_irene.sh 
    1010 
    11 build_dir=${xios_test_suite_repository}/BUILD 
    12 mkdir -p $build_dir ; CHMOD $build_dir 
    13 mkdir -p ${build_dir}/build_${xios_machine_name} 
     11if [ "$COPY_TO_SERVER" = true ] 
     12then 
     13  build_dir=${xios_test_suite_repository}/BUILD 
     14  mkdir -p $build_dir ; CHMOD $build_dir 
     15  mkdir -p ${build_dir}/build_${xios_machine_name} 
    1416 
    1517 
    16 allreports=`ls ./build_${revision}_*.txt` 
    17 for report in $allreports 
    18 do 
    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 
    24 done 
     18  allreports=`ls ./build_${revision}_*.txt` 
     19  for report in $allreports 
     20  do 
     21     ll=$(wc -l $report | awk '{print $1}') 
     22     if [[ $(($ll)) > 4 ]] ;  then 
     23        echo "$report need to be copied" 
     24        cp $report ${build_dir}/build_${xios_machine_name} 
     25     fi 
     26  done 
    2527 
    26  
    27 CHMOD -R ${build_dir}/build_${xios_machine_name} 
    28  
    29 #bash -c "python ./generate_compile.py" 
    30  
    31 #copy_to_thredds compile_${xios_machine_name}_info.js 
     28  CHMOD -R ${build_dir}/build_${xios_machine_name} 
     29fi 
  • XIOS/trunk/xios_test_suite/COMPILE/compile_jeanzay

    r1887 r1945  
    66sbatch --wait job_compile_jeanzay.sh 
    77 
    8 build_dir=${xios_test_suite_repository}/BUILD 
    9 mkdir -p $build_dir ; CHMOD $build_dir 
    10 mkdir -p ${build_dir}/build_${xios_machine_name} 
     8if [ "$COPY_TO_SERVER" = true ] 
     9  then 
     10   
     11  build_dir=${xios_test_suite_repository}/BUILD 
     12  mkdir -p $build_dir ; CHMOD $build_dir 
     13  mkdir -p ${build_dir}/build_${xios_machine_name} 
    1114 
    12 allreports=`ls ./build_${revision}_*.txt` 
    13 for report in $allreports 
    14 do 
    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 
    20 done 
     15  allreports=`ls ./build_${revision}_*.txt` 
     16  for report in $allreports 
     17  do 
     18     ll=$(wc -l $report | awk '{print $1}') 
     19     if [[ $(($ll)) > 4 ]] ;  then 
     20        echo "$report need to be copied" 
     21        cp $report ${build_dir}/build_${xios_machine_name} 
     22     fi 
     23  done 
    2124 
    22 CHMOD -R ${build_dir}/build_${xios_machine_name} 
     25  CHMOD -R ${build_dir}/build_${xios_machine_name} 
     26else 
     27    echo "without files copy" 
     28fi 
    2329 
    24 #bash -c "python ./generate_compile.py" 
    25 #copy_to_forge compile_${xios_machine_name}_info.js 
    26  
  • XIOS/trunk/xios_test_suite/TEST_SUITE/run_test

    r1913 r1945  
    55 
    66echo "Start Building XIOS ... " 
    7 bash -c "cd ../.. && ./make_xios --arch_path `pwd`/../ARCH --arch ${arch} --${mode} --build_dir ${build_dir} --job 4" 
    87 
    9 export build_status=$? 
    10 if [[ ${build_status} == 0 ]] 
     8if [[ ${xios_machine_name} == "jeanzay" ]]; then 
     9 
     10  rm -f compile.sh 
     11  echo "#!/bin/bash" >> compile.sh  
     12  echo "#SBATCH --ntasks=4 ">> compile.sh 
     13  echo "#SBATCH --hint=nomultithread ">> compile.sh 
     14  echo "#SBATCH -t 00:30:00  " >> compile.sh 
     15  echo "#SBATCH -o compile.out ">> compile.sh 
     16  echo "#SBATCH -e compile.err ">> compile.sh 
     17  echo "#SBATCH --account="$user_account  >> compile.sh 
     18  echo "cd \${SLURM_SUBMIT_DIR}">> compile.sh 
     19  echo "ulimit -c 0">> compile.sh 
     20  echo "cd ../.. ">> compile.sh 
     21  echo "./make_xios --arch_path `pwd`/../ARCH --arch ${arch} --${mode} --build_dir ${build_dir} --job 4" >> compile.sh 
     22  sbatch --wait compile.sh 
     23fi 
     24 
     25if [[ ${xios_machine_name} == "irene" ]]; then 
     26 
     27  rm -f compile.sh 
     28  echo "#!/bin/bash" >> compile.sh  
     29  echo "#MSUB -o compile.out" >> compile.sh 
     30  echo "#MSUB -e compile.err" >> compile.sh 
     31  echo "#MSUB -eo" >> compile.sh 
     32  echo "#MSUB -c 4" >> compile.sh 
     33  echo "#MSUB -n 1" >> compile.sh 
     34  echo "#MSUB -X" >> compile.sh 
     35  echo "#MSUB -x" >> compile.sh 
     36  echo "#MSUB -T 1800" >> compile.sh 
     37  echo "#MSUB -q skylake" >> compile.sh 
     38  echo "#MSUB -A "$user_account >> compile.sh 
     39  echo "#MSUB -Q test" >> compile.sh 
     40  echo "#MSUB -m work,scratch" >> compile.sh 
     41  echo "cd ../.. ">> compile.sh 
     42  echo "./make_xios --arch_path `pwd`/../ARCH --arch ${arch} --${mode} --build_dir ${build_dir} --job 4" >> compile.sh 
     43  ccc_msub -E "--wait" compile.sh 
     44fi 
     45 
     46export build_info=$(tail -n 1 compile.out) 
     47if [[ $build_info == *"Build command finished"* ]]; then 
     48  build_ok=true 
     49else 
     50  build_ok=false 
     51fi 
     52 
     53 
     54if [ "$build_ok" = true ] 
    1155then 
    1256  echo "XIOS Build Finished. Start Unit Tests" 
  • XIOS/trunk/xios_test_suite/launch_all

    r1889 r1945  
    11#!/bin/bash 
    2  
     2export COPY_TO_SERVER=false 
     3if [[ $1 == "--copy" ]] 
     4then 
     5  export COPY_TO_SERVER=$2 
     6  echo "copy to server =" ${COPY_TO_SERVER} 
     7fi 
    38source ./load_env 
    4 #./copy_html 
    5 ./launch_compile 
    6 ./launch_test_suite 
     9./launch_compile $1 $2 
     10./launch_test_suite $1 $2 
  • XIOS/trunk/xios_test_suite/launch_compile

    r1812 r1945  
    11#!/bin/bash 
     2export COPY_TO_SERVER=false 
     3if [[ $1 == "--copy" ]] 
     4then 
     5  export COPY_TO_SERVER=$2 
     6  echo "copy to server =" ${COPY_TO_SERVER} 
     7fi 
    28 
    39source ./load_env 
  • XIOS/trunk/xios_test_suite/launch_test_suite

    r1916 r1945  
    11#!/bin/bash 
    2 export COPY_TO_SERVER=true 
     2export COPY_TO_SERVER=false 
    33if [[ $1 == "--copy" ]] 
    44then 
Note: See TracChangeset for help on using the changeset viewer.