test-lib.c revision 8bec19723b39071a1794e76dec35d151473cae5f
02c335c23bf5fa225a467c19f2c063fb0dc7b8c3Timo Sirainen/* Copyright (c) 2007-2014 Dovecot authors, see the included COPYING file */
3fcb3d2d1f3583025ff62bae95ec706920f398b1Stephan Bosch
3fcb3d2d1f3583025ff62bae95ec706920f398b1Stephan Bosch#include "test-lib.h"
3fcb3d2d1f3583025ff62bae95ec706920f398b1Stephan Bosch
3fcb3d2d1f3583025ff62bae95ec706920f398b1Stephan Boschint main(void)
3fcb3d2d1f3583025ff62bae95ec706920f398b1Stephan Bosch{
2f64a4c88de91c483fb378bc80d10e1caa6f2305Stephan Bosch static void (*test_functions[])(void) = {
2f64a4c88de91c483fb378bc80d10e1caa6f2305Stephan Bosch test_aqueue,
2f64a4c88de91c483fb378bc80d10e1caa6f2305Stephan Bosch test_array,
2f64a4c88de91c483fb378bc80d10e1caa6f2305Stephan Bosch test_base64,
2f64a4c88de91c483fb378bc80d10e1caa6f2305Stephan Bosch test_bits,
2f64a4c88de91c483fb378bc80d10e1caa6f2305Stephan Bosch test_bsearch_insert_pos,
2f64a4c88de91c483fb378bc80d10e1caa6f2305Stephan Bosch test_buffer,
2f64a4c88de91c483fb378bc80d10e1caa6f2305Stephan Bosch test_crc32,
2f64a4c88de91c483fb378bc80d10e1caa6f2305Stephan Bosch test_data_stack,
2f64a4c88de91c483fb378bc80d10e1caa6f2305Stephan Bosch test_hash,
2f64a4c88de91c483fb378bc80d10e1caa6f2305Stephan Bosch test_hash_format,
2f64a4c88de91c483fb378bc80d10e1caa6f2305Stephan Bosch test_hash_method,
2f64a4c88de91c483fb378bc80d10e1caa6f2305Stephan Bosch test_hex_binary,
2f64a4c88de91c483fb378bc80d10e1caa6f2305Stephan Bosch test_iso8601_date,
2f64a4c88de91c483fb378bc80d10e1caa6f2305Stephan Bosch test_istream,
2f64a4c88de91c483fb378bc80d10e1caa6f2305Stephan Bosch test_istream_base64_decoder,
2f64a4c88de91c483fb378bc80d10e1caa6f2305Stephan Bosch test_istream_base64_encoder,
2f64a4c88de91c483fb378bc80d10e1caa6f2305Stephan Bosch test_istream_concat,
2f64a4c88de91c483fb378bc80d10e1caa6f2305Stephan Bosch test_istream_crlf,
2f64a4c88de91c483fb378bc80d10e1caa6f2305Stephan Bosch test_istream_seekable,
2f64a4c88de91c483fb378bc80d10e1caa6f2305Stephan Bosch test_istream_tee,
2f64a4c88de91c483fb378bc80d10e1caa6f2305Stephan Bosch test_json_parser,
2f64a4c88de91c483fb378bc80d10e1caa6f2305Stephan Bosch test_llist,
2f64a4c88de91c483fb378bc80d10e1caa6f2305Stephan Bosch test_mempool_alloconly,
2f64a4c88de91c483fb378bc80d10e1caa6f2305Stephan Bosch test_network,
2f64a4c88de91c483fb378bc80d10e1caa6f2305Stephan Bosch test_numpack,
2f64a4c88de91c483fb378bc80d10e1caa6f2305Stephan Bosch test_ostream_file,
2f64a4c88de91c483fb378bc80d10e1caa6f2305Stephan Bosch test_primes,
3fcb3d2d1f3583025ff62bae95ec706920f398b1Stephan Bosch test_printf_format_fix,
3fcb3d2d1f3583025ff62bae95ec706920f398b1Stephan Bosch test_priorityq,
3fcb3d2d1f3583025ff62bae95ec706920f398b1Stephan Bosch test_seq_range_array,
2f64a4c88de91c483fb378bc80d10e1caa6f2305Stephan Bosch test_str,
3fcb3d2d1f3583025ff62bae95ec706920f398b1Stephan Bosch test_strescape,
3fcb3d2d1f3583025ff62bae95ec706920f398b1Stephan Bosch test_strfuncs,
3fcb3d2d1f3583025ff62bae95ec706920f398b1Stephan Bosch test_strnum,
45324f1eafa565dbc65e4dd335de9507dead55e6Timo Sirainen test_str_find,
3fcb3d2d1f3583025ff62bae95ec706920f398b1Stephan Bosch test_str_sanitize,
3fcb3d2d1f3583025ff62bae95ec706920f398b1Stephan Bosch test_time_util,
3fcb3d2d1f3583025ff62bae95ec706920f398b1Stephan Bosch test_unichar,
3fcb3d2d1f3583025ff62bae95ec706920f398b1Stephan Bosch test_utc_mktime,
3fcb3d2d1f3583025ff62bae95ec706920f398b1Stephan Bosch test_var_expand,
2f64a4c88de91c483fb378bc80d10e1caa6f2305Stephan Bosch NULL
3fcb3d2d1f3583025ff62bae95ec706920f398b1Stephan Bosch };
833bed942977673526c72e79bccc09314fc57104Phil Carmody static enum fatal_test_state (*fatal_functions[])(int) = {
3fcb3d2d1f3583025ff62bae95ec706920f398b1Stephan Bosch fatal_mempool,
3fcb3d2d1f3583025ff62bae95ec706920f398b1Stephan Bosch fatal_printf_format_fix,
3fcb3d2d1f3583025ff62bae95ec706920f398b1Stephan Bosch NULL
3fcb3d2d1f3583025ff62bae95ec706920f398b1Stephan Bosch };
3fcb3d2d1f3583025ff62bae95ec706920f398b1Stephan Bosch return test_run_with_fatals(test_functions, fatal_functions);
e9228a3918aa0243eff4aae1ff5462bd3198417fTimo Sirainen}
3fcb3d2d1f3583025ff62bae95ec706920f398b1Stephan Bosch