source: XIOS/trunk/xios_test_suite/cron_script_irene @ 1828

Last change on this file since 1828 was 1828, checked in by ymipsl, 4 years ago

xios_test_suite

  • add cron script for irene
  • mount scratchdir for irene jobs

YM

  • Property svn:executable set to *
File size: 990 bytes
Line 
1#/bin/bash
2set -x
3xios_branch=trunk
4xios_svn_rep="svn+ssh://forge.ipsl.jussieu.fr/ipsl/forge/projets/ioserver/svn/XIOS"
5xios_test_suite_dir="/ccc/scratch/cont003/gen0826/gen0826/XIOS_TEST_SUITE"
6
7#permission for group
8CHMOD() { chmod --quiet ug+rwX,o+rX "$@" ;}
9
10mkdir -p $xios_test_suite_dir ; CHMOD $xios_test_suite_dir
11mkdir -p $xios_test_suite_dir/$xios_branch ; CHMOD $xios_test_suite_dir/$xios_branch
12
13full_branch_dir=${xios_test_suite_dir}/$xios_branch
14full_svn_rep=$xios_svn_rep/$xios_branch
15
16cd $full_branch_dir
17
18if [ ! -f "./last_rev_tested" ]; then
19  echo 0 > ./last_rev_tested
20  CHMOD ./last_rev_tested
21fi
22
23last_rev=`cat ./last_rev_tested`
24current_rev=`svn info --show-item last-changed-revision $full_svn_rep`
25
26if [ "$current_rev" -gt "$last_rev" ];
27then
28    echo $current_rev > last_rev_tested
29    CHMOD ./last_rev_tested
30    svn co $full_svn_rep xios_rev_$current_rev
31    (cd xios_rev_$current_rev/xios_test_suite && ./launch_all)
32    CHMOD -R xios_rev_$current_rev
33fi;
Note: See TracBrowser for help on using the repository browser.