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_scalar_algo/run_sub_test.sh

    r1725 r1726  
    11#!/bin/bash 
    2 rm -f sub_config1.py 
    3 rm -f sub_config2.py 
    4 rm -f sub_check.py 
    5 rm -f default_param.py 
     2yes | cp ../context_grid_dynamico.xml ./ 
     3yes | cp ../dynamico_grid.nc ./ 
    64 
    7 cp -n ../user_config.py sub_config1.py 
    8 cp -n ../config.py sub_config2.py 
    9 cp -n ../check.py sub_check.py 
    10 cp -n ../default_param.py 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 
     9 
    1110 
    1211# Black        0;30     Dark Gray     1;30 
     
    2019 
    2120 
     21 
    2222Color='\033[0;36m' 
    2323NC='\033[0m' # No Color 
     
    2727echo " " >> report.txt 
    2828echo " " >> report.txt 
    29 echo -e "testing ${Color}scalar${NC} algorithms..." >> report.txt  
     29echo -e "testing ${Color}axis${NC} algorithms..." >> report.txt 
    3030echo " " >> report.txt 
    3131 
     
    3535echo "<br> " >> report.html 
    3636echo "<br> " >> report.html 
    37 echo "<p>testing  <font color="blue">scalar</font> algorithms...</p>" >> report.html  
     37echo "<p>testing  <font color="blue">axis</font> algorithms...</p>" >> report.html  
    3838echo "<br> " >> report.html 
    3939 
     
    5252 
    5353nb_proc=$(python sub_config2.py 2>&1)  
    54 nb_jz=$(($nb_proc-1)) 
    5554 
    5655if [[ ($machine_name == irene) ]] 
     
    6463then 
    6564    echo "Testing on Jean-Zay"  
    66     # touch srun.conf 
    67     # > srun.conf 
    68     # echo "0-"$nb_jz " ../../build_prod/bin/generic_testcase.exe">> srun.conf 
    69     # srun --mpi=pmi2 -K1 --multi-prog -m cyclic ./srun.conf  
    7065    srun -n $nb_proc --mpi=pmi2 ../../build_prod/bin/generic_testcase.exe 
    7166else 
    7267    echo "other machine" 
    7368fi 
     69 
    7470python sub_check.py 
    7571 
     
    7874 
    7975done 
     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.