source: XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_axis_algo/run_sub_test.sh @ 1725

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

Generic_testcase : Update for Jean-Zay

  • Property svn:executable set to *
File size: 2.0 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
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
25Color='\033[0;36m'
26NC='\033[0m' # No Color
27
28touch report.txt
29> report.txt
30echo " " >> report.txt
31echo " " >> report.txt
32echo -e "testing ${Color}axis${NC} algorithms..." >> report.txt
33echo " " >> report.txt
34
35touch report.html
36> report.html
37echo "<br> " >> report.html
38echo "<br> " >> report.html
39echo "<br> " >> report.html
40echo "<p>testing  <font color="blue">axis</font> algorithms...</p>" >> report.html
41echo "<br> " >> report.html
42
43nb_config=$(python sub_config1.py 2>&1)                                                                                                                   
44
45
46counter=0
47while [ $counter -lt $nb_config ]
48do
49
50rm -f user_param.py
51
52cp user_param.py.$counter user_param.py
53
54((counter++))
55
56nb_proc=$(python sub_config2.py 2>&1) 
57nb_jz=$(($nb_proc-1))
58
59if [[ ($machine_name == irene) ]]
60then
61    ccc_mprun -n $nb_proc ../../build_prod/bin/generic_testcase.exe
62elif [[($machine_name == ada)]]
63then
64    echo "Testing on ADA"
65    mpirun -np $nb_proc ../../build_prod/bin/generic_testcase.exe
66elif [[($machine_name == jeanzay)]]
67then
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
74else
75    echo "other machine"
76fi
77
78python sub_check.py
79
80rm -f iodef.xml
81mv iodef.xml.bkp iodef.xml
82
83done
Note: See TracBrowser for help on using the repository browser.