Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'lua'
[simgrid.git] / tools / tesh / basic.tesh
1 #! ./tesh
2
3 p This is a basic test
4
5 < TOTO \
6 TUTU
7 $ mkfile tmp_fich
8
9 $ cat tmp_fich
10 > TOTO TUTU
11
12 $ rm tmp_fich
13
14 p And now, some multilines examples
15
16 < a
17 < b
18 < c
19 < d
20 $ mkfile tmp_fich
21
22 $ cat tmp_fich
23 > a
24 > b
25 > c
26 > d
27
28 $ wc -l tmp_fich
29 > 4 tmp_fich
30
31 $ rm tmp_fich
32
33 $ ${bindir:=.}/tesh --enable-coverage --log='log.thresh:info tesh.fmt:%m%n' basic2.tesh
34 > Enable coverage
35 > Test suite `basic2'
36 > [basic2:3] Test sorting and filtering of output
37 > [basic2:5] printf 'a\\nb\\nc\\nd\\n'
38 > [basic2:11] printf 'a\\nb\\nc\\nd'
39 > [basic2:18] printf 'c\\nd\\nb\\na\\n'
40 > [basic2:25] printf 'c\\nd\\nb\\na'
41 > [basic2:31] printf 'a\\nprofiling: foo\\nprofiling: bar\\nb\\nc\\nd\\nprofiling: baz\\n'
42 > [basic2:37] printf 'a\\nprofiling: foo\\nprofiling: bar\\nb\\nc\\nd\\nprofiling: baz'
43 > [basic2:44] printf 'c\\nprofiling: foo\\nprofiling: bar\\nd\\nb\\na\\nprofiling: baz\\n'
44 > [basic2:51] printf 'c\\nprofiling: foo\\nprofiling: bar\\nd\\nb\\na\\nprofiling: baz'
45 > Test suite `basic2' OK