A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix tesh autotests after recent change to display the command ASAP
[simgrid.git]
/
tools
/
tesh
/
set-output-sort.tesh
diff --git
a/tools/tesh/set-output-sort.tesh
b/tools/tesh/set-output-sort.tesh
index
beb475c
..
92b3400
100644
(file)
--- a/
tools/tesh/set-output-sort.tesh
+++ b/
tools/tesh/set-output-sort.tesh
@@
-1,93
+1,107
@@
-#!
./
tesh
+#!
/usr/bin/env
tesh
p This tests whether TESH correctly sorts command output
< p Test sorting and filtering of output
p This tests whether TESH correctly sorts command output
< p Test sorting and filtering of output
-<
+<
< $ true
< $ true
-<
+<
< ! output sort
< $ true
< ! output sort
< $ true
-<
+<
< $ printf 'profiling: foo\n'
< $ printf 'profiling: foo\n'
-<
+<
< $ printf 'profiling: foo'
< $ printf 'profiling: foo'
-<
+<
< ! output sort
< $ printf 'profiling: foo\n'
< ! output sort
< $ printf 'profiling: foo\n'
-<
+<
< ! output sort
< $ printf 'profiling: foo'
< ! output sort
< $ printf 'profiling: foo'
-<
+<
< $ printf 'a\nb\nc\nd\n'
< > a
< > b
< > c
< > d
< $ printf 'a\nb\nc\nd\n'
< > a
< > b
< > c
< > d
-<
+<
< $ printf 'a\nb\nc\nd'
< > a
< > b
< > c
< > d
< $ printf 'a\nb\nc\nd'
< > a
< > b
< > c
< > d
-<
+<
< ! output sort
< $ printf 'c\nd\nb\na\n'
< > a
< > b
< > c
< > d
< ! output sort
< $ printf 'c\nd\nb\na\n'
< > a
< > b
< > c
< > d
-<
+<
< ! output sort
< $ printf 'c\nd\nb\na'
< > a
< > b
< > c
< > d
< ! output sort
< $ printf 'c\nd\nb\na'
< > a
< > b
< > c
< > d
-<
+<
< $ printf 'a\nprofiling: foo\nprofiling: bar\nb\nc\nd\nprofiling: baz\n'
< > a
< > b
< > c
< > d
< $ printf 'a\nprofiling: foo\nprofiling: bar\nb\nc\nd\nprofiling: baz\n'
< > a
< > b
< > c
< > d
-<
+<
< $ printf 'a\nprofiling: foo\nprofiling: bar\nb\nc\nd\nprofiling: baz'
< > a
< > b
< > c
< > d
< $ printf 'a\nprofiling: foo\nprofiling: bar\nb\nc\nd\nprofiling: baz'
< > a
< > b
< > c
< > d
-<
+<
< ! output sort
< $ printf 'c\nprofiling: foo\nprofiling: bar\nd\nb\na\nprofiling: baz\n'
< > a
< > b
< > c
< > d
< ! output sort
< $ printf 'c\nprofiling: foo\nprofiling: bar\nd\nb\na\nprofiling: baz\n'
< > a
< > b
< > c
< > d
-<
+<
< ! output sort
< $ printf 'c\nprofiling: foo\nprofiling: bar\nd\nb\na\nprofiling: baz'
< > a
< > b
< > c
< > d
< ! output sort
< $ printf 'c\nprofiling: foo\nprofiling: bar\nd\nb\na\nprofiling: baz'
< > a
< > b
< > c
< > d
-$ ${bindir:=.}/tesh --
enable-coverage
->
Enable coverage
+$ ${bindir:=.}/tesh --
ignore-jenkins
+>
Ignore all cruft seen on SimGrid's continuous integration servers
> Test suite from stdin
> [(stdin):1] Test sorting and filtering of output
> [(stdin):3] true
> Test suite from stdin
> [(stdin):1] Test sorting and filtering of output
> [(stdin):3] true
+>
> [(stdin):6] true
> [(stdin):6] true
+>
> [(stdin):8] printf 'profiling: foo\n'
> [(stdin):8] printf 'profiling: foo\n'
+>
> [(stdin):10] printf 'profiling: foo'
> [(stdin):10] printf 'profiling: foo'
+>
> [(stdin):13] printf 'profiling: foo\n'
> [(stdin):13] printf 'profiling: foo\n'
+>
> [(stdin):16] printf 'profiling: foo'
> [(stdin):16] printf 'profiling: foo'
+>
> [(stdin):18] printf 'a\nb\nc\nd\n'
> [(stdin):18] printf 'a\nb\nc\nd\n'
+>
> [(stdin):24] printf 'a\nb\nc\nd'
> [(stdin):24] printf 'a\nb\nc\nd'
+>
> [(stdin):31] printf 'c\nd\nb\na\n'
> [(stdin):31] printf 'c\nd\nb\na\n'
+>
> [(stdin):38] printf 'c\nd\nb\na'
> [(stdin):38] printf 'c\nd\nb\na'
+>
> [(stdin):44] printf 'a\nprofiling: foo\nprofiling: bar\nb\nc\nd\nprofiling: baz\n'
> [(stdin):44] printf 'a\nprofiling: foo\nprofiling: bar\nb\nc\nd\nprofiling: baz\n'
+>
> [(stdin):50] printf 'a\nprofiling: foo\nprofiling: bar\nb\nc\nd\nprofiling: baz'
> [(stdin):50] printf 'a\nprofiling: foo\nprofiling: bar\nb\nc\nd\nprofiling: baz'
+>
> [(stdin):57] printf 'c\nprofiling: foo\nprofiling: bar\nd\nb\na\nprofiling: baz\n'
> [(stdin):57] printf 'c\nprofiling: foo\nprofiling: bar\nd\nb\na\nprofiling: baz\n'
+>
> [(stdin):64] printf 'c\nprofiling: foo\nprofiling: bar\nd\nb\na\nprofiling: baz'
> [(stdin):64] printf 'c\nprofiling: foo\nprofiling: bar\nd\nb\na\nprofiling: baz'
+>
> Test suite from stdin OK
p Check the Right Prefix Length (19) for "output sort"
> Test suite from stdin OK
p Check the Right Prefix Length (19) for "output sort"
@@
-113,7
+127,7
@@
$ cat
< $ cat
< > 123456789012345678 A line
< > 123456789012345678 B line
< $ cat
< > 123456789012345678 A line
< > 123456789012345678 B line
-$ ${bindir:=.}/tesh
+$ ${bindir:=.}/tesh
p Check user-defined prefix length for "output sort"
! output sort 5
p Check user-defined prefix length for "output sort"
! output sort 5