Changeset 1716


Ignore:
Timestamp:
09/17/19 11:03:53 (5 years ago)
Author:
yushan
Message:

Generic_testcase : Tests can be launched via job script now. llsubmit job.sh in root or test folder

Location:
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE
Files:
5 added
17 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/CMakeLists.txt

    r1715 r1716  
    1717        POST_BUILD  
    1818        COMMAND rm -f report.txt 
    19         COMMAND cat */report.txt > report.txt 
    20         COMMAND cat */*/report.txt >> report.txt) 
     19        COMMAND cat */*/report.txt > report.txt 
     20        COMMAND cat */report.txt >> report.txt) 
  • XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/config.py

    r1713 r1716  
    3939        fileout = open("iodef.xml.tmp", "w") 
    4040        for line in filein: 
    41                 if 'xios::nbplSrv2' in line: 
    42                         line = line.replace("xios::nbplSrv2", repr(NumberPoolsServer2)) 
    43                         fileout.write(line) 
    44                 elif 'xios::usingSrv2' in line: 
    45                         line = line.replace("xios::usingSrv2", UsingServer2) 
    46                         fileout.write(line) 
    47                 elif 'xios::ratioSrv2' in line: 
    48                         line=line.replace("xios::ratioSrv2", repr(RatioServer2)) 
    49                         fileout.write(line) 
    50                 elif 'atm::domain' in line: 
    51                         line=line.replace("atm::domain", ATMdomain) 
    52                         fileout.write(line) 
    53                 else: 
    54                         fileout.write(line) 
     41                if 'xios::nbplSrv2' in line:    line = line.replace("xios::nbplSrv2", repr(NumberPoolsServer2)) 
     42                if 'xios::usingSrv2' in line:   line = line.replace("xios::usingSrv2", UsingServer2) 
     43                if 'xios::ratioSrv2' in line:   line=line.replace("xios::ratioSrv2", repr(RatioServer2)) 
     44                if 'atm::domain' in line:       line=line.replace("atm::domain", ATMdomain) 
     45                fileout.write(line) 
     46                 
    5547 
    5648        filein.close() 
  • XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_axis_algo/job.sh

    r1694 r1716  
    2929module load intel/2018.2 
    3030module load gcc/6.4.0 
     31module load cdo 
     32module load cmake 
    3133 
    3234# The LOADL_STEP_INITDIR vaiable is automatically set by 
     
    4042 
    4143# Execution of a parallel hybrid program (MPI + threads). 
    42 mpirun -np $NB_TASKS ../../build_prod/bin/generic_testcase.exe 
     44 
     45cmake . 
     46make test 
    4347 
    4448 
    45  
  • XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_axis_algo/run_sub_test.sh

    r1714 r1716  
    1414touch report.txt 
    1515> report.txt 
     16echo " " >> report.txt 
     17echo " " >> report.txt 
    1618echo "testing axis algorithms..." >> report.txt 
     19echo " " >> report.txt 
    1720 
    1821nb_config=$(python sub_config1.py 2>&1)                                                                                                                     
  • XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_domain_algo/job.sh

    r1694 r1716  
    2929module load intel/2018.2 
    3030module load gcc/6.4.0 
     31module load cdo 
     32module load cmake 
    3133 
    3234# The LOADL_STEP_INITDIR vaiable is automatically set by 
     
    4042 
    4143# Execution of a parallel hybrid program (MPI + threads). 
    42 mpirun -np $NB_TASKS ../../build_prod/bin/generic_testcase.exe 
     44 
     45cmake . 
     46make test 
    4347 
    4448 
    45  
  • XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_domain_algo/run_sub_test.sh

    r1714 r1716  
    1414touch report.txt 
    1515> report.txt 
     16echo " " >> report.txt 
     17echo " " >> report.txt 
    1618echo "testing domain algorithms..." >> report.txt  
     19echo " " >> report.txt 
    1720 
    1821nb_config=$(python sub_config1.py 2>&1)                                                                                                                     
  • XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_function/CMakeLists.txt

    r1715 r1716  
    1111add_subdirectory(test_sum) 
    1212 
    13 #add_test( functions ./run_sub_test.sh) 
     13add_custom_target("subreport") 
     14add_custom_command(TARGET "subreport"  
     15        POST_BUILD  
     16        COMMAND rm -f subreport.txt 
     17        COMMAND cat */report.txt > subreport.txt) 
  • XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_function/job.sh

    r1694 r1716  
    2929module load intel/2018.2 
    3030module load gcc/6.4.0 
     31module load cdo 
     32module load cmake 
    3133 
    3234# The LOADL_STEP_INITDIR vaiable is automatically set by 
     
    4042 
    4143# Execution of a parallel hybrid program (MPI + threads). 
    42 mpirun -np $NB_TASKS ../../build_prod/bin/generic_testcase.exe 
     44 
     45cmake . 
     46 
     47make test 
     48 
     49make subreport 
    4350 
    4451 
    45  
  • XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_function/test_average/run_sub_test.sh

    r1715 r1716  
    1818touch report.txt 
    1919> report.txt 
     20echo " " >> report.txt 
     21echo " " >> report.txt 
    2022echo "testing average reduce..." >> report.txt  
     23echo " " >> report.txt 
    2124 
    2225nb_config=$(python sub_config1.py 2>&1)                                                                                                                     
  • XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_function/test_maximum/run_sub_test.sh

    r1715 r1716  
    1818touch report.txt 
    1919> report.txt 
     20echo " " >> report.txt 
     21echo " " >> report.txt 
    2022echo "testing maximum reduce..." >> report.txt  
     23echo " " >> report.txt 
    2124 
    2225nb_config=$(python sub_config1.py 2>&1)                                                                                                                     
  • XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_function/test_minimum/run_sub_test.sh

    r1715 r1716  
    1818touch report.txt 
    1919> report.txt 
     20echo " " >> report.txt 
     21echo " " >> report.txt 
    2022echo "testing minimum reduce..." >> report.txt  
     23echo " " >> report.txt 
    2124 
    2225nb_config=$(python sub_config1.py 2>&1)                                                                                                                     
  • XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_function/test_sum/run_sub_test.sh

    r1715 r1716  
    1818touch report.txt 
    1919> report.txt 
     20echo " " >> report.txt 
     21echo " " >> report.txt 
    2022echo "testing sum reduce..." >> report.txt  
     23echo " " >> report.txt 
    2124 
    2225nb_config=$(python sub_config1.py 2>&1)                                                                                                                     
  • XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_function/test_sum/user_params.def

    r1715 r1716  
    1111# e.g. NumberServers = 2, 4, 8   
    1212 
    13 NumberServers = 2 
    14 UsingServer2 = 'false' 
     13NumberServers = 2, 4 
     14UsingServer2 = 'false', 'true' 
    1515ATMdomain = 'lmdz' 
  • XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_grid_algo/job.sh

    r1694 r1716  
    2929module load intel/2018.2 
    3030module load gcc/6.4.0 
     31module load cdo 
     32module load cmake 
    3133 
    3234# The LOADL_STEP_INITDIR vaiable is automatically set by 
     
    4042 
    4143# Execution of a parallel hybrid program (MPI + threads). 
    42 mpirun -np $NB_TASKS ../../build_prod/bin/generic_testcase.exe 
     44 
     45cmake . 
     46make test 
    4347 
    4448 
    45  
  • XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_grid_algo/run_sub_test.sh

    r1714 r1716  
    1414touch report.txt 
    1515> report.txt 
     16echo " " >> report.txt 
     17echo " " >> report.txt 
    1618echo "testing grid algorithms..." >> report.txt  
     19echo " " >> report.txt 
    1720 
    1821nb_config=$(python sub_config1.py 2>&1)                                                                                                                     
  • XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_scalar_algo/job.sh

    r1697 r1716  
    2929module load intel/2018.2 
    3030module load gcc/6.4.0 
     31module load cdo 
     32module load cmake 
    3133 
    3234# The LOADL_STEP_INITDIR vaiable is automatically set by 
     
    4042 
    4143# Execution of a parallel hybrid program (MPI + threads). 
    42 mpirun -np $NB_TASKS ../../build_prod/bin/generic_testcase.exe 
     44 
     45cmake . 
     46make test 
    4347 
    4448 
    45  
  • XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_scalar_algo/run_sub_test.sh

    r1714 r1716  
    1313touch report.txt 
    1414> report.txt 
     15echo " " >> report.txt 
     16echo " " >> report.txt 
    1517echo "testing scalar algorithms..." >> report.txt  
     18echo " " >> report.txt 
    1619 
    1720nb_config=$(python sub_config1.py 2>&1)                                                                                                                     
Note: See TracChangeset for help on using the changeset viewer.