source: XIOS/trunk/xios_test_suite/TEST_SUITE/my_run.sh @ 1924

Last change on this file since 1924 was 1924, checked in by yushan, 2 years ago

trunk : update unit tests parameters

  • Property svn:executable set to *
File size: 1.1 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  done
34fi
35
36
37
38if [[ ${xios_machine_name} == "jeanzay" ]]; then
39  cmd=$(sbatch full_job_${arch}_${mode}.sh)
40  jobid="${cmd//[!0-9]/}"
41  i=0
42  output=$(squeue -u rpsl954 | grep ${jobid})
43  while [ ! -z "$output" ]
44  do
45    echo "job" $jobid "pending/running for about" ${i} seconds
46    sleep 30
47    ((i+=30))
48    output=$(squeue -u rpsl954 | grep ${jobid})
49  done
50fi
51
52
53${PYTHON} step2.py
Note: See TracBrowser for help on using the repository browser.