Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Run tesh self tests in ${CMAKE_BINARY_DIR}/bin.
[simgrid.git] / tools / tesh / basic2.tesh
1 #! ./tesh
2
3 p Test sorting and filtering of output
4
5 $ true
6
7 ! output sort
8 $ true
9
10 $ printf 'profiling: foo\\n'
11
12 $ printf 'profiling: foo'
13
14 ! output sort
15 $ printf 'profiling: foo\\n'
16
17 ! output sort
18 $ printf 'profiling: foo'
19
20 $ printf 'a\\nb\\nc\\nd\\n'
21 > a
22 > b
23 > c
24 > d
25
26 $ printf 'a\\nb\\nc\\nd'
27 > a
28 > b
29 > c
30 > d
31
32 ! output sort
33 $ printf 'c\\nd\\nb\\na\\n'
34 > a
35 > b
36 > c
37 > d
38
39 ! output sort
40 $ printf 'c\\nd\\nb\\na'
41 > a
42 > b
43 > c
44 > d
45
46 $ printf 'a\\nprofiling: foo\\nprofiling: bar\\nb\\nc\\nd\\nprofiling: baz\\n'
47 > a
48 > b
49 > c
50 > d
51
52 $ printf 'a\\nprofiling: foo\\nprofiling: bar\\nb\\nc\\nd\\nprofiling: baz'
53 > a
54 > b
55 > c
56 > d
57
58 ! output sort
59 $ printf 'c\\nprofiling: foo\\nprofiling: bar\\nd\\nb\\na\\nprofiling: baz\\n'
60 > a
61 > b
62 > c
63 > d
64
65 ! output sort
66 $ printf 'c\\nprofiling: foo\\nprofiling: bar\\nd\\nb\\na\\nprofiling: baz'
67 > a
68 > b
69 > c
70 > d