summaryrefslogtreecommitdiff
path: root/test/test_common.c
blob: 2cf8697693cc9cb5f65cf064f5db6ebcb9bda7de (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
33
34
35
36
37
38
39
40
41
42
43
44


#include "test_common.h"

#include <locale.h>

struct testgroup_t groups[] = {
	{ "base/", base_tests },
	{ "aatree/", aatree_tests },
	{ "bits/", bits_tests },
	{ "cxalloc/", cxalloc_tests },
	{ "cbtree/", cbtree_tests },
	{ "crypto/", crypto_tests },
	{ "hashing/", hashing_tests },
	{ "endian/", endian_tests },
	{ "string/", string_tests },
	{ "wchar/", wchar_tests },
	{ "fnmatch/", fnmatch_tests },
	{ "ctype/", ctype_tests },
	{ "heap/", heap_tests },
	{ "hashtab/", hashtab_tests },
	{ "list/", list_tests },
	{ "shlist/", shlist_tests },
	{ "utf8/", utf8_tests },
	{ "strpool/", strpool_tests },
	{ "pgutil/", pgutil_tests },
	{ "regex/", regex_tests },
	{ "socket/", socket_tests },
	{ "netdb/", netdb_tests },
	{ "cfparser/", cfparser_tests },
	{ "getopt/", getopt_tests },
	{ "mdict/", mdict_tests },
	{ "time/", time_tests },
	{ "fileutil/", fileutil_tests },
	END_OF_GROUPS
};

int main(int argc, const char *argv[])
{
	if (getenv("USE_LOCALE"))
		setlocale(LC_ALL, "");
	return tinytest_main(argc, argv, groups);
}