Changeset 1721
- Timestamp:
- 09/25/19 11:58:48 (5 years ago)
- 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 14 14 magenta = lambda text: '\033[0;35m' + text + '\033[0m' 15 15 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' 17 25 18 26 configNamePattern=[0]*7 … … 59 67 os.mkdir(configName+'/setup') 60 68 os.mkdir(configName+'/tmp_reference') 69 os.mkdir(configName+'/xios_output') 61 70 62 71 os.system('cp param.def '+configName+'/setup/') … … 66 75 os.system('cp context_grid_dynamico.xml '+configName+'/setup/') 67 76 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/') 68 79 69 80 … … 77 88 os.system(cmd) 78 89 79 h.write("test for "+configName+" for file "+l ine+" \t"+yellow('INITIALIZED')+"\n")90 h.write("test for "+configName+" for file "+lpurple(line)+" \t"+yellow('INITIALIZED')+"\n") 80 91 print yellow("\n ****************************************") 81 92 print yellow(" ** "+line+" is stored as temporal reference !!! **") … … 122 133 123 134 if os.stat("diff.txt").st_size==0: 124 h.write("test for "+configName+" for file "+l ine+" \t"+green('PASSED')+"\n")135 h.write("test for "+configName+" for file "+lpurple(line)+" \t"+green('PASSED')+"\n") 125 136 print green("\n ****************************************") 126 137 print green(" ** "+line+" is valid !!! **") … … 131 142 for gline in g: 132 143 if gline.strip().startswith("0") or ":" in gline : 133 h.write("test for "+configName+" for file "+l ine+" \t"+green('PASSED')+"\n")144 h.write("test for "+configName+" for file "+lpurple(line)+" \t"+green('PASSED')+"\n") 134 145 print green("\n ****************************************") 135 146 print green(" ** "+line+" is valid !!! **") 136 147 print green("\n ****************************************") 137 148 else: 138 h.write("test for "+configName+" for file "+l ine+" \t"+red('FAILED')+"\n")149 h.write("test for "+configName+" for file "+lpurple(line)+" \t"+red('FAILED')+"\n") 139 150 print red("\n **************************************************") 140 151 print red(" ** "+line+" is NOT valid. Please debugging.. **") -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/default_param.py
r1712 r1721 2 2 RatioServer2 = 50 3 3 NumberPoolsServer2 = 1 4 NumberClients = 84 NumberClients = 4 5 5 NumberServers = 4 6 6 Duration = '1d' -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_axis_algo/param.def
r1713 r1721 1 1 ¶ms_run 2 nb_proc_atm = 82 nb_proc_atm = 4 3 3 duration = '1d' 4 4 / -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_axis_algo/run_sub_test.sh
r1718 r1721 12 12 13 13 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 25 Color='\033[0;36m' 26 NC='\033[0m' # No Color 27 14 28 touch report.txt 15 29 > report.txt 16 30 echo " " >> report.txt 17 31 echo " " >> report.txt 18 echo "testing axisalgorithms..." >> report.txt32 echo -e "testing ${Color}axis${NC} algorithms..." >> report.txt 19 33 echo " " >> report.txt 20 34 -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_domain_algo/CMakeLists.txt
r1714 r1721 7 7 8 8 9 add_test( domain ./run_sub_test.sh)9 add_test( domain_algo ./run_sub_test.sh) -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_domain_algo/param.def
r1714 r1721 1 1 ¶ms_run 2 nb_proc_atm = 82 nb_proc_atm = 4 3 3 duration = '1d' 4 4 / -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_domain_algo/run_sub_test.sh
r1718 r1721 11 11 cp -n ../default_param.py default_param.py 12 12 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 24 Color='\033[0;36m' 25 NC='\033[0m' # No Color 13 26 14 27 touch report.txt … … 16 29 echo " " >> report.txt 17 30 echo " " >> report.txt 18 echo "testing domainalgorithms..." >> report.txt31 echo -e "testing ${Color}domain${NC} algorithms..." >> report.txt 19 32 echo " " >> report.txt 20 33 -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_function/test_average/CMakeLists.txt
r1715 r1721 7 7 8 8 9 add_test( average ./run_sub_test.sh)9 add_test( average_reduce ./run_sub_test.sh) -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_function/test_average/run_sub_test.sh
r1718 r1721 15 15 cp -n ../../default_param.py default_param.py 16 16 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 27 Color='\033[0;36m' 28 NC='\033[0m' # No Color 17 29 18 30 touch report.txt … … 20 32 echo " " >> report.txt 21 33 echo " " >> report.txt 22 echo "testing average reduce..." >> report.txt34 echo -e "testing ${Color}average${NC} reduce..." >> report.txt 23 35 echo " " >> report.txt 24 36 -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_function/test_maximum/CMakeLists.txt
r1715 r1721 7 7 8 8 9 add_test( maximum ./run_sub_test.sh)9 add_test( maximum_reduce ./run_sub_test.sh) -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_function/test_maximum/run_sub_test.sh
r1718 r1721 15 15 cp -n ../../default_param.py default_param.py 16 16 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 27 Color='\033[0;36m' 28 NC='\033[0m' # No Color 29 17 30 18 31 touch report.txt … … 20 33 echo " " >> report.txt 21 34 echo " " >> report.txt 22 echo "testing maximumreduce..." >> report.txt35 echo -e "testing ${Color}maximum${NC} reduce..." >> report.txt 23 36 echo " " >> report.txt 24 37 -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_function/test_minimum/CMakeLists.txt
r1715 r1721 7 7 8 8 9 add_test( minimum ./run_sub_test.sh)9 add_test( minimum_reduce ./run_sub_test.sh) -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_function/test_minimum/run_sub_test.sh
r1718 r1721 15 15 cp -n ../../default_param.py default_param.py 16 16 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 27 Color='\033[0;36m' 28 NC='\033[0m' # No Color 17 29 18 30 touch report.txt … … 20 32 echo " " >> report.txt 21 33 echo " " >> report.txt 22 echo "testing minimumreduce..." >> report.txt34 echo -e "testing ${Color}minimum${NC} reduce..." >> report.txt 23 35 echo " " >> report.txt 24 36 -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_function/test_sum/CMakeLists.txt
r1715 r1721 7 7 8 8 9 add_test( sum./run_sub_test.sh)9 add_test( accumulate_reduce ./run_sub_test.sh) -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_function/test_sum/run_sub_test.sh
r1718 r1721 15 15 cp -n ../../default_param.py default_param.py 16 16 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 27 Color='\033[0;36m' 28 NC='\033[0m' # No Color 17 29 18 30 touch report.txt … … 20 32 echo " " >> report.txt 21 33 echo " " >> report.txt 22 echo "testing sumreduce..." >> report.txt34 echo -e "testing ${Color}accumulate${NC} reduce..." >> report.txt 23 35 echo " " >> report.txt 24 36 -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_grid_algo/CMakeLists.txt
r1714 r1721 7 7 8 8 9 add_test( grid ./run_sub_test.sh)9 add_test( grid_algo ./run_sub_test.sh) -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_grid_algo/param.def
r1714 r1721 1 1 ¶ms_run 2 nb_proc_atm = 82 nb_proc_atm = 4 3 3 duration = '1d' 4 4 / -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_grid_algo/run_sub_test.sh
r1718 r1721 11 11 cp -n ../default_param.py default_param.py 12 12 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 Color='\033[0;36m' 24 NC='\033[0m' # No Color 13 25 14 26 touch report.txt … … 16 28 echo " " >> report.txt 17 29 echo " " >> report.txt 18 echo "testing gridalgorithms..." >> report.txt30 echo -e "testing ${Color}grid${NC} algorithms..." >> report.txt 19 31 echo " " >> report.txt 20 32 -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_scalar_algo/CMakeLists.txt
r1714 r1721 7 7 8 8 9 add_test( scalar ./run_sub_test.sh)9 add_test( scalar_algo ./run_sub_test.sh) -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_scalar_algo/param.def
r1714 r1721 1 1 ¶ms_run 2 nb_proc_atm = 82 nb_proc_atm = 4 3 3 duration = '1d' 4 4 / -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_scalar_algo/run_sub_test.sh
r1718 r1721 10 10 cp -n ../default_param.py default_param.py 11 11 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 22 Color='\033[0;36m' 23 NC='\033[0m' # No Color 12 24 13 25 touch report.txt … … 15 27 echo " " >> report.txt 16 28 echo " " >> report.txt 17 echo "testing scalaralgorithms..." >> report.txt29 echo -e "testing ${Color}scalar${NC} algorithms..." >> report.txt 18 30 echo " " >> report.txt 19 31
Note: See TracChangeset
for help on using the changeset viewer.