source: XIOS/trunk/xios_test_suite/TEST_SUITE/job_jeanzay.sh @ 1899

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

trunk : cleanup

  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 1.4 KB
Line 
1#!/bin/bash
2export build_dir=xios_test_suite/RUN_TEST_SUITE/build_${arch}_${mode}
3export svnR=$(svn info --show-item revision ../../)
4export ref_location=/gpfswork/rech/psl/rpsl954/cron_xios
5export ref_file=reference.tar.gz
6
7echo "Start Building XIOS ... "
8bash -c "cd ../.. && ./make_xios --arch_path `pwd`/../ARCH --arch ${arch} --${mode} --build_dir ${build_dir} --job 4"
9
10export build_status=$?
11if [[ ${build_status} == 0 ]]
12then
13  echo "XIOS Build Finished. Start Unit Tests"
14  bash ./my_prod.sh
15  rundir=${xios_test_suite_repository}/RUN
16  mkdir -p $rundir ; CHMOD  $rundir
17  mkdir -p ${rundir}/test_${xios_machine_name} ; CHMOD ${rundir}/test_${xios_machine_name}
18
19  cp report_${svnR}_${arch}_${mode}.txt ${rundir}/test_${xios_machine_name}/test_${svnR}_${xios_machine_name}_${arch}_${mode}.txt
20
21  CHMOD ${rundir}/test_${xios_machine_name}/test_${svnR}_${xios_machine_name}_${arch}_${mode}.txt
22
23  mkdir -p ${rundir}/def_files ;  CHMOD ${rundir}/def_files
24  mkdir -p ${rundir}/def_files/${svnR} ;  CHMOD ${rundir}/def_files/${svnR}
25
26  for i in $(ls -d test_*/)
27  do
28    mkdir -p ${rundir}/def_files/${svnR}/${i%%}
29    cp ${i%%}/user_param.json ${rundir}/def_files/${svnR}/${i%%}
30    for j in $(ls -d ${i%%/}/CONFIG_*)
31    do
32      mkdir -p ${rundir}/def_files/${svnR}/${j%%}
33      cp ${j%%}/all_param.def ${rundir}/def_files/${svnR}/${j%%}
34    done
35    CHMOD ${rundir}/def_files
36  done
37
38
39else
40  echo "XIOS Build Failed. Skip Unit Tests"
41fi
42
43
Note: See TracBrowser for help on using the repository browser.