Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' into master
[simgrid.git] / tools / tesh / catch-wrong-output.tesh
1 #!/usr/bin/env tesh
2
3 p This tests whether TESH detects wrong outputs
4
5 ! expect return 2
6 < > TOTO
7 < < TUTU
8 < $ cat
9 $ ${bindir:=.}/tesh
10 > Test suite from stdin
11 > [(stdin):3] cat
12 > Output of <(stdin):3> mismatch:
13 >--- expected
14 >+++ obtained
15 >@@ -1 +1 @@
16 > -TOTO
17 > +TUTU
18 > Test suite `(stdin)': NOK (<(stdin):3> output mismatch)