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

Location:
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_axis_algo
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_axis_algo/CMakeLists.txt

    r1714 r1729  
     1############################## 
     2# file generated by setup.py # 
     3#      DO NOT modify         # 
     4############################## 
     5 
    16cmake_minimum_required(VERSION 2.8.12.2) 
    27 
    38project(generic_testcase) 
    49 
     10find_package(PythonInterp REQUIRED) 
    511 
    612enable_testing() 
    713 
     14add_test( NAME test_axis_algo_config0 
     15          COMMAND ${PYTHON_EXECUTABLE} 
     16          ${CMAKE_CURRENT_BINARY_DIR}/run_test_0.py 
     17          test_axis_algo_config0) 
    818 
    9 add_test( axis_algo ./run_sub_test.sh) 
     19add_test( NAME test_axis_algo_config1 
     20          COMMAND ${PYTHON_EXECUTABLE} 
     21          ${CMAKE_CURRENT_BINARY_DIR}/run_test_1.py 
     22          test_axis_algo_config1) 
     23 
  • XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_axis_algo/iodef.xml

    r1728 r1729  
    77 
    88      <variable id="timestep"> 1h </variable> 
    9       <variable id="domain"> lmdz </variable> 
     9      <variable id="domain"> atm::domain </variable> 
    1010      <variable id="domain_mask"> true </variable> 
    1111      <variable id="axis_mask"> true </variable> 
     
    5555        <variable id="info_level" type="int">100</variable> 
    5656        <variable id="print_file" type="bool">true</variable> 
    57         <variable id="using_server2" type="bool">true</variable> 
    58         <variable id="ratio_server2" type="int">50</variable> 
    59         <variable id="number_pools_server2" type="int">1</variable> 
     57        <variable id="using_server2" type="bool">xios::usingSrv2</variable> 
     58        <variable id="ratio_server2" type="int">xios::ratioSrv2</variable> 
     59        <variable id="number_pools_server2" type="int">xios::nbplSrv2</variable> 
    6060        <variable id="pure_one_sided" type="bool">false</variable> 
    6161        <variable id="check_event_sync" type="bool">true</variable> 
  • XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_axis_algo/job_irene.sh

    r1718 r1729  
    4949#ccc_mprun tau_exec -io ../../bin/test_send.exe 
    5050#ddt -start -n 8 ../buile_intelmpi/bin/test_omp.exe 
     51python setup.py 
    5152 
    5253cmake . 
  • XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_axis_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 
     13cp ../iodef.xml iodef.xml 
    1114 
    1215# Black        0;30     Dark Gray     1;30 
     
    2023 
    2124 
     25mv iodef.xml iodef.xml.bkp 
    2226 
    23 Color='\033[0;36m' 
    24 NC='\033[0m' # No Color 
     27nb_proc=$(python sub_config.py 2>&1)  
    2528 
    26 touch report.txt 
    27 > report.txt 
    28 echo " " >> report.txt 
    29 echo " " >> report.txt 
    30 echo -e "testing ${Color}axis${NC} algorithms..." >> report.txt 
    31 echo " " >> report.txt 
     29machine_name=jeanzay 
    3230 
    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">axis</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  
     31echo $nb_proc 
    5632if [[ ($machine_name == irene) ]] 
    5733then 
     
    6743    srun -n $nb_proc --mpi=pmi2 ../../build_prod/bin/generic_testcase.exe 
    6844    if [ $? -ne 0 ] 
    69         then 
    70                 echo "execution failed" 
     45        then 
     46            echo "execution failed" 
    7147            rm -f iodef.xml 
    7248            mv iodef.xml.bkp iodef.xml 
     49            rm -f user_param.py 
    7350            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 
     51            rm -f sub_config.py 
     52            exit 1234 
    7953    fi 
    8054else 
     
    8761rm -f iodef.xml 
    8862mv iodef.xml.bkp iodef.xml 
    89  
    90 done 
     63rm -f user_param.py 
    9164rm -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 
     65rm -f sub_config.py 
Note: See TracChangeset for help on using the changeset viewer.