source: XIOS2/trunk/xios_test_suite/TEST_SUITE/my_run.sh @ 2412

Last change on this file since 2412 was 2412, checked in by jderouillat, 21 months ago

Fix Irene test suite (XIOS2), which returns (Unable to start a daemon on the local node (-127) instead of ORTE_SUCCESS) since the maintenance

  • 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  export TMPDIR=/tmp
23  cmd=$(ccc_msub full_job_${arch}_${mode}.sh)
24  jobid="${cmd//[!0-9]/}"
25
26  i=0
27  output=$(ccc_mpp | grep ${jobid})
28  while [ ! -z "$output" ]
29  do
30    echo "job" $jobid "pending/running for about" ${i} seconds
31    sleep 30
32    ((i+=30))
33    output=$(ccc_mpp | grep ${jobid})
34  done
35fi
36
37
38
39if [[ ${xios_machine_name} == "jeanzay" ]]; then
40  cmd=$(sbatch full_job_${arch}_${mode}.sh)
41  jobid="${cmd//[!0-9]/}"
42  i=0
43  output=$(squeue | grep ${jobid})
44  while [ ! -z "$output" ]
45  do
46    echo "job" $jobid "pending/running for about" ${i} seconds
47    sleep 30
48    ((i+=30))
49    output=$(squeue | grep ${jobid})
50  done
51fi
52
53
54${PYTHON} step2.py
Note: See TracBrowser for help on using the repository browser.