]> git.ipfire.org Git - thirdparty/dhcp.git/blame - tests/unit_test_sample.c
Update README - added section on Release status which was in the TOC
[thirdparty/dhcp.git] / tests / unit_test_sample.c
CommitLineData
6e999c3c
SK
1#include "config.h"
2#include "t_api.h"
3
4static void foo(void);
5
6/*
7 * T_testlist is a list of tests that are invoked.
8 */
9testspec_t T_testlist[] = {
10 { foo, "sample test" },
11 { NULL, NULL }
12};
13
14static void
15foo(void) {
16 static const char *test_desc =
17 "this is an example test, for no actual module";
18
19 t_assert("sample", 1, T_REQUIRED, test_desc);
20
21 /* ... */ /* Test code would go here. */
22
23 t_result(T_PASS);
24}
25