a0fbc2d4201e595a67d63734bc7f459de5a32497
4 * @brief Test module for automatic testing
9 * Copyright (C) 2005 Jan Hutter, Martin Willi
10 * Hochschule fuer Technik Rapperswil
12 * This program is free software; you can redistribute it and/or modify it
13 * under the terms of the GNU General Public License as published by the
14 * Free Software Foundation; either version 2 of the License, or (at your
15 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
17 * This program is distributed in the hope that it will be useful, but
18 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
19 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
26 #include <pluto/constants.h>
27 #include <pluto/defs.h>
38 static status_t
test_all(tester_t
*tester
)
40 private_tester_t
*this =(private_tester_t
*) tester
;
42 fprintf(this->output
,"Start testing\n");
44 fprintf(this->output
,"End testing\n");
48 static status_t
destroy(tester_t
*this)
55 tester_t
*tester_create(FILE *output
)
57 private_tester_t
*this = alloc_thing(private_tester_t
, "private_tester_t");
59 this->tester
.destroy
= destroy
;
60 this->tester
.test_all
= test_all
;
62 this->output
= output
;
64 return &(this->tester
);