Last change
on this file since 2361 was
1844,
checked in by yushan, 5 years ago
|
dev_trunk_omp : add xios_test_suite folder
|
-
Property svn:executable set to
*
|
File size:
1018 bytes
|
Rev | Line | |
---|
[1844] | 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.