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/test_function
Files:
4 added
7 edited

Legend:

Unmodified
Added
Removed
  • 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' 
Note: See TracChangeset for help on using the changeset viewer.