xref: /openbsd/regress/sys/dev/wscons/util.h (revision a83a5986)
1*a83a5986Santon /*	$OpenBSD: util.h,v 1.1 2018/12/17 19:26:25 anton Exp $	*/
2*a83a5986Santon 
3*a83a5986Santon /*
4*a83a5986Santon  * Copyright (c) 2018 Anton Lindqvist <anton@openbsd.org>
5*a83a5986Santon  *
6*a83a5986Santon  * Permission to use, copy, modify, and distribute this software for any
7*a83a5986Santon  * purpose with or without fee is hereby granted, provided that the above
8*a83a5986Santon  * copyright notice and this permission notice appear in all copies.
9*a83a5986Santon  *
10*a83a5986Santon  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11*a83a5986Santon  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12*a83a5986Santon  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13*a83a5986Santon  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14*a83a5986Santon  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15*a83a5986Santon  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16*a83a5986Santon  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17*a83a5986Santon  */
18*a83a5986Santon 
19*a83a5986Santon struct test {
20*a83a5986Santon 	const char *t_name;
21*a83a5986Santon 	int (*t_func)(int);
22*a83a5986Santon };
23*a83a5986Santon 
24*a83a5986Santon int dotest(int argc, char *argv[], const struct test *tests);
25