Changeset 1945
- Timestamp:
- 10/02/20 11:28:27 (4 years ago)
- Location:
- XIOS/trunk/xios_test_suite
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/xios_test_suite/COMPILE/compile_irene
r1887 r1945 9 9 ccc_msub -E "--wait" job_compile_irene.sh 10 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} 11 if [ "$COPY_TO_SERVER" = true ] 12 then 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} 14 16 15 17 16 allreports=`ls ./build_${revision}_*.txt`17 for report in $allreports18 do19 ll=$(wc -l $report | awk '{print $1}')20 if [[ $(($ll)) > 4 ]] ; then21 echo "$report need to be copied"22 cp $report ${build_dir}/build_${xios_machine_name}23 fi24 done18 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 25 27 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} 29 fi -
XIOS/trunk/xios_test_suite/COMPILE/compile_jeanzay
r1887 r1945 6 6 sbatch --wait job_compile_jeanzay.sh 7 7 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} 8 if [ "$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} 11 14 12 allreports=`ls ./build_${revision}_*.txt`13 for report in $allreports14 do15 ll=$(wc -l $report | awk '{print $1}')16 if [[ $(($ll)) > 4 ]] ; then17 echo "$report need to be copied"18 cp $report ${build_dir}/build_${xios_machine_name}19 fi20 done15 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 21 24 22 CHMOD -R ${build_dir}/build_${xios_machine_name} 25 CHMOD -R ${build_dir}/build_${xios_machine_name} 26 else 27 echo "without files copy" 28 fi 23 29 24 #bash -c "python ./generate_compile.py"25 #copy_to_forge compile_${xios_machine_name}_info.js26 -
XIOS/trunk/xios_test_suite/TEST_SUITE/run_test
r1913 r1945 5 5 6 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 7 9 export build_status=$? 10 if [[ ${build_status} == 0 ]] 8 if [[ ${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 23 fi 24 25 if [[ ${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 44 fi 45 46 export build_info=$(tail -n 1 compile.out) 47 if [[ $build_info == *"Build command finished"* ]]; then 48 build_ok=true 49 else 50 build_ok=false 51 fi 52 53 54 if [ "$build_ok" = true ] 11 55 then 12 56 echo "XIOS Build Finished. Start Unit Tests" -
XIOS/trunk/xios_test_suite/launch_all
r1889 r1945 1 1 #!/bin/bash 2 2 export COPY_TO_SERVER=false 3 if [[ $1 == "--copy" ]] 4 then 5 export COPY_TO_SERVER=$2 6 echo "copy to server =" ${COPY_TO_SERVER} 7 fi 3 8 source ./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 1 1 #!/bin/bash 2 export COPY_TO_SERVER=false 3 if [[ $1 == "--copy" ]] 4 then 5 export COPY_TO_SERVER=$2 6 echo "copy to server =" ${COPY_TO_SERVER} 7 fi 2 8 3 9 source ./load_env -
XIOS/trunk/xios_test_suite/launch_test_suite
r1916 r1945 1 1 #!/bin/bash 2 export COPY_TO_SERVER= true2 export COPY_TO_SERVER=false 3 3 if [[ $1 == "--copy" ]] 4 4 then
Note: See TracChangeset
for help on using the changeset viewer.