blob: 3627acec4f4dc0dfee6742e6c592dbae6a7cc671 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
/* SPDX-License-Identifier: LGPL-2.1-only */
/*
* The Rin Library – library "conformance" tests
*
* Copyright (C) 2015-2017 Gediminas Jakutis
*/
#ifndef LIBRIN_TEST_INCLUDED
#define LIBRIN_TEST_INCLUDED
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
/* TODO: move to a shared util header */
#define arrlen(a) (sizeof(a)/sizeof(a[0]))
struct section {
char *name;
int (*testfunc)(char*);
};
struct test {
char *name;
int (*testfunc)(void);
};
int ok(const unsigned int test, const char *format, ...);
#endif /* LIBRIN_TEST_INCLUDED */
|