- Timestamp:
- 07/01/20 10:37:06 (4 years ago)
- Location:
- XIOS/trunk/xios_test_suite/TEST_SUITE
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/xios_test_suite/TEST_SUITE/my_run.sh
r1907 r1915 27 27 while [ ! -z "$output" ] 28 28 do 29 echo "job" $jobid " running for about" ${i} seconds29 echo "job" $jobid "pending/running for about" ${i} seconds 30 30 sleep 5 31 31 ((i+=5)) … … 43 43 while [ ! -z "$output" ] 44 44 do 45 echo "job" $jobid " running for about" ${i} seconds45 echo "job" $jobid "pending/running for about" ${i} seconds 46 46 sleep 5 47 47 ((i+=5)) -
XIOS/trunk/xios_test_suite/TEST_SUITE/step1.py
r1909 r1915 197 197 OSinfo("cp build_"+arch+"_"+mode+"/bin/generic_testcase.exe "+test_folder+"/CONFIG_"+mystr) 198 198 OSinfo("cp iodef.xml "+test_folder+"/CONFIG_"+mystr+"/iodef.xml.tmp") 199 OSinfo("cp "+test_folder+"/context_atm.xml "+test_folder+"/CONFIG_"+mystr+"/context_atm.xml.tmp") 199 200 200 201 with open(test_folder+"/CONFIG_"+mystr+"/iodef.xml.tmp", "r") as f: … … 209 210 g.write(line) 210 211 212 with open(test_folder+"/CONFIG_"+mystr+"/context_atm.xml.tmp", "r") as f: 213 lines = f.readlines() 214 for i in range(len(lines)): 215 if "XIOS::" in lines[i]: 216 config_keys = list(full_config.keys()) 217 for idx in range(len(config_keys)): 218 lines[i] = lines[i].replace("XIOS::"+config_keys[idx], str(full_config[config_keys[idx]])) 219 with open(test_folder+"/CONFIG_"+mystr+"/context_atm.xml", "w") as g: 220 for line in lines: 221 g.write(line) 222 223 211 224 OSinfo("rm -f "+test_folder+"/CONFIG_"+mystr+"/iodef.xml.tmp") 212 OSinfo(" cp "+test_folder+"/context_atm.xml "+test_folder+"/CONFIG_"+mystr+"/")225 OSinfo("rm -f "+test_folder+"/CONFIG_"+mystr+"/context_atm.xml.tmp") 213 226 OSinfo("cp context_grid_dynamico.xml "+test_folder+"/CONFIG_"+mystr+"/") 214 227 OSinfo("cp dynamico_grid.nc "+test_folder+"/CONFIG_"+mystr+"/") -
XIOS/trunk/xios_test_suite/TEST_SUITE/step2.py
r1910 r1915 44 44 for ref in ref_list: 45 45 if int(svnr) >= ref : 46 ref_rev = str(rev) 46 ref_rev = str(ref) 47 print("corresponding reference = ", ref) 47 48 break 48 49
Note: See TracChangeset
for help on using the changeset viewer.