Changeset 1729 for XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_scalar_algo
- Timestamp:
- 10/03/19 16:28:14 (5 years ago)
- Location:
- XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_scalar_algo
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_scalar_algo/CMakeLists.txt
r1721 r1729 1 ############################## 2 # file generated by setup.py # 3 # DO NOT modify # 4 ############################## 5 1 6 cmake_minimum_required(VERSION 2.8.12.2) 2 7 3 8 project(generic_testcase) 4 9 10 find_package(PythonInterp REQUIRED) 5 11 6 12 enable_testing() 7 13 14 add_test( NAME test_scalar_algo_config0 15 COMMAND ${PYTHON_EXECUTABLE} 16 ${CMAKE_CURRENT_BINARY_DIR}/run_test_0.py 17 test_scalar_algo_config0) 8 18 9 add_test( scalar_algo ./run_sub_test.sh) 19 add_test( NAME test_scalar_algo_config1 20 COMMAND ${PYTHON_EXECUTABLE} 21 ${CMAKE_CURRENT_BINARY_DIR}/run_test_1.py 22 test_scalar_algo_config1) 23 24 add_test( NAME test_scalar_algo_config2 25 COMMAND ${PYTHON_EXECUTABLE} 26 ${CMAKE_CURRENT_BINARY_DIR}/run_test_2.py 27 test_scalar_algo_config2) 28 29 add_test( NAME test_scalar_algo_config3 30 COMMAND ${PYTHON_EXECUTABLE} 31 ${CMAKE_CURRENT_BINARY_DIR}/run_test_3.py 32 test_scalar_algo_config3) 33 -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_scalar_algo/iodef.xml
r1728 r1729 7 7 8 8 <variable id="timestep"> 1h </variable> 9 <variable id="domain"> lmdz</variable>9 <variable id="domain"> atm::domain </variable> 10 10 <variable id="domain_mask"> true </variable> 11 11 <variable id="axis_mask"> true </variable> … … 55 55 <variable id="info_level" type="int">100</variable> 56 56 <variable id="print_file" type="bool">true</variable> 57 <variable id="using_server2" type="bool"> false</variable>58 <variable id="ratio_server2" type="int"> 50</variable>59 <variable id="number_pools_server2" type="int"> 1</variable>57 <variable id="using_server2" type="bool">xios::usingSrv2</variable> 58 <variable id="ratio_server2" type="int">xios::ratioSrv2</variable> 59 <variable id="number_pools_server2" type="int">xios::nbplSrv2</variable> 60 60 <variable id="pure_one_sided" type="bool">false</variable> 61 61 <variable id="check_event_sync" type="bool">true</variable> -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_scalar_algo/job_irene.sh
r1718 r1729 49 49 #ccc_mprun tau_exec -io ../../bin/test_send.exe 50 50 #ddt -start -n 8 ../buile_intelmpi/bin/test_omp.exe 51 51 python setup.py 52 52 cmake . 53 53 make test -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_scalar_algo/run_sub_test.sh
r1728 r1729 1 1 #!/bin/bash 2 yes | cp ../context_grid_dynamico.xml ./3 yes | cp ../dynamico_grid.nc ./4 2 5 yes | cp ../user_config.py sub_config1.py6 yes | cp ../config.py sub_config2.py7 yes | cp ../check.py sub_check.py8 yes | cp ../default_param.py default_param.py9 3 10 yes | cp ../iodef.xml iodef.xml 4 5 cp ../context_grid_dynamico.xml ./ 6 cp ../dynamico_grid.nc ./ 7 8 cp ../config.py sub_config.py 9 cp ../check.py sub_check.py 10 11 cp ../default_param.py default_param.py 12 13 14 cp ../iodef.xml iodef.xml 11 15 12 16 # Black 0;30 Dark Gray 1;30 … … 20 24 21 25 26 mv iodef.xml iodef.xml.bkp 22 27 23 Color='\033[0;36m' 24 NC='\033[0m' # No Color 28 nb_proc=$(python sub_config.py 2>&1) 25 29 26 touch report.txt 27 > report.txt 28 echo " " >> report.txt 29 echo " " >> report.txt 30 echo -e "testing ${Color}scalar${NC} algorithms..." >> report.txt 31 echo " " >> report.txt 30 machine_name=jeanzay 32 31 33 touch report.html 34 > report.html 35 echo "<br> " >> report.html 36 echo "<br> " >> report.html 37 echo "<br> " >> report.html 38 echo "<p>testing <font color="blue">scalar</font> algorithms...</p>" >> report.html 39 echo "<br> " >> report.html 40 41 nb_config=$(python sub_config1.py 2>&1) 42 43 44 counter=0 45 while [ $counter -lt $nb_config ] 46 do 47 48 rm -f user_param.py 49 50 cp user_param.py.$counter user_param.py 51 52 ((counter++)) 53 54 nb_proc=$(python sub_config2.py 2>&1) 55 32 echo $nb_proc 56 33 if [[ ($machine_name == irene) ]] 57 34 then 58 35 echo "Testing on Irene" 59 36 ccc_mprun -n $nb_proc ../../build_prod/bin/generic_testcase.exe 60 37 elif [[($machine_name == ada)]] … … 67 44 srun -n $nb_proc --mpi=pmi2 ../../build_prod/bin/generic_testcase.exe 68 45 if [ $? -ne 0 ] 69 70 46 then 47 echo "execution failed" 71 48 rm -f iodef.xml 72 49 mv iodef.xml.bkp iodef.xml 50 rm -f user_param.py 73 51 rm -f default_param.py 74 rm -f default_param.pyc 75 rm -f user_param.pyc 76 rm -f user_param.py.* 77 rm -f sub_*.py 78 exit 1234 52 rm -f sub_config.py 53 exit 1234 79 54 fi 80 55 else … … 87 62 rm -f iodef.xml 88 63 mv iodef.xml.bkp iodef.xml 89 90 done 64 rm -f user_param.py 91 65 rm -f default_param.py 92 rm -f default_param.pyc 93 rm -f user_param.pyc 94 rm -f user_param.py.* 95 rm -f sub_*.py 66 rm -f sub_config.py
Note: See TracChangeset
for help on using the changeset viewer.