xref: /freebsd/crypto/openssh/regress/unittests/misc/tests.c (revision d9a42747950146bf03cda7f6e25d219253f8a57a)
1 /* 	$OpenBSD: tests.c,v 1.10 2023/01/06 02:59:50 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 #ifdef HAVE_STDINT_H
13 #include <stdint.h>
14 #endif
15 #include <stdlib.h>
16 #include <string.h>
17 
18 #include "../test_helper/test_helper.h"
19 
20 #include "log.h"
21 #include "misc.h"
22 
23 void test_parse(void);
24 void test_convtime(void);
25 void test_expand(void);
26 void test_argv(void);
27 void test_strdelim(void);
28 void test_hpdelim(void);
29 void test_ptimeout(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 }
42