Ignore:
Timestamp:
10/04/19 17:36:51 (5 years ago)
Author:
yushan
Message:

GENERIC_TESTCASE : check all .nc files by default. Generate Cmake files from python scripts (user_config.py, setup.py). Add scripts for copy to/from compressed reference stored in /gpfswork/rech/psl/rpsl954 (Jean-Zay and Irene).

File:
1 edited

Legend:

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

    r1729 r1734  
    1111cp ../default_param.py default_param.py 
    1212 
    13 cp ../iodef.xml iodef.xml 
    1413 
    1514# Black        0;30     Dark Gray     1;30 
     
    2322 
    2423 
    25 mv iodef.xml iodef.xml.bkp 
    2624 
    2725nb_proc=$(python sub_config.py 2>&1)  
     
    2927machine_name=jeanzay 
    3028 
    31 echo $nb_proc 
     29# echo $nb_proc 
    3230if [[ ($machine_name == irene) ]] 
    3331then 
     
    4644            echo "execution failed" 
    4745            rm -f iodef.xml 
    48             mv iodef.xml.bkp iodef.xml 
    4946            rm -f user_param.py 
    5047            rm -f default_param.py 
    5148            rm -f sub_config.py 
     49            rm -f sub_check.py 
    5250            exit 1234 
    5351    fi 
     
    5755fi 
    5856 
    59 python sub_check.py 
     57check_output=$(python sub_check.py 2>&1 >/dev/null) 
     58if [[ "$check_output" -ne 0 ]] 
     59then 
     60    echo "check.py failed" 
     61    rm -f iodef.xml 
     62    rm -f user_param.py 
     63    rm -f default_param.py 
     64    rm -f sub_config.py 
     65    rm -f sub_check.py 
     66    exit 1 
     67else 
     68    echo "check.py OK" 
     69fi 
     70 
    6071 
    6172rm -f iodef.xml 
    62 mv iodef.xml.bkp iodef.xml 
    6373rm -f user_param.py 
    6474rm -f default_param.py 
    6575rm -f sub_config.py 
     76rm -f sub_check.py 
Note: See TracChangeset for help on using the changeset viewer.