xref: /freebsd/crypto/openssh/regress/unittests/misc/tests.c (revision f374ba41f55c1a127303d92d830dd58eef2f5243)
1*f374ba41SEd Maste /* 	$OpenBSD: tests.c,v 1.10 2023/01/06 02:59:50 djm Exp $ */
219261079SEd Maste /*
319261079SEd Maste  * Regress test for misc helper functions.
419261079SEd Maste  *
519261079SEd Maste  * Placed in the public domain.
619261079SEd Maste  */
719261079SEd Maste 
819261079SEd Maste #include "includes.h"
919261079SEd Maste 
1019261079SEd Maste #include <sys/types.h>
1119261079SEd Maste #include <stdio.h>
1219261079SEd Maste #ifdef HAVE_STDINT_H
1319261079SEd Maste #include <stdint.h>
1419261079SEd Maste #endif
1519261079SEd Maste #include <stdlib.h>
1619261079SEd Maste #include <string.h>
1719261079SEd Maste 
1819261079SEd Maste #include "../test_helper/test_helper.h"
1919261079SEd Maste 
2019261079SEd Maste #include "log.h"
2119261079SEd Maste #include "misc.h"
2219261079SEd Maste 
2319261079SEd Maste void test_parse(void);
2419261079SEd Maste void test_convtime(void);
2519261079SEd Maste void test_expand(void);
2619261079SEd Maste void test_argv(void);
2719261079SEd Maste void test_strdelim(void);
281323ec57SEd Maste void test_hpdelim(void);
29*f374ba41SEd Maste void test_ptimeout(void);
3019261079SEd Maste 
3119261079SEd Maste void
tests(void)3219261079SEd Maste tests(void)
3319261079SEd Maste {
3419261079SEd Maste 	test_parse();
3519261079SEd Maste 	test_convtime();
3619261079SEd Maste 	test_expand();
3719261079SEd Maste 	test_argv();
3819261079SEd Maste 	test_strdelim();
391323ec57SEd Maste 	test_hpdelim();
40*f374ba41SEd Maste 	test_ptimeout();
4119261079SEd Maste }
42