X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/b90f122bd10bd896f2f9b0cf5676bcd436a7d42e..49472b7d2f5a17161612ce992851732b197dda35:/lib/test.c diff --git a/lib/test.c b/lib/test.c index c205a57..63d7260 100644 --- a/lib/test.c +++ b/lib/test.c @@ -21,7 +21,7 @@ #include "test.h" -int tests, errors; +long long tests, errors; int fail_first; void count_error(void) { @@ -90,78 +90,6 @@ const char *do_printf(const char *fmt, ...) { return s; } -int main(void) { - mem_init(); - fail_first = !!getenv("FAIL_FIRST"); - insist('\n' == 0x0A); - insist('\r' == 0x0D); - insist(' ' == 0x20); - insist('0' == 0x30); - insist('9' == 0x39); - insist('A' == 0x41); - insist('Z' == 0x5A); - insist('a' == 0x61); - insist('z' == 0x7A); - /* addr.c */ - test_addr(); - /* asprintf.c */ - /* authhash.c */ - /* basen.c */ - test_basen(); - /* charset.c */ - /* client.c */ - /* configuration.c */ - /* event.c */ - /* filepart.c */ - test_filepart(); - /* fprintf.c */ - /* heap.c */ - test_heap(); - /* hex.c */ - test_hex(); - /* inputline.c */ - /* kvp.c */ - test_kvp(); - /* log.c */ - /* mem.c */ - /* mime.c */ - test_mime(); - test_cookies(); - /* mixer.c */ - /* plugin.c */ - /* printf.c */ - test_printf(); - /* queue.c */ - /* sink.c */ - test_sink(); - /* snprintf.c */ - /* split.c */ - test_split(); - /* syscalls.c */ - /* table.c */ - /* unicode.c */ - test_unicode(); - /* utf8.c */ - test_utf8(); - /* vector.c */ - /* words.c */ - test_casefold(); - test_words(); - /* wstat.c */ - test_wstat(); - /* signame.c */ - test_signame(); - /* cache.c */ - test_cache(); - /* selection.c */ - test_selection(); - test_hash(); - test_url(); - test_regsub(); - fprintf(stderr, "%d errors out of %d tests\n", errors, tests); - return !!errors; -} - /* Local Variables: c-basic-offset:2