3 D this Tesh unit tests the option of the command line `--keep-going'
\r
5 < #include <stdlib.h>
\r
9 < main(int argc, char* argv[])
\r
11 < printf("Hello Tesh\n");
\r
13 < return EXIT_SUCCESS;
\r
63 ! expect return $EEXITCODENOTMATCH
\r
65 # in this case the option `keep-going' is not specified so Tesh detects the error and interrupt all the folowing units.
\r
66 $ tesh --log="log.thresh:info tesh.fmt:%m%n" file1.tesh file2.tesh
\r
67 > Test unit from file1.tesh
\r
68 > [file1.tesh:3] ./job
\r
69 > [file1.tesh:3] ./job : NOK (returned code `0' instead `1')
\r
70 > Output of <file1.tesh:3> so far:
\r
73 > Test unit `file1.tesh': NOK (<file1.tesh:3> exit code mismatch)
\r
100 < ! expect return 0
\r
104 < ! expect return 0
\r
108 < ! expect return 0
\r
112 < ! expect return 0
\r
117 ! expect return $EEXITCODENOTMATCH
\r
119 # in this case the option `keep-going' is specified so, Tesh execute all the other units.
\r
120 $ tesh --log="log.thresh:info tesh.fmt:%m%n" file1.tesh file2.tesh --keep-going
\r
121 > Test unit from file1.tesh
\r
122 > [file1.tesh:3] ./job
\r
123 > [file1.tesh:3] ./job : NOK (returned code `0' instead `1')
\r
124 > Output of <file1.tesh:3> so far:
\r
127 > Test unit `file1.tesh': NOK (<file1.tesh:3> exit code mismatch)
\r
128 > Test unit from file2.tesh
\r
129 > [file2.tesh:3] ./job
\r
130 > [file2.tesh:7] ./job
\r
131 > [file2.tesh:11] ./job
\r
132 > [file2.tesh:15] ./job
\r
133 > [file2.tesh:19] ./job
\r
134 > Test unit from file2.tesh OK
\r