| #include "tests/mustache.c.h" |
| |
| #include "facil.h" |
| #include "fio_ary.h" |
| #include "fio_base64.h" |
| #include "fio_hashmap.h" |
| #include "fio_llist.h" |
| #include "fio_mem.h" |
| #include "fio_random.h" |
| #include "fio_set.h" |
| #include "fio_sha1.h" |
| #include "fio_sha2.h" |
| #include "fio_siphash.h" |
| #include "fio_str.h" |
| #include "http.h" |
| |
| int main(void) { |
| #if DEBUG |
| #if HAVE_OPENSSL && !NODEBUG |
| fprintf(stderr, "\n=== NOTICE: performance tests should be ignored,\n" |
| "=== facil.io's is running in DEBUG mode while " |
| "OpenSSL isn't.\n"); |
| #endif |
| fio_base64_test(); |
| fio_sha1_test(); |
| fio_sha2_test(); |
| fio_siphash_test(); |
| fio_random_test(); |
| #if HAVE_OPENSSL && !NODEBUG |
| fprintf(stderr, "=== NOTICE: performance tests should be ignored,\n" |
| "=== facil.io's is running in DEBUG mode while " |
| "OpenSSL isn't.\n\n"); |
| #endif |
| mustache_test(); |
| fio_malloc_test(); |
| fio_llist_test(); |
| fio_str_test(); |
| fio_ary_test(); |
| fio_hash_test(); |
| fio_ptr_set_test(); |
| fiobj_test(); |
| defer_test(); |
| sock_libtest(); |
| http_tests(); |
| #else |
| fprintf(stderr, "DEBUG must be set to access tests.\n"); |
| exit(-1); |
| #endif |
| return 0; |
| } |