Changeset 1721


Ignore:
Timestamp:
09/25/19 11:58:48 (5 years ago)
Author:
yushan
Message:

Generic_testcase : add folder xios_output in config reference to store XIOS output files

Location:
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE
Files:
21 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/check.py

    r1720 r1721  
    1414        magenta = lambda text: '\033[0;35m' + text + '\033[0m' 
    1515        cyan = lambda text: '\033[0;36m' + text + '\033[0m' 
    16         white = lambda text: '\033[0;37m' + text + '\033[0m' 
     16        lgray = lambda text: '\033[0;37m' + text + '\033[0m' 
     17        dgray = lambda text: '\033[1;30m' + text + '\033[0m' 
     18        lred = lambda text: '\033[1;32m' + text + '\033[0m' 
     19        lgreen = lambda text: '\033[1;32m' + text + '\033[0m' 
     20        lyellow = lambda text: '\033[1;33m' + text + '\033[0m' 
     21        lblue = lambda text: '\033[1;34m' + text + '\033[0m' 
     22        lpurple = lambda text: '\033[1;35m' + text + '\033[0m' 
     23        lcyan = lambda text: '\033[1;36m' + text + '\033[0m' 
     24        white = lambda text: '\033[1;37m' + text + '\033[0m' 
    1725         
    1826        configNamePattern=[0]*7 
     
    5967                os.mkdir(configName+'/setup') 
    6068                os.mkdir(configName+'/tmp_reference') 
     69                os.mkdir(configName+'/xios_output') 
    6170                 
    6271                os.system('cp param.def '+configName+'/setup/') 
     
    6675                os.system('cp context_grid_dynamico.xml '+configName+'/setup/') 
    6776                os.system('cp dynamico_grid.nc '+configName+'/setup/') 
     77                os.system('mv xios_*.out '+configName+'/xios_output/') 
     78                os.system('mv xios_*.err '+configName+'/xios_output/') 
    6879                 
    6980 
     
    7788                                os.system(cmd) 
    7889 
    79                                 h.write("test for "+configName+" for file "+line+"     \t"+yellow('INITIALIZED')+"\n")           
     90                                h.write("test for "+configName+" for file "+lpurple(line)+"     \t"+yellow('INITIALIZED')+"\n")          
    8091                                print yellow("\n        ****************************************") 
    8192                                print yellow("        ** "+line+" is stored as temporal reference !!! **") 
     
    122133 
    123134                                if os.stat("diff.txt").st_size==0: 
    124                                         h.write("test for "+configName+" for file "+line+"     \t"+green('PASSED')+"\n")                 
     135                                        h.write("test for "+configName+" for file "+lpurple(line)+"     \t"+green('PASSED')+"\n")                
    125136                                        print green("\n        ****************************************") 
    126137                                        print green("        ** "+line+" is valid !!! **") 
     
    131142                                        for gline in g: 
    132143                                                if gline.strip().startswith("0") or ":" in gline : 
    133                                                         h.write("test for "+configName+" for file "+line+"      \t"+green('PASSED')+"\n")                
     144                                                        h.write("test for "+configName+" for file "+lpurple(line)+"      \t"+green('PASSED')+"\n")               
    134145                                                        print green("\n        ****************************************") 
    135146                                                        print green("        ** "+line+" is valid !!! **") 
    136147                                                        print green("\n        ****************************************") 
    137148                                                else: 
    138                                                         h.write("test for "+configName+" for file "+line+"     \t"+red('FAILED')+"\n")           
     149                                                        h.write("test for "+configName+" for file "+lpurple(line)+"     \t"+red('FAILED')+"\n")          
    139150                                                        print red("\n        **************************************************") 
    140151                                                        print red("        ** "+line+" is NOT valid. Please debugging.. **") 
  • XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/default_param.py

    r1712 r1721  
    22RatioServer2 = 50 
    33NumberPoolsServer2 = 1 
    4 NumberClients = 8 
     4NumberClients = 4 
    55NumberServers = 4 
    66Duration = '1d' 
  • XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_axis_algo/param.def

    r1713 r1721  
    11&params_run 
    2 nb_proc_atm = 8 
     2nb_proc_atm = 4 
    33duration = '1d' 
    44/ 
  • XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_axis_algo/run_sub_test.sh

    r1718 r1721  
    1212 
    1313 
     14# Black        0;30     Dark Gray     1;30 
     15# Red          0;31     Light Red     1;31 
     16# Green        0;32     Light Green   1;32 
     17# Brown/Orange 0;33     Yellow        1;33 
     18# Blue         0;34     Light Blue    1;34 
     19# Purple       0;35     Light Purple  1;35 
     20# Cyan         0;36     Light Cyan    1;36 
     21# Light Gray   0;37     White         1;37 
     22 
     23 
     24 
     25Color='\033[0;36m' 
     26NC='\033[0m' # No Color 
     27 
    1428touch report.txt 
    1529> report.txt 
    1630echo " " >> report.txt 
    1731echo " " >> report.txt 
    18 echo "testing axis algorithms..." >> report.txt 
     32echo -e "testing ${Color}axis${NC} algorithms..." >> report.txt 
    1933echo " " >> report.txt 
    2034 
  • XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_domain_algo/CMakeLists.txt

    r1714 r1721  
    77 
    88 
    9 add_test( domain ./run_sub_test.sh) 
     9add_test( domain_algo ./run_sub_test.sh) 
  • XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_domain_algo/param.def

    r1714 r1721  
    11&params_run 
    2 nb_proc_atm = 8 
     2nb_proc_atm = 4 
    33duration = '1d' 
    44/ 
  • XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_domain_algo/run_sub_test.sh

    r1718 r1721  
    1111cp -n ../default_param.py default_param.py 
    1212 
     13# Black        0;30     Dark Gray     1;30 
     14# Red          0;31     Light Red     1;31 
     15# Green        0;32     Light Green   1;32 
     16# Brown/Orange 0;33     Yellow        1;33 
     17# Blue         0;34     Light Blue    1;34 
     18# Purple       0;35     Light Purple  1;35 
     19# Cyan         0;36     Light Cyan    1;36 
     20# Light Gray   0;37     White         1;37 
     21 
     22 
     23 
     24Color='\033[0;36m' 
     25NC='\033[0m' # No Color 
    1326 
    1427touch report.txt 
     
    1629echo " " >> report.txt 
    1730echo " " >> report.txt 
    18 echo "testing domain algorithms..." >> report.txt  
     31echo -e "testing ${Color}domain${NC} algorithms..." >> report.txt  
    1932echo " " >> report.txt 
    2033 
  • XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_function/test_average/CMakeLists.txt

    r1715 r1721  
    77 
    88 
    9 add_test( average ./run_sub_test.sh) 
     9add_test( average_reduce ./run_sub_test.sh) 
  • XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_function/test_average/run_sub_test.sh

    r1718 r1721  
    1515cp -n ../../default_param.py default_param.py 
    1616 
     17# Black        0;30     Dark Gray     1;30 
     18# Red          0;31     Light Red     1;31 
     19# Green        0;32     Light Green   1;32 
     20# Brown/Orange 0;33     Yellow        1;33 
     21# Blue         0;34     Light Blue    1;34 
     22# Purple       0;35     Light Purple  1;35 
     23# Cyan         0;36     Light Cyan    1;36 
     24# Light Gray   0;37     White         1;37 
     25 
     26 
     27Color='\033[0;36m' 
     28NC='\033[0m' # No Color 
    1729 
    1830touch report.txt 
     
    2032echo " " >> report.txt 
    2133echo " " >> report.txt 
    22 echo "testing average reduce..." >> report.txt  
     34echo -e "testing ${Color}average${NC} reduce..." >> report.txt 
    2335echo " " >> report.txt 
    2436 
  • XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_function/test_maximum/CMakeLists.txt

    r1715 r1721  
    77 
    88 
    9 add_test( maximum ./run_sub_test.sh) 
     9add_test( maximum_reduce ./run_sub_test.sh) 
  • XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_function/test_maximum/run_sub_test.sh

    r1718 r1721  
    1515cp -n ../../default_param.py default_param.py 
    1616 
     17# Black        0;30     Dark Gray     1;30 
     18# Red          0;31     Light Red     1;31 
     19# Green        0;32     Light Green   1;32 
     20# Brown/Orange 0;33     Yellow        1;33 
     21# Blue         0;34     Light Blue    1;34 
     22# Purple       0;35     Light Purple  1;35 
     23# Cyan         0;36     Light Cyan    1;36 
     24# Light Gray   0;37     White         1;37 
     25 
     26 
     27Color='\033[0;36m' 
     28NC='\033[0m' # No Color 
     29 
    1730 
    1831touch report.txt 
     
    2033echo " " >> report.txt 
    2134echo " " >> report.txt 
    22 echo "testing maximum reduce..." >> report.txt  
     35echo -e "testing ${Color}maximum${NC} reduce..." >> report.txt  
    2336echo " " >> report.txt 
    2437 
  • XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_function/test_minimum/CMakeLists.txt

    r1715 r1721  
    77 
    88 
    9 add_test( minimum ./run_sub_test.sh) 
     9add_test( minimum_reduce ./run_sub_test.sh) 
  • XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_function/test_minimum/run_sub_test.sh

    r1718 r1721  
    1515cp -n ../../default_param.py default_param.py 
    1616 
     17# Black        0;30     Dark Gray     1;30 
     18# Red          0;31     Light Red     1;31 
     19# Green        0;32     Light Green   1;32 
     20# Brown/Orange 0;33     Yellow        1;33 
     21# Blue         0;34     Light Blue    1;34 
     22# Purple       0;35     Light Purple  1;35 
     23# Cyan         0;36     Light Cyan    1;36 
     24# Light Gray   0;37     White         1;37 
     25 
     26 
     27Color='\033[0;36m' 
     28NC='\033[0m' # No Color 
    1729 
    1830touch report.txt 
     
    2032echo " " >> report.txt 
    2133echo " " >> report.txt 
    22 echo "testing minimum reduce..." >> report.txt  
     34echo -e "testing ${Color}minimum${NC} reduce..." >> report.txt  
    2335echo " " >> report.txt 
    2436 
  • XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_function/test_sum/CMakeLists.txt

    r1715 r1721  
    77 
    88 
    9 add_test( sum ./run_sub_test.sh) 
     9add_test( accumulate_reduce ./run_sub_test.sh) 
  • XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_function/test_sum/run_sub_test.sh

    r1718 r1721  
    1515cp -n ../../default_param.py default_param.py 
    1616 
     17# Black        0;30     Dark Gray     1;30 
     18# Red          0;31     Light Red     1;31 
     19# Green        0;32     Light Green   1;32 
     20# Brown/Orange 0;33     Yellow        1;33 
     21# Blue         0;34     Light Blue    1;34 
     22# Purple       0;35     Light Purple  1;35 
     23# Cyan         0;36     Light Cyan    1;36 
     24# Light Gray   0;37     White         1;37 
     25 
     26 
     27Color='\033[0;36m' 
     28NC='\033[0m' # No Color 
    1729 
    1830touch report.txt 
     
    2032echo " " >> report.txt 
    2133echo " " >> report.txt 
    22 echo "testing sum reduce..." >> report.txt  
     34echo -e "testing ${Color}accumulate${NC} reduce..." >> report.txt  
    2335echo " " >> report.txt 
    2436 
  • XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_grid_algo/CMakeLists.txt

    r1714 r1721  
    77 
    88 
    9 add_test( grid ./run_sub_test.sh) 
     9add_test( grid_algo ./run_sub_test.sh) 
  • XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_grid_algo/param.def

    r1714 r1721  
    11&params_run 
    2 nb_proc_atm = 8 
     2nb_proc_atm = 4 
    33duration = '1d' 
    44/ 
  • XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_grid_algo/run_sub_test.sh

    r1718 r1721  
    1111cp -n ../default_param.py default_param.py 
    1212 
     13# Black        0;30     Dark Gray     1;30 
     14# Red          0;31     Light Red     1;31 
     15# Green        0;32     Light Green   1;32 
     16# Brown/Orange 0;33     Yellow        1;33 
     17# Blue         0;34     Light Blue    1;34 
     18# Purple       0;35     Light Purple  1;35 
     19# Cyan         0;36     Light Cyan    1;36 
     20# Light Gray   0;37     White         1;37 
     21 
     22 
     23Color='\033[0;36m' 
     24NC='\033[0m' # No Color 
    1325 
    1426touch report.txt 
     
    1628echo " " >> report.txt 
    1729echo " " >> report.txt 
    18 echo "testing grid algorithms..." >> report.txt  
     30echo -e "testing ${Color}grid${NC} algorithms..." >> report.txt  
    1931echo " " >> report.txt 
    2032 
  • XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_scalar_algo/CMakeLists.txt

    r1714 r1721  
    77 
    88 
    9 add_test( scalar ./run_sub_test.sh) 
     9add_test( scalar_algo ./run_sub_test.sh) 
  • XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_scalar_algo/param.def

    r1714 r1721  
    11&params_run 
    2 nb_proc_atm = 8 
     2nb_proc_atm = 4 
    33duration = '1d' 
    44/ 
  • XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_scalar_algo/run_sub_test.sh

    r1718 r1721  
    1010cp -n ../default_param.py default_param.py 
    1111 
     12# Black        0;30     Dark Gray     1;30 
     13# Red          0;31     Light Red     1;31 
     14# Green        0;32     Light Green   1;32 
     15# Brown/Orange 0;33     Yellow        1;33 
     16# Blue         0;34     Light Blue    1;34 
     17# Purple       0;35     Light Purple  1;35 
     18# Cyan         0;36     Light Cyan    1;36 
     19# Light Gray   0;37     White         1;37 
     20 
     21 
     22Color='\033[0;36m' 
     23NC='\033[0m' # No Color 
    1224 
    1325touch report.txt 
     
    1527echo " " >> report.txt 
    1628echo " " >> report.txt 
    17 echo "testing scalar algorithms..." >> report.txt  
     29echo -e "testing ${Color}scalar${NC} algorithms..." >> report.txt  
    1830echo " " >> report.txt 
    1931 
Note: See TracChangeset for help on using the changeset viewer.