Ignore:
Timestamp:
09/11/19 16:39:35 (5 years ago)
Author:
yushan
Message:

Generic_testcase : add a bash script for launching tests in different sub-folders (test_function, test_axis_algo). Generate a status report test_report.txt for all tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_function/run.sh

    r1701 r1706  
    11#!/bin/bash 
    22 
     3touch report.txt 
     4> report.txt 
     5 
    36nb_config=$(python mul_Config.py 2>&1)                                                                                                                     
    4 # mkdir $va 
    57 
    68 
     
    810while [ $counter -lt $nb_config ] 
    911do 
     12 
    1013rm -f user_param.py 
    11 # echo $counter 
     14 
    1215cp user_param.py.$counter user_param.py 
    13 # echo $? 
    1416 
    15 # echo cp -n user_param.py.$counter user_param.py 
    1617((counter++)) 
    1718 
    18 python Config.py 
    19 mpirun -np 10 ../../build_prod/bin/generic_testcase.exe 
     19nb_proc=$(python Config.py 2>&1)  
     20 
     21mpirun -np $nb_proc ../../build_prod/bin/generic_testcase.exe 
     22 
    2023python Check.py 
     24# echo $valid 
     25 
    2126done 
Note: See TracChangeset for help on using the changeset viewer.