Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Put tests for tesh output sort in a separate file.
[simgrid.git] / tools / tesh / set-output-sort.tesh
1 #! ./tesh
2
3 p This tests whether TESH correctly sorts command output
4
5 $ ${bindir:=.}/tesh --enable-coverage --log='log.thresh:info tesh.fmt:%m%n' set-output-sort-1.tesh
6 > Enable coverage
7 > Test suite `set-output-sort-1'
8 > [set-output-sort-1:1] Test sorting and filtering of output
9 > [set-output-sort-1:3] true
10 > [set-output-sort-1:6] true
11 > [set-output-sort-1:8] printf 'profiling: foo\\n'
12 > [set-output-sort-1:10] printf 'profiling: foo'
13 > [set-output-sort-1:13] printf 'profiling: foo\\n'
14 > [set-output-sort-1:16] printf 'profiling: foo'
15 > [set-output-sort-1:18] printf 'a\\nb\\nc\\nd\\n'
16 > [set-output-sort-1:24] printf 'a\\nb\\nc\\nd'
17 > [set-output-sort-1:31] printf 'c\\nd\\nb\\na\\n'
18 > [set-output-sort-1:38] printf 'c\\nd\\nb\\na'
19 > [set-output-sort-1:44] printf 'a\\nprofiling: foo\\nprofiling: bar\\nb\\nc\\nd\\nprofiling: baz\\n'
20 > [set-output-sort-1:50] printf 'a\\nprofiling: foo\\nprofiling: bar\\nb\\nc\\nd\\nprofiling: baz'
21 > [set-output-sort-1:57] printf 'c\\nprofiling: foo\\nprofiling: bar\\nd\\nb\\na\\nprofiling: baz\\n'
22 > [set-output-sort-1:64] printf 'c\\nprofiling: foo\\nprofiling: bar\\nd\\nb\\na\\nprofiling: baz'
23 > Test suite `set-output-sort-1' OK