< < TOTO
< > TOTO
< $ cat
+> Enable coverage
> Test suite from stdin
> [(stdin):3] cat
> Test suite from stdin OK
-$ ./tesh --log='log.thresh:info tesh.fmt:%m%n'
+$ ./tesh --enable-coverage --log='log.thresh:info tesh.fmt:%m%n'
p Order: out, in, cmd
< > TOTO
< < TOTO
< $ cat
+> Enable coverage
> Test suite from stdin
> [(stdin):3] cat
> Test suite from stdin OK
-$ ./tesh --log='log.thresh:info tesh.fmt:%m%n'
+$ ./tesh --enable-coverage --log='log.thresh:info tesh.fmt:%m%n'
p Order: out, cmd, in
< > TOTO
< $ cat
< < TOTO
+> Enable coverage
> Test suite from stdin
> [(stdin):2] cat
> Test suite from stdin OK
-$ ./tesh --log='log.thresh:info tesh.fmt:%m%n'
+$ ./tesh --enable-coverage --log='log.thresh:info tesh.fmt:%m%n'
p Order: in, cmd, out
< < TOTO
< $ cat
< > TOTO
+> Enable coverage
> Test suite from stdin
> [(stdin):2] cat
> Test suite from stdin OK
-$ ./tesh --log='log.thresh:info tesh.fmt:%m%n'
+$ ./tesh --enable-coverage --log='log.thresh:info tesh.fmt:%m%n'
p Order: cmd, out, in
< $ cat
< > TOTO
< < TOTO
+> Enable coverage
> Test suite from stdin
> [(stdin):1] cat
> Test suite from stdin OK
-$ ./tesh --log='log.thresh:info tesh.fmt:%m%n'
+$ ./tesh --enable-coverage --log='log.thresh:info tesh.fmt:%m%n'
p Order: cmd, in, out
< $ cat
< < TOTO
< > TOTO
+> Enable coverage
> Test suite from stdin
> [(stdin):1] cat
> Test suite from stdin OK
-$ ./tesh --log='log.thresh:info tesh.fmt:%m%n'
+$ ./tesh --enable-coverage --log='log.thresh:info tesh.fmt:%m%n'
! expect return 41
< $ ./return1
-$ ../tesh --log='log.thresh:info tesh.fmt:%m%n'
+$ ../tesh --enable-coverage --log='log.thresh:info tesh.fmt:%m%n'
+> Enable coverage
> Test suite from stdin
> [(stdin):1] ./return1
> Test suite `(stdin)': NOK (<(stdin):1> returned code 1)
! expect return 15
< $ ./segfault
-$ ../tesh --log='log.thresh:info tesh.fmt:%m%n'
+$ ../tesh --enable-coverage --log='log.thresh:info tesh.fmt:%m%n'
+> Enable coverage
> Test suite from stdin
> [(stdin):1] ./segfault
> Test suite `(stdin)': NOK (<(stdin):1> got signal SIGSEGV)
! expect return 3
< ! timeout 1
< $ sleep 6
+> Enable coverage
> Test suite from stdin
> [(stdin):2] sleep 6
> <(stdin):2> timeouted. Kill the process.
> <(stdin):2> No output before timeout
> Test suite `(stdin)': NOK (<(stdin):2> timeout after 1 sec)
-$ ./tesh --log='log.thresh:info tesh.fmt:%m%n'
+$ ./tesh --enable-coverage --log='log.thresh:info tesh.fmt:%m%n'
< > TOTO
< < TUTU
< $ cat
-$ ./tesh --log='log.thresh:info tesh.fmt:%m%n'
+$ ./tesh --enable-coverage --log='log.thresh:info tesh.fmt:%m%n'
+> Enable coverage
> Test suite from stdin
> [(stdin):3] cat
> Output of <(stdin):3> mismatch:
# Check that tesh detects properly cd to non-existing directories
! expect return 4
< $ cd toto
+> Enable coverage
> Test suite from stdin
> Chdir to toto failed: No such file or directory
> Test suite `(stdin)': NOK (system error)
-$ ../tesh --log='log.thresh:info tesh.fmt:%m%n'
+$ ../tesh --enable-coverage --log='log.thresh:info tesh.fmt:%m%n'
# The next command checks that there is a testdir_temp-cd in the upper directory,
# ie that mkdir and cd both worked.
< > TOTO
< < TUTU
< $ cat
-$ ./tesh --log='log.thresh:info tesh.fmt:%m%n'
+$ ./tesh --enable-coverage --log='log.thresh:info tesh.fmt:%m%n'
+> Enable coverage
> Test suite from stdin
> [(stdin):4] cat
> (ignoring the output of <(stdin):4> as requested)