source: XIOS/dev/dev_oa/xios_test_suite/COMPILE/compile_irene @ 2338

Last change on this file since 2338 was 1945, checked in by yushan, 4 years ago

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

  • Property svn:executable set to *
File size: 654 bytes
Line 
1#!/bin/bash
2
3set -x
4
5export revision=$(svn info --show-item revision .. 2>&1)
6
7python config_compile.py
8
9ccc_msub -E "--wait" job_compile_irene.sh
10
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}
16
17
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
27
28  CHMOD -R ${build_dir}/build_${xios_machine_name}
29fi
Note: See TracBrowser for help on using the repository browser.