Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Correct tesh files after patch time commit.
[simgrid.git] / examples / smpi / reduce.tesh
1 # use the tested library, not the installed one
2 # (since we want to pass it to the child, it has to be redefined before each command)
3 ! setenv LD_LIBRARY_PATH=../../src/.libs
4
5 # Go for the first test
6 p Test Reduce with 3 processes 
7 $ ../../src/smpi/smpirun -map -hostfile ${srcdir:=.}/hostfile -platform ${srcdir:=.}/../msg/small_platform.xml -np 3 ./reduce -q
8 > [rank 0] -> Tremblay
9 > [rank 1] -> Jupiter
10 > [rank 2] -> Fafard
11 > [1] has value 2
12 > [2] has value 3
13 > [0] has value 1
14 > ** Scalar Int Test Result:
15 >       [0] sum=6 ... validation ok.
16 >       [0] min=1 ... validation ok.
17 >       [0] max=3 ... validation ok.
18 > ** IBM Test Result: ... 
19 >       ok.
20 >       ok.
21 >       ok.
22
23 # second test
24 ! setenv LD_LIBRARY_PATH=../../src/.libs
25 p Test Reduce with 6 processes 
26 $ ../../src/smpi/smpirun -map -hostfile ${srcdir:=.}/hostfile -platform ${srcdir:=.}/../msg/small_platform.xml -np 6 ./reduce -q
27 > [rank 0] -> Tremblay
28 > [rank 1] -> Jupiter
29 > [rank 2] -> Fafard
30 > [rank 3] -> Ginette
31 > [rank 4] -> Bourassa
32 > [rank 5] -> Tremblay
33 > [1] has value 2
34 > [2] has value 3
35 > [3] has value 4
36 > [4] has value 5
37 > [5] has value 6
38 > [0] has value 1
39 > ** Scalar Int Test Result:
40 >       [0] sum=21 ... validation ok.
41 >       [0] min=1 ... validation ok.
42 >       [0] max=6 ... validation ok.
43 > ** IBM Test Result: ... 
44 >       ok.
45 >       ok.
46 >       ok.
47 >       ok.
48 >       ok.
49 >       ok.
50
51
52 # third test
53 ! setenv LD_LIBRARY_PATH=../../src/.libs
54 p Test Reduce with 12 processes 
55 $ ../../src/smpi/smpirun -map -hostfile ${srcdir:=.}/hostfile -platform ${srcdir:=.}/../msg/small_platform.xml -np 12 ./reduce -q 
56 > [rank 0] -> Tremblay
57 > [rank 1] -> Jupiter
58 > [rank 2] -> Fafard
59 > [rank 3] -> Ginette
60 > [rank 4] -> Bourassa
61 > [rank 5] -> Tremblay
62 > [rank 6] -> Jupiter
63 > [rank 7] -> Fafard
64 > [rank 8] -> Ginette
65 > [rank 9] -> Bourassa
66 > [rank 10] -> Tremblay
67 > [rank 11] -> Jupiter
68 > [1] has value 2
69 > [2] has value 3
70 > [3] has value 4
71 > [4] has value 5
72 > [5] has value 6
73 > [6] has value 7
74 > [7] has value 8
75 > [8] has value 9
76 > [9] has value 10
77 > [10] has value 11
78 > [11] has value 12
79 > [0] has value 1
80 > ** Scalar Int Test Result:
81 >       [0] sum=78 ... validation ok.
82 >       [0] min=1 ... validation ok.
83 >       [0] max=12 ... validation ok.
84 > ** IBM Test Result: ... 
85 >       ok.
86 >       ok.
87 >       ok.
88 >       ok.
89 >       ok.
90 >       ok.
91 >       ok.
92 >       ok.
93 >       ok.
94 >       ok.
95 >       ok.
96 >       ok.