65e5c4cb4183edc0a56fe848f1bf32d70628690e
[strongswan.git] / Source / charon / tester.c
1 /**
2 * @file tester.c
3 *
4 * @brief Test module for automatic testing
5 *
6 */
7
8 /*
9 * Copyright (C) 2005 Jan Hutter, Martin Willi
10 * Hochschule fuer Technik Rapperswil
11 *
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>.
16 *
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
20 * for more details.
21 */
22
23
24 #include <stdlib.h>
25 #include <freeswan.h>
26 #include <pluto/constants.h>
27 #include <pluto/defs.h>
28
29 #include "tester.h"
30
31 typedef struct {
32 tester_t tester;
33
34 FILE* output;
35 } private_tester_t;
36
37
38 static status_t test_all(tester_t *this)
39 {
40
41 return SUCCESS;
42 }
43
44 static status_t destroy(tester_t *this)
45 {
46 pfree(this);
47 return SUCCESS;
48 }
49
50
51 tester_t *tester_create(FILE *output)
52 {
53 private_tester_t *this = alloc_thing(private_tester_t, "private_tester_t");
54
55 this->tester.destroy = destroy;
56 this->tester.test_all = test_all;
57
58 this->output = output;
59
60 return SUCCESS;
61 }