source: XIOS3/trunk/xios_test_suite/TEST_SUITE/my_run.sh @ 2411

Last change on this file since 2411 was 2411, checked in by jderouillat, 19 months ago

Fix Irene test suite, 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.8 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
10
11if [ -z ${enable_mem_track+x} ]; then
12  # initialize the report for the main part of the test (without memory tracking, see step2.py for details)
13  echo "#revision" ${svnR} > ${fn}
14  echo "#url" ${svnurl} >> ${fn}
15  echo "#machine" ${xios_machine_name} >> ${fn}
16  echo "#build_dir" $(pwd)/build_${arch}_${mode} >> ${fn}
17  echo "#arch" $arch >> ${fn}
18  echo "#mode" $mode >> ${fn}
19else
20  if  [ ! -f "$fn" ]; then 
21    # initialize the report if it does not exist
22    echo "#revision" ${svnR} > ${fn}
23    echo "#url" ${svnurl} >> ${fn}
24    echo "#machine" ${xios_machine_name} >> ${fn}
25    echo "#build_dir" $(pwd)/build_${arch}_${mode} >> ${fn}
26    echo "#arch" $arch >> ${fn}
27    echo "#mode" $mode >> ${fn}
28    echo "#memtrack full" >> ${fn}
29  fi
30  # else write in the same report
31fi
32
33${PYTHON} step1.py
34
35
36if [[ ${xios_machine_name} == "irene" ]]; then
37  export TMPDIR=/tmp
38  cmd=$(ccc_msub full_job_${arch}_${mode}.sh)
39  jobid="${cmd//[!0-9]/}"
40
41  i=0
42  output=$(squeue -u $USER | 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 $USER | grep ${jobid})
49    if [[ $i -eq 300 ]]; then
50      ccc_mdel $jobid
51      break
52    fi
53  done
54fi
55
56
57
58if [[ ${xios_machine_name} == "jeanzay" ]]; then
59  cmd=$(sbatch full_job_${arch}_${mode}.sh)
60  jobid="${cmd//[!0-9]/}"
61  i=0
62  output=$(squeue -u uim55ri | grep ${jobid})
63  while [ ! -z "$output" ]
64  do
65    echo "job" $jobid "pending/running for about" ${i} seconds
66    sleep 30
67    ((i+=30))
68    if [[ $i -eq 300 ]]; then
69      output=$(squeue -u uim55ri | grep ${jobid})
70      scancel $jobid
71      break
72    fi
73  done
74fi
75
76
77${PYTHON} step2.py
Note: See TracBrowser for help on using the repository browser.