source: XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_domain_algo/run_sub_test.sh @ 1723

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

Generic_testcase : html report added for viewing on jenkins

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