source: XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_function/test_minimum/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.1 KB
Line 
1#!/bin/bash
2
3cp -n  ../context_grid_dynamico.xml ./
4cp -n ../dynamico_grid.nc ./
5
6
7rm -f sub_config1.py
8rm -f sub_config2.py
9rm -f sub_check.py
10rm -f default_param.py
11
12cp -n ../../user_config.py sub_config1.py
13cp -n ../../config.py sub_config2.py
14cp -n ../../check.py sub_check.py
15cp -n ../../default_param.py default_param.py
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
27Color='\033[0;36m'
28NC='\033[0m' # No Color
29
30touch report.txt
31> report.txt
32echo " " >> report.txt
33echo " " >> report.txt
34echo -e "testing ${Color}minimum${NC} reduce..." >> report.txt
35echo " " >> report.txt
36
37
38touch report.html
39> report.html
40echo "<br> " >> report.html
41echo "<br> " >> report.html
42echo "<br> " >> report.html
43echo "<p>testing  <font color="blue">minimum</font> reduce...</p>" >> report.html
44echo "<br> " >> report.html
45
46nb_config=$(python sub_config1.py 2>&1)                                                                                                                   
47
48
49counter=0
50while [ $counter -lt $nb_config ]
51do
52
53rm -f user_param.py
54
55cp user_param.py.$counter user_param.py
56
57((counter++))
58
59nb_proc=$(python sub_config2.py 2>&1) 
60nb_jz=$(($nb_proc-1))
61
62if [[ ($machine_name == irene) ]]
63then
64    ccc_mprun -n $nb_proc ../../../build_prod/bin/generic_testcase.exe
65elif [[($machine_name == ada)]]
66then
67    echo "Testing on ADA"
68    mpirun -np $nb_proc ../../../build_prod/bin/generic_testcase.exe
69elif [[($machine_name == jeanzay)]]
70then
71    echo "Testing on Jean-Zay" 
72    # touch srun.conf
73    # > srun.conf
74    # echo "0-"$nb_jz " ../../../build_prod/bin/generic_testcase.exe">> srun.conf
75    # srun --mpi=pmi2 -K1 --multi-prog -m cyclic ./srun.conf
76    srun -n $nb_proc --mpi=pmi2 ../../../build_prod/bin/generic_testcase.exe
77else
78    echo "other machine"
79fi
80
81python sub_check.py
82
83rm -f iodef.xml
84mv iodef.xml.bkp iodef.xml
85
86done
Note: See TracBrowser for help on using the repository browser.