
dhcrelay(8) and omshell(1) have not been tested. Change-Id: I0cad89f65666af4e366a86e130ce8df0894c3bb4
27 lines
496 B
C
27 lines
496 B
C
/* $NetBSD: unit_test_sample.c,v 1.1.1.2 2014/07/12 11:58:01 spz Exp $ */
|
|
#include "config.h"
|
|
#include "t_api.h"
|
|
|
|
static void foo(void);
|
|
|
|
/*
|
|
* T_testlist is a list of tests that are invoked.
|
|
*/
|
|
testspec_t T_testlist[] = {
|
|
{ foo, "sample test" },
|
|
{ NULL, NULL }
|
|
};
|
|
|
|
static void
|
|
foo(void) {
|
|
static const char *test_desc =
|
|
"this is an example test, for no actual module";
|
|
|
|
t_assert("sample", 1, T_REQUIRED, test_desc);
|
|
|
|
/* ... */ /* Test code would go here. */
|
|
|
|
t_result(T_PASS);
|
|
}
|
|
|