source: XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_scalar_algo/run_sub_test.sh @ 1721

Last change on this file since 1721 was 1721, checked in by yushan, 5 years ago

Generic_testcase : add folder xios_output in config reference to store XIOS output files

  • Property svn:executable set to *
File size: 1.4 KB
Line 
1#!/bin/bash
2rm -f sub_config1.py
3rm -f sub_config2.py
4rm -f sub_check.py
5rm -f default_param.py
6
7cp -n ../user_config.py sub_config1.py
8cp -n ../config.py sub_config2.py
9cp -n ../check.py sub_check.py
10cp -n ../default_param.py default_param.py
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
22Color='\033[0;36m'
23NC='\033[0m' # No Color
24
25touch report.txt
26> report.txt
27echo " " >> report.txt
28echo " " >> report.txt
29echo -e "testing ${Color}scalar${NC} algorithms..." >> report.txt
30echo " " >> report.txt
31
32nb_config=$(python sub_config1.py 2>&1)                                                                                                                   
33
34
35counter=0
36while [ $counter -lt $nb_config ]
37do
38
39rm -f user_param.py
40
41cp user_param.py.$counter user_param.py
42
43((counter++))
44
45nb_proc=$(python sub_config2.py 2>&1) 
46
47if [$machine_name == irene]
48then
49    ccc_mprun -n $nb_proc ../../build_prod/bin/generic_testcase.exe
50else  #machine_name=ada
51    mpirun -np $nb_proc ../../build_prod/bin/generic_testcase.exe
52fi
53python sub_check.py
54
55rm -f iodef.xml
56mv iodef.xml.bkp iodef.xml
57
58done
Note: See TracBrowser for help on using the repository browser.