1 /*	$NetBSD: unit_test_sample.c,v 1.1.1.2 2014/07/12 11:58:01 spz Exp $	*/
2 #include "config.h"
3 #include "t_api.h"
4 
5 static void foo(void);
6 
7 /*
8  * T_testlist is a list of tests that are invoked.
9  */
10 testspec_t T_testlist[] = {
11 	{	foo,		"sample test" 	},
12 	{	NULL,		NULL 		}
13 };
14 
15 static void
16 foo(void) {
17 	static const char *test_desc =
18 		"this is an example test, for no actual module";
19 
20 	t_assert("sample", 1, T_REQUIRED, test_desc);
21 
22 	/* ... */	/* Test code would go here. */
23 
24 	t_result(T_PASS);
25 }
26 
27