2 * include/runner.h - type representing the tesh runner .
\r
4 * Copyright 2008,2009 Martin Quinson, Malek Cherier All right reserved.
\r
6 * This program is free software; you can redistribute it and/or modify it
\r
7 * under the terms of the license (GNU LGPL) which comes with this package.
\r
10 * This file contains all the declarations of the functions related with
\r
11 * the tesh runner type.
\r
25 /*! \brief runner_init - initialize the tesh runner.
\r
27 * \param check_syntax_flag If 1, the runner check the syntax of all the tesh files before running.
\r
28 * \param timeout The time alloted to the run of all the units (if -1 no time alloted).
\r
29 * \param fstreams A fstreams object containing the file streams representing the tesh files to run.
\r
31 * \return If successful the function returns 0. Otherwise the function returns -1 and sets
\r
32 * the global variable errno with the appropiate error code.
\r
35 * [EALREADY] if the runner is already initialized.
\r
36 * [ENOMEM] if the system has not enough space to initialize the runner.
\r
37 * [ESYNTAX] if the parameter check_syntax_flag is 1 and a syntax error is detected.
\r
40 runner_init( /*int check_syntax_flag, */ int timeout,
43 /*! \brief runner_run - run the tesh files.
\r
45 void
\r runner_run(void);
47 /*! \brief runner_destroy - destroy the runner (release all the resources allocated by the runner)
\r
49 void
\r runner_destroy(void);
51 /*! \brief runner_summarize - display the summary of the execution of all the tests of the tesh files.
\r
53 void
\r runner_summarize(void);
55 /*! \brief runner_interrupt - interrupt all the units of the run.
\r
57 void
\r runner_interrupt(void);
58 \r\rint
\r runner_is_timedout(void);
64 #endif /* !__RUNNER_H */
\r