Last change
on this file since 1878 was
1826,
checked in by ymipsl, 5 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 | |
---|
3 | xios_branch=trunk |
---|
4 | xios_svn_rep="svn+ssh://forge.ipsl.jussieu.fr/ipsl/forge/projets/ioserver/svn/XIOS" |
---|
5 | xios_test_suite_dir="/gpfsscratch/rech/psl/commun/XIOS_TEST_SUITE" |
---|
6 | |
---|
7 | #permission for group |
---|
8 | CHMOD() { setfacl -m u::rwX,u:rpsl565:rwX,u:rpsl954:rwX,u:rgzi016:rwX,g::r-X,o::r-X,m::rwX "$@" ;} |
---|
9 | |
---|
10 | |
---|
11 | mkdir -p $xios_test_suite_dir ; CHMOD $xios_test_suite_dir |
---|
12 | mkdir -p $xios_test_suite_dir/$xios_branch ; CHMOD $xios_test_suite_dir/$xios_branch |
---|
13 | |
---|
14 | full_branch_dir=${xios_test_suite_dir}/$xios_branch |
---|
15 | full_svn_rep=$xios_svn_rep/$xios_branch |
---|
16 | |
---|
17 | cd $full_branch_dir |
---|
18 | |
---|
19 | if [ ! -f "./last_rev_tested" ]; then |
---|
20 | echo 0 > ./last_rev_tested |
---|
21 | CHMOD ./last_rev_tested |
---|
22 | fi |
---|
23 | |
---|
24 | last_rev=`cat ./last_rev_tested` |
---|
25 | current_rev=`svn info --show-item revision $full_svn_rep` |
---|
26 | |
---|
27 | if [ "$current_rev" -gt "$last_rev" ]; |
---|
28 | then |
---|
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 |
---|
34 | fi; |
---|
Note: See
TracBrowser
for help on using the repository browser.