Ignore:
Timestamp:
10/03/19 16:28:14 (5 years ago)
Author:
yushan
Message:

GENERIC_TESTCASE : Each configuration is considered now as an independent test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_scalar_algo/run_sub_test.sh

    r1728 r1729  
    11#!/bin/bash 
    2 yes | cp ../context_grid_dynamico.xml ./ 
    3 yes | cp ../dynamico_grid.nc ./ 
    42 
    5 yes | cp ../user_config.py sub_config1.py 
    6 yes | cp ../config.py sub_config2.py 
    7 yes | cp ../check.py sub_check.py 
    8 yes | cp ../default_param.py default_param.py 
    93 
    10 yes | cp ../iodef.xml iodef.xml 
     4 
     5cp ../context_grid_dynamico.xml ./ 
     6cp ../dynamico_grid.nc ./ 
     7 
     8cp ../config.py sub_config.py 
     9cp ../check.py sub_check.py 
     10 
     11cp ../default_param.py default_param.py 
     12 
     13 
     14cp ../iodef.xml iodef.xml 
    1115 
    1216# Black        0;30     Dark Gray     1;30 
     
    2024 
    2125 
     26mv iodef.xml iodef.xml.bkp 
    2227 
    23 Color='\033[0;36m' 
    24 NC='\033[0m' # No Color 
     28nb_proc=$(python sub_config.py 2>&1)  
    2529 
    26 touch report.txt 
    27 > report.txt 
    28 echo " " >> report.txt 
    29 echo " " >> report.txt 
    30 echo -e "testing ${Color}scalar${NC} algorithms..." >> report.txt 
    31 echo " " >> report.txt 
     30machine_name=jeanzay 
    3231 
    33 touch report.html 
    34 > report.html 
    35 echo "<br> " >> report.html 
    36 echo "<br> " >> report.html 
    37 echo "<br> " >> report.html 
    38 echo "<p>testing  <font color="blue">scalar</font> algorithms...</p>" >> report.html  
    39 echo "<br> " >> report.html 
    40  
    41 nb_config=$(python sub_config1.py 2>&1)                                                                                                                     
    42  
    43  
    44 counter=0 
    45 while [ $counter -lt $nb_config ] 
    46 do 
    47  
    48 rm -f user_param.py 
    49  
    50 cp user_param.py.$counter user_param.py 
    51  
    52 ((counter++)) 
    53  
    54 nb_proc=$(python sub_config2.py 2>&1)  
    55  
     32echo $nb_proc 
    5633if [[ ($machine_name == irene) ]] 
    5734then 
    58           echo "Testing on Irene" 
     35    echo "Testing on Irene" 
    5936    ccc_mprun -n $nb_proc ../../build_prod/bin/generic_testcase.exe 
    6037elif [[($machine_name == ada)]] 
     
    6744    srun -n $nb_proc --mpi=pmi2 ../../build_prod/bin/generic_testcase.exe 
    6845    if [ $? -ne 0 ] 
    69         then 
    70                 echo "execution failed" 
     46        then 
     47            echo "execution failed" 
    7148            rm -f iodef.xml 
    7249            mv iodef.xml.bkp iodef.xml 
     50            rm -f user_param.py 
    7351            rm -f default_param.py 
    74             rm -f default_param.pyc 
    75             rm -f user_param.pyc 
    76             rm -f user_param.py.* 
    77             rm -f sub_*.py 
    78                 exit 1234 
     52            rm -f sub_config.py 
     53            exit 1234 
    7954    fi 
    8055else 
     
    8762rm -f iodef.xml 
    8863mv iodef.xml.bkp iodef.xml 
    89  
    90 done 
     64rm -f user_param.py 
    9165rm -f default_param.py 
    92 rm -f default_param.pyc 
    93 rm -f user_param.pyc 
    94 rm -f user_param.py.* 
    95 rm -f sub_*.py 
     66rm -f sub_config.py 
Note: See TracChangeset for help on using the changeset viewer.