source: XIOS/dev/dev_ym/XIOS_COUPLING/xios_test_suite/TEST_SUITE/my_run.sh @ 2210

Last change on this file since 2210 was 2210, checked in by jderouillat, 5 months ago

Setting XIOS_COULING test suite for Jean-Zay (validated in OpenMPI)

  • Property svn:executable set to *
File size: 1.2 KB
Line 
1#!/bin/bash
2
3echo "running my_run.sh"
4
5export svnR=$(svn info --show-item revision ../../)
6svnurl=$(svn info --show-item url ../../)
7PWD=$(pwd)
8
9fn=report_${svnR}_${arch}_${mode}.txt
10echo "#revision" ${svnR} > ${fn}
11echo "#url" ${svnurl} >> ${fn}
12echo "#machine" ${xios_machine_name} >> ${fn}
13echo "#build_dir" $(pwd)/build_${arch}_${mode} >> ${fn}
14echo "#arch" $arch >> ${fn}
15echo "#mode" $mode >> ${fn}
16
17
18${PYTHON} step1.py
19
20
21if [[ ${xios_machine_name} == "irene" ]]; then
22  cmd=$(ccc_msub full_job_${arch}_${mode}.sh)
23  jobid="${cmd//[!0-9]/}"
24
25  i=0
26  output=$(ccc_mpp | grep ${jobid})
27  while [ ! -z "$output" ]
28  do
29    echo "job" $jobid "pending/running for about" ${i} seconds
30    sleep 30
31    ((i+=30))
32    output=$(ccc_mpp | grep ${jobid})
33    if [[ $i -eq 300 ]]; then
34      ccc_mdel $jobid
35      break
36    fi
37  done
38fi
39
40
41
42if [[ ${xios_machine_name} == "jeanzay" ]]; then
43  cmd=$(sbatch full_job_${arch}_${mode}.sh)
44  jobid="${cmd//[!0-9]/}"
45  i=0
46  output=$(squeue -u uim55ri | grep ${jobid})
47  while [ ! -z "$output" ]
48  do
49    echo "job" $jobid "pending/running for about" ${i} seconds
50    sleep 30
51    ((i+=30))
52    if [[ $i -eq 300 ]]; then
53      output=$(squeue -u uim55ri | grep ${jobid})
54      scancel $jobid
55      break
56    fi
57  done
58fi
59
60
61${PYTHON} step2.py
Note: See TracBrowser for help on using the repository browser.