Debian Codegraph @

regress/unittests/misc/tests.c

raw
1 /* $OpenBSD: tests.c,v 1.13 2025/09/04 00:34:17 djm Exp $ */
2 /*
3 * Regress test for misc helper functions.
4 *
5 * Placed in the public domain.
6 */
7
8 #include "includes.h"
9
10 #include <sys/types.h>
11 #include <stdio.h>
12 #include <stdint.h>
13 #include <stdlib.h>
14 #include <string.h>
15
16 #include "../test_helper/test_helper.h"
17
18 #include "log.h"
19 #include "misc.h"
20
21 void test_parse(void);
22 void test_convtime(void);
23 void test_expand(void);
24 void test_argv(void);
25 void test_strdelim(void);
26 void test_hpdelim(void);
27 void test_ptimeout(void);
28 void test_xextendf(void);
29 void test_misc(void);
30
31 void
32 tests(void)
33 {
34 test_parse();
35 test_convtime();
36 test_expand();
37 test_argv();
38 test_strdelim();
39 test_hpdelim();
40 test_ptimeout();
41 test_xextendf();
42 test_misc();
43 }
44
45 void
46 benchmarks(void)
47 {
48 printf("no benchmarks\n");
49 }