Changeset 1725
- Timestamp:
- 09/26/19 17:13:09 (5 years ago)
- Location:
- XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE
- Files:
-
- 2 deleted
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/check.py
r1723 r1725 81 81 f=open("checkfile.def", "r") 82 82 h=open("report.txt", "a+") 83 l=open("report.html", "a+") 84 h.write("Config : "+configName+"\n") 85 l.write("<p>Config : "+configName+"</p>") 83 86 for line in f: 84 87 line=line.strip() … … 88 91 os.system(cmd) 89 92 90 h.write("test for "+configName+" for file "+lpurple(line)+" \t"+yellow('INITIALIZED')+"\n") 93 h.write("test for "+lpurple(line)+" \t"+yellow('INITIALIZED')+"\n") 94 l.write("<p>test for <font color=\"purple\">"+line+"</font> <font color=\"darkorange\">INITIALIZED</font></p>") 91 95 print yellow("\n ****************************************") 92 96 print yellow(" ** "+line+" is stored as temporal reference !!! **") … … 94 98 95 99 f.close() 100 h.write("\n") 101 l.write("<br>") 96 102 h.close() 97 103 … … 124 130 125 131 126 132 h.write("Config : "+configName+"\n") 133 l.write("<p>Config : "+configName+"</p>") 127 134 for line in f: 128 135 … … 135 142 136 143 if os.stat("diff.txt").st_size==0: 137 h.write("test for "+ configName+" for file "+lpurple(line)+" \t"+green('PASSED')+"\n")138 l.write("<p>test for "+configName+" for file<font color=\"purple\">"+line+"</font> <font color=\"green\">PASSED</font></p>")144 h.write("test for "+lpurple(line)+" \t"+green('PASSED')+"\n") 145 l.write("<p>test for <font color=\"purple\">"+line+"</font> <font color=\"green\">PASSED</font></p>") 139 146 print green("\n ****************************************") 140 147 print green(" ** "+line+" is valid !!! **") … … 145 152 for gline in g: 146 153 if gline.strip().startswith("0") or ":" in gline : 147 h.write("test for "+ configName+" for file "+lpurple(line)+" \t"+green('PASSED')+"\n")148 l.write("<p>test for "+configName+" for file<font color=\"purple\">"+line+"</font> <font color=\"green\">PASSED</font></p>")154 h.write("test for "+lpurple(line)+" \t"+green('PASSED')+"\n") 155 l.write("<p>test for <font color=\"purple\">"+line+"</font> <font color=\"green\">PASSED</font></p>") 149 156 print green("\n ****************************************") 150 157 print green(" ** "+line+" is valid !!! **") 151 158 print green("\n ****************************************") 152 159 else: 153 h.write("test for "+ configName+" for file "+lpurple(line)+" \t"+red('FAILED')+"\n")154 l.write("<p>test for "+configName+" for file<font color=\"purple\">"+line+"</font> <font color=\"red\">FAILED</font></p>")160 h.write("test for "+lpurple(line)+" \t"+red('FAILED')+"\n") 161 l.write("<p>test for <font color=\"purple\">"+line+"</font> <font color=\"red\">FAILED</font></p>") 155 162 print red("\n **************************************************") 156 163 print red(" ** "+line+" is NOT valid. Please debugging.. **") … … 158 165 g.close() 159 166 f.close() 167 h.write("\n") 168 l.write("<br>") 160 169 h.close() 161 170 -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/clean_config.sh
r1722 r1725 1 cd test_function/test_average 2 rm -rf config_* 1 bash -c "cd test_function/test_average && rm -rf config_*" 2 bash -c "cd test_function/test_maximum && rm -rf config_*" 3 bash -c "cd test_function/test_minimum && rm -rf config_*" 4 bash -c "cd test_function/test_sum && rm -rf config_*" 5 bash -c "cd test_scalar_algo && rm -rf config_*" 6 bash -c "cd test_axis_algo && rm -rf config_*" 7 bash -c "cd test_domain_algo && rm -rf config_*" 8 bash -c "cd test_grid_algo && rm -rf config_*" 3 9 4 cd ../test_maximum5 rm -rf config_*6 10 7 cd ../test_minimum8 rm -rf config_*9 10 cd ../test_sum11 rm -rf config_*12 13 cd ../../test_scalar_algo14 rm -rf config_*15 16 cd ../test_axis_algo17 rm -rf config_*18 19 cd ../test_domain_algo20 rm -rf config_*21 22 cd ../test_grid_algo23 rm -rf config_*24 -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_axis_algo/checkfile.def
r1714 r1725 1 #atm_output_1.nc2 1 3 atm_output .nc4 atm_output_copy.nc2 atm_output_zoom.nc 3 #atm_output_inverse.nc -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_axis_algo/context_atm.xml
r1718 r1725 26 26 <zoom_axis begin="0" n="5"/> 27 27 </axis> 28 28 29 <axis id="domain_X_zoom" axis_ref="domain_X"> 29 30 <zoom_axis begin="0" n="10"/> 30 31 </axis> 32 31 33 <axis id="domain_Y_zoom" axis_ref="domain_Y"> 32 34 <zoom_axis begin="3" n="5"/> 33 35 </axis> 36 34 37 </axis_definition> 35 38 … … 149 152 <axis axis_ref="domain_X_zoom" /> 150 153 <axis axis_ref="domain_Y" /> 151 152 </grid> 153 154 155 154 </grid> 155 156 157 156 158 157 159 … … 387 389 388 390 389 <file id="atm_output" output_freq="1ts" enabled="true"> 390 <field id="fieldXY_zoomY" field_ref="field_XY" grid_ref="grid_XY_zoom_Y" operation="instant" enabled="true"/> 391 </file> 392 393 <file id="atm_output_copy" output_freq="1ts" enabled="true"> 394 <field id="fieldXY_zoomY_copy" field_ref="field_XY" grid_ref="grid_XY_zoom_Y" operation="once" enabled="true"/> 395 <field id="fieldXY_zoomX" field_ref="field_XY" grid_ref="grid_XY_zoom_X" operation="once" enabled="false"/> 396 </file> 391 <file id="atm_output_zoom" output_freq="1ts" enabled="true"> 392 <field field_ref="field_XY" grid_ref="grid_XY_zoom_Y" operation="instant" enabled="true"/> 393 </file> 397 394 398 395 -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_axis_algo/run_sub_test.sh
r1723 r1725 35 35 touch report.html 36 36 > report.html 37 echo "<p> </p> " >> report.html 38 echo "<p> </p> " >> report.html 37 echo "<br> " >> report.html 38 echo "<br> " >> report.html 39 echo "<br> " >> report.html 39 40 echo "<p>testing <font color="blue">axis</font> algorithms...</p>" >> report.html 40 echo "< p> </p> " >> report.html41 echo "<br> " >> report.html 41 42 42 43 nb_config=$(python sub_config1.py 2>&1) … … 54 55 55 56 nb_proc=$(python sub_config2.py 2>&1) 57 nb_jz=$(($nb_proc-1)) 56 58 57 if [ $machine_name == irene]59 if [[ ($machine_name == irene) ]] 58 60 then 59 61 ccc_mprun -n $nb_proc ../../build_prod/bin/generic_testcase.exe 62 elif [[($machine_name == ada)]] 63 then 64 echo "Testing on ADA" 65 mpirun -np $nb_proc ../../build_prod/bin/generic_testcase.exe 66 elif [[($machine_name == jeanzay)]] 67 then 68 echo "Testing on Jean-Zay" 69 # touch srun.conf 70 # > srun.conf 71 # echo "0-"$nb_jz " ../../build_prod/bin/generic_testcase.exe">> srun.conf 72 # srun --mpi=pmi2 -K1 --multi-prog -m cyclic ./srun.conf 73 srun -n $nb_proc --mpi=pmi2 ../../build_prod/bin/generic_testcase.exe 60 74 else 61 mpirun -np $nb_proc ../../build_prod/bin/generic_testcase.exe75 echo "other machine" 62 76 fi 63 77 -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_axis_algo/user_params.def
r1713 r1725 11 11 # e.g. NumberServers = 2, 4, 8 12 12 13 NumberServers = 2 , 413 NumberServers = 2 14 14 ATMdomain='lmdz' 15 UsingServer2 = ' false', 'true'15 UsingServer2 = 'true' 16 16 # Duration = '1d', '2d' 17 17 # NumberPoolsServer2 = 1 -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_domain_algo/checkfile.def
r1714 r1725 1 #atm_output_1.nc2 1 3 2 atm_output.nc 3 4 atm_output_expand.nc 5 6 7 atm_output_extract.nc 8 9 atm_output_interpolate.nc 10 11 atm_output_zoom.nc -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_domain_algo/context_atm.xml
r1694 r1725 388 388 <file id="atm_output" output_freq="1ts" type="one_file" enabled="true"> 389 389 <!-- <field id="id_fieldXY" field_ref="field_XY" operation="once" enabled="true"/> --> 390 <field id="id_fieldX" field_ref="field_X" operation="once" enabled="true"/> 391 </file> 392 393 <file id="atm_output_zoom" output_freq="1ts" enabled="true"> 394 <field id="fieldX_zoomX" field_ref="field_X" grid_ref="grid_X_zoom" operation="once" enabled="true"/> 395 <!-- <field id="fieldXY_zoomX" field_ref="field_XY" grid_ref="grid_XY_zoom_X" operation="once" enabled="true"/> 396 <field id="fieldXY_zoomY" field_ref="field_XY" grid_ref="grid_XY_zoom_Y" operation="once" enabled="true"/> --> 390 <field field_ref="field_X" operation="instant" enabled="true"/> 391 </file> 392 393 <file id="atm_output_expand" output_freq="1ts" enabled="true"> 394 <field field_ref="field_X" operation="instant" enabled="true"/> 395 </file> 396 397 <file id="atm_output_extract" output_freq="1ts" enabled="true"> 398 <field field_ref="field_X" operation="instant" enabled="true"/> 399 </file> 400 401 <file id="atm_output_interpolate" output_freq="1ts" enabled="true"> 402 <field field_ref="field_X" operation="instant" enabled="true"/> 403 </file> 404 405 <file id="atm_output_zoom" output_freq="1ts" enabled="true"> 406 <field field_ref="field_X" operation="instant" enabled="true"/> 397 407 </file> 398 408 -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_domain_algo/run_sub_test.sh
r1723 r1725 35 35 touch report.html 36 36 > report.html 37 echo "<p> </p> " >> report.html 38 echo "<p> </p> " >> report.html 37 echo "<br> " >> report.html 38 echo "<br> " >> report.html 39 echo "<br> " >> report.html 39 40 echo "<p>testing <font color="blue">domain</font> algorithms...</p>" >> report.html 40 echo "< p> </p> " >> report.html41 echo "<br> " >> report.html 41 42 42 43 nb_config=$(python sub_config1.py 2>&1) … … 54 55 55 56 nb_proc=$(python sub_config2.py 2>&1) 57 nb_jz=$(($nb_proc-1)) 56 58 57 if [ $machine_name == irene]59 if [[ ($machine_name == irene) ]] 58 60 then 59 61 ccc_mprun -n $nb_proc ../../build_prod/bin/generic_testcase.exe 62 elif [[($machine_name == ada)]] 63 then 64 echo "Testing on ADA" 65 mpirun -np $nb_proc ../../build_prod/bin/generic_testcase.exe 66 elif [[($machine_name == jeanzay)]] 67 then 68 echo "Testing on Jean-Zay" 69 # touch srun.conf 70 # > srun.conf 71 # echo "0-"$nb_jz " ../../build_prod/bin/generic_testcase.exe">> srun.conf 72 # srun --mpi=pmi2 -K1 --multi-prog -m cyclic ./srun.conf 73 srun -n $nb_proc --mpi=pmi2 ../../build_prod/bin/generic_testcase.exe 60 74 else 61 mpirun -np $nb_proc ../../build_prod/bin/generic_testcase.exe75 echo "other machine" 62 76 fi 63 77 -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_domain_algo/user_params.def
r1714 r1725 12 12 13 13 NumberServers = 2, 4 14 UsingServer2 = ' false', 'true'14 UsingServer2 = 'true', 'false' 15 15 ATMdomain = 'lmdz' -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_function/test_average/run_sub_test.sh
r1723 r1725 38 38 touch report.html 39 39 > report.html 40 echo "<p> </p> " >> report.html 41 echo "<p> </p> " >> report.html 40 echo "<br> " >> report.html 41 echo "<br> " >> report.html 42 echo "<br> " >> report.html 42 43 echo "<p>testing <font color="blue">average</font> reduce...</p>" >> report.html 43 echo "< p> </p> " >> report.html44 echo "<br> " >> report.html 44 45 45 46 … … 58 59 59 60 nb_proc=$(python sub_config2.py 2>&1) 61 nb_jz=$(($nb_proc-1)) 60 62 61 if [ $machine_name == irene]63 if [[ ($machine_name == irene) ]] 62 64 then 63 65 ccc_mprun -n $nb_proc ../../../build_prod/bin/generic_testcase.exe 66 elif [[($machine_name == ada)]] 67 then 68 echo "Testing on ADA" 69 mpirun -np $nb_proc ../../../build_prod/bin/generic_testcase.exe 70 elif [[($machine_name == jeanzay)]] 71 then 72 echo "Testing on Jean-Zay" 73 # touch srun.conf 74 # > srun.conf 75 # echo "0-"$nb_jz " ../../../build_prod/bin/generic_testcase.exe">> srun.conf 76 # srun --mpi=pmi2 -K1 --multi-prog -m cyclic ./srun.conf 77 srun -n $nb_proc --mpi=pmi2 ../../../build_prod/bin/generic_testcase.exe 64 78 else 65 mpirun -np $nb_proc ../../../build_prod/bin/generic_testcase.exe79 echo "other machine" 66 80 fi 67 81 -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_function/test_maximum/run_sub_test.sh
r1723 r1725 39 39 touch report.html 40 40 > report.html 41 echo "<p> </p> " >> report.html 42 echo "<p> </p> " >> report.html 41 echo "<br> " >> report.html 42 echo "<br> " >> report.html 43 echo "<br> " >> report.html 43 44 echo "<p>testing <font color="blue">maximum</font> reduce...</p>" >> report.html 44 echo "< p> </p> " >> report.html45 echo "<br> " >> report.html 45 46 46 47 nb_config=$(python sub_config1.py 2>&1) … … 58 59 59 60 nb_proc=$(python sub_config2.py 2>&1) 61 nb_jz=$(($nb_proc-1)) 60 62 61 if [ $machine_name == irene]63 if [[ ($machine_name == irene) ]] 62 64 then 63 65 ccc_mprun -n $nb_proc ../../../build_prod/bin/generic_testcase.exe 66 elif [[($machine_name == ada)]] 67 then 68 echo "Testing on ADA" 69 mpirun -np $nb_proc ../../../build_prod/bin/generic_testcase.exe 70 elif [[($machine_name == jeanzay)]] 71 then 72 echo "Testing on Jean-Zay" 73 # touch srun.conf 74 # > srun.conf 75 # echo "0-"$nb_jz " ../../../build_prod/bin/generic_testcase.exe">> srun.conf 76 # srun --mpi=pmi2 -K1 --multi-prog -m cyclic ./srun.conf 77 srun -n $nb_proc --mpi=pmi2 ../../../build_prod/bin/generic_testcase.exe 64 78 else 65 mpirun -np $nb_proc ../../../build_prod/bin/generic_testcase.exe79 echo "other machine" 66 80 fi 67 81 -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_function/test_minimum/run_sub_test.sh
r1723 r1725 38 38 touch report.html 39 39 > report.html 40 echo "<p> </p> " >> report.html 41 echo "<p> </p> " >> report.html 40 echo "<br> " >> report.html 41 echo "<br> " >> report.html 42 echo "<br> " >> report.html 42 43 echo "<p>testing <font color="blue">minimum</font> reduce...</p>" >> report.html 43 echo "< p> </p> " >> report.html44 echo "<br> " >> report.html 44 45 45 46 nb_config=$(python sub_config1.py 2>&1) … … 57 58 58 59 nb_proc=$(python sub_config2.py 2>&1) 60 nb_jz=$(($nb_proc-1)) 59 61 60 if [ $machine_name == irene]62 if [[ ($machine_name == irene) ]] 61 63 then 62 64 ccc_mprun -n $nb_proc ../../../build_prod/bin/generic_testcase.exe 65 elif [[($machine_name == ada)]] 66 then 67 echo "Testing on ADA" 68 mpirun -np $nb_proc ../../../build_prod/bin/generic_testcase.exe 69 elif [[($machine_name == jeanzay)]] 70 then 71 echo "Testing on Jean-Zay" 72 # touch srun.conf 73 # > srun.conf 74 # echo "0-"$nb_jz " ../../../build_prod/bin/generic_testcase.exe">> srun.conf 75 # srun --mpi=pmi2 -K1 --multi-prog -m cyclic ./srun.conf 76 srun -n $nb_proc --mpi=pmi2 ../../../build_prod/bin/generic_testcase.exe 63 77 else 64 mpirun -np $nb_proc ../../../build_prod/bin/generic_testcase.exe78 echo "other machine" 65 79 fi 66 80 -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_function/test_sum/run_sub_test.sh
r1723 r1725 38 38 touch report.html 39 39 > report.html 40 echo "<p> </p> " >> report.html 41 echo "<p> </p> " >> report.html 40 echo "<br> " >> report.html 41 echo "<br> " >> report.html 42 echo "<br> " >> report.html 42 43 echo "<p>testing <font color="blue">accumulate</font> reduce...</p>" >> report.html 43 echo "< p> </p> " >> report.html44 echo "<br> " >> report.html 44 45 45 46 nb_config=$(python sub_config1.py 2>&1) … … 57 58 58 59 nb_proc=$(python sub_config2.py 2>&1) 60 nb_jz=$(($nb_proc-1)) 59 61 60 if [ $machine_name == irene]62 if [[ ($machine_name == irene) ]] 61 63 then 62 64 ccc_mprun -n $nb_proc ../../../build_prod/bin/generic_testcase.exe 65 elif [[($machine_name == ada)]] 66 then 67 echo "Testing on ADA" 68 mpirun -np $nb_proc ../../../build_prod/bin/generic_testcase.exe 69 elif [[($machine_name == jeanzay)]] 70 then 71 echo "Testing on Jean-Zay" 72 # touch srun.conf 73 # > srun.conf 74 # echo "0-"$nb_jz " ../../../build_prod/bin/generic_testcase.exe">> srun.conf 75 #srun --mpi=pmi2 -K1 --multi-prog -m cyclic ./srun.conf 76 srun -n $nb_proc --mpi=pmi2 ../../../build_prod/bin/generic_testcase.exe 63 77 else 64 mpirun -np $nb_proc ../../../build_prod/bin/generic_testcase.exe78 echo "other machine" 65 79 fi 66 80 -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_grid_algo/run_sub_test.sh
r1723 r1725 35 35 touch report.html 36 36 > report.html 37 echo "<p> </p> " >> report.html 38 echo "<p> </p> " >> report.html 37 echo "<br> " >> report.html 38 echo "<br> " >> report.html 39 echo "<br> " >> report.html 39 40 echo "<p>testing <font color="blue">grid</font> algorithms...</p>" >> report.html 40 echo "< p> </p> " >> report.html41 echo "<br> " >> report.html 41 42 42 43 nb_config=$(python sub_config1.py 2>&1) … … 54 55 55 56 nb_proc=$(python sub_config2.py 2>&1) 57 nb_jz=$(($nb_proc-1)) 56 58 57 if [ $machine_name == irene]59 if [[ ($machine_name == irene) ]] 58 60 then 59 61 ccc_mprun -n $nb_proc ../../build_prod/bin/generic_testcase.exe 62 elif [[($machine_name == ada)]] 63 then 64 echo "Testing on ADA" 65 mpirun -np $nb_proc ../../build_prod/bin/generic_testcase.exe 66 elif [[($machine_name == jeanzay)]] 67 then 68 echo "Testing on Jean-Zay" 69 # touch srun.conf 70 # > srun.conf 71 # echo "0-"$nb_jz " ../../build_prod/bin/generic_testcase.exe">> srun.conf 72 # srun --mpi=pmi2 -K1 --multi-prog -m cyclic ./srun.conf 73 srun -n $nb_proc --mpi=pmi2 ../../build_prod/bin/generic_testcase.exe 60 74 else 61 mpirun -np $nb_proc ../../build_prod/bin/generic_testcase.exe 75 echo "other machine" 62 76 fi 63 77 -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_scalar_algo/run_sub_test.sh
r1723 r1725 32 32 touch report.html 33 33 > report.html 34 echo "<p> </p> " >> report.html 35 echo "<p> </p> " >> report.html 34 echo "<br> " >> report.html 35 echo "<br> " >> report.html 36 echo "<br> " >> report.html 36 37 echo "<p>testing <font color="blue">scalar</font> algorithms...</p>" >> report.html 37 echo "< p> </p> " >> report.html38 echo "<br> " >> report.html 38 39 39 40 nb_config=$(python sub_config1.py 2>&1) … … 51 52 52 53 nb_proc=$(python sub_config2.py 2>&1) 54 nb_jz=$(($nb_proc-1)) 53 55 54 if [ $machine_name == irene]56 if [[ ($machine_name == irene) ]] 55 57 then 56 58 ccc_mprun -n $nb_proc ../../build_prod/bin/generic_testcase.exe 57 else #machine_name=ada 59 elif [[($machine_name == ada)]] 60 then 61 echo "Testing on ADA" 58 62 mpirun -np $nb_proc ../../build_prod/bin/generic_testcase.exe 63 elif [[($machine_name == jeanzay)]] 64 then 65 echo "Testing on Jean-Zay" 66 # touch srun.conf 67 # > srun.conf 68 # echo "0-"$nb_jz " ../../build_prod/bin/generic_testcase.exe">> srun.conf 69 # srun --mpi=pmi2 -K1 --multi-prog -m cyclic ./srun.conf 70 srun -n $nb_proc --mpi=pmi2 ../../build_prod/bin/generic_testcase.exe 71 else 72 echo "other machine" 59 73 fi 60 74 python sub_check.py
Note: See TracChangeset
for help on using the changeset viewer.