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

    r1725 r1726  
    11#!/bin/bash 
     2yes | cp ../../context_grid_dynamico.xml ./ 
     3yes | cp ../../dynamico_grid.nc ./ 
    24 
    3 cp -n  ../context_grid_dynamico.xml ./ 
    4 cp -n ../dynamico_grid.nc ./ 
     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 
    59 
    6  
    7 rm -f sub_config1.py 
    8 rm -f sub_config2.py 
    9 rm -f sub_check.py 
    10 rm -f default_param.py 
    11  
    12 cp -n ../../user_config.py sub_config1.py 
    13 cp -n ../../config.py sub_config2.py 
    14 cp -n ../../check.py sub_check.py 
    15 cp -n ../../default_param.py default_param.py 
    1610 
    1711# Black        0;30     Dark Gray     1;30 
     
    2519 
    2620 
     21 
    2722Color='\033[0;36m' 
    2823NC='\033[0m' # No Color 
     
    3227echo " " >> report.txt 
    3328echo " " >> report.txt 
    34 echo -e "testing ${Color}accumulate${NC} reduce..." >> report.txt  
     29echo -e "testing ${Color}accumulate${NC} reduce..." >> report.txt 
    3530echo " " >> report.txt 
    36  
    3731 
    3832touch report.html 
     
    5852 
    5953nb_proc=$(python sub_config2.py 2>&1)  
    60 nb_jz=$(($nb_proc-1)) 
    6154 
    6255if [[ ($machine_name == irene) ]] 
     
    7063then 
    7164    echo "Testing on Jean-Zay"  
    72     # touch srun.conf 
    73     # > srun.conf 
    74     # echo "0-"$nb_jz " ../../../build_prod/bin/generic_testcase.exe">> srun.conf 
    75     #srun --mpi=pmi2 -K1 --multi-prog -m cyclic ./srun.conf  
    7665    srun -n $nb_proc --mpi=pmi2 ../../../build_prod/bin/generic_testcase.exe 
    7766else 
     
    8574 
    8675done 
     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.