source: XIOS/trunk/xios_test_suite/cron_script_jeanzay @ 1826

Last change on this file since 1826 was 1826, checked in by ymipsl, 2 years ago

XIOS test suite :

  • better right permission for group
  • add cron script for jean-zay

YM

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