Ignore:
Timestamp:
09/27/19 11:40:33 (5 years ago)
Author:
yushan
Message:

Generic_testcase : Cleanup and better organization

File:
1 edited

Legend:

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

    r1725 r1726  
    11#!/bin/bash 
     2yes | cp ../context_grid_dynamico.xml ./ 
     3yes | cp ../dynamico_grid.nc ./ 
    24 
    3 rm -f sub_config1.py 
    4 rm -f sub_config2.py 
    5 rm -f sub_check.py 
    6 rm -f default_param.py 
     5yes | cp ../user_config.py sub_config1.py 
     6yes | cp ../config.py sub_config2.py 
     7yes | cp ../check.py sub_check.py 
     8yes | cp ../default_param.py default_param.py 
    79 
    8 cp -n ../user_config.py sub_config1.py 
    9 cp -n ../config.py sub_config2.py 
    10 cp -n ../check.py sub_check.py 
    11 cp -n ../default_param.py default_param.py 
    1210 
    1311# Black        0;30     Dark Gray     1;30 
     
    2927echo " " >> report.txt 
    3028echo " " >> report.txt 
    31 echo -e "testing ${Color}domain${NC} algorithms..." >> report.txt  
     29echo -e "testing ${Color}axis${NC} algorithms..." >> report.txt 
    3230echo " " >> report.txt 
    33  
    3431 
    3532touch report.html 
     
    3835echo "<br> " >> report.html 
    3936echo "<br> " >> report.html 
    40 echo "<p>testing  <font color="blue">domain</font> algorithms...</p>" >> report.html  
     37echo "<p>testing  <font color="blue">axis</font> algorithms...</p>" >> report.html  
    4138echo "<br> " >> report.html 
    4239 
     
    5552 
    5653nb_proc=$(python sub_config2.py 2>&1)  
    57 nb_jz=$(($nb_proc-1)) 
    5854 
    5955if [[ ($machine_name == irene) ]] 
     
    6763then 
    6864    echo "Testing on Jean-Zay"  
    69     # touch srun.conf 
    70     # > srun.conf 
    71     # echo "0-"$nb_jz " ../../build_prod/bin/generic_testcase.exe">> srun.conf 
    72     # srun --mpi=pmi2 -K1 --multi-prog -m cyclic ./srun.conf  
    7365    srun -n $nb_proc --mpi=pmi2 ../../build_prod/bin/generic_testcase.exe 
    7466else 
    7567    echo "other machine" 
    7668fi 
    77  
    78  
    7969 
    8070python sub_check.py 
     
    8474 
    8575done 
     76rm -f default_param.py 
     77rm -f default_param.pyc 
     78rm -f user_param.pyc 
     79rm -f user_param.py.* 
     80rm -f sub_*.py 
Note: See TracChangeset for help on using the changeset viewer.