From e78ce26c5819b8ca7a4c937a424d008f38a9fffe Mon Sep 17 00:00:00 2001 From: Richard Russon Date: Wed, 1 May 2019 16:54:42 +0100 Subject: [PATCH] test: merge tests --- Makefile.autosetup | 3 - test/Makefile.autosetup | 646 ++++----------------------- test/address/main.c | 68 --- test/attach/main.c | 48 -- test/base64/main.c | 46 -- test/body/main.c | 46 -- test/buffer/main.c | 63 --- test/charset/main.c | 62 --- test/config/main.c | 82 ---- test/date/main.c | 56 --- test/email/main.c | 47 -- test/envelope/main.c | 49 -- test/envlist/main.c | 47 -- test/file/main.c | 82 ---- test/from/main.c | 43 -- test/group/main.c | 53 --- test/hash/main.c | 56 --- test/hash/mutt_hash_set_destructor.c | 6 +- test/history/main.c | 52 --- test/idna/main.c | 46 -- test/list/main.c | 51 --- test/list/mutt_list_free_type.c | 4 +- test/logging/main.c | 56 --- test/main.c | 389 ++++++++++++++++ test/mapping/main.c | 44 -- test/mbyte/main.c | 54 --- test/md5/common.c | 2 +- test/md5/common.h | 2 +- test/md5/main.c | 49 -- test/md5/mutt_md5.c | 8 +- test/md5/mutt_md5_bytes.c | 8 +- test/md5/mutt_md5_init_ctx.c | 8 +- test/memory/main.c | 46 -- test/parameter/main.c | 50 --- test/parse/main.c | 58 --- test/path/main.c | 57 --- test/pattern/main.c | 43 -- test/regex/main.c | 56 --- test/rfc2047/common.c | 2 +- test/rfc2047/common.h | 2 +- test/rfc2047/main.c | 49 -- test/rfc2047/rfc2047_decode.c | 14 +- test/rfc2047/rfc2047_encode.c | 8 +- test/rfc2231/main.c | 45 -- test/sha1/main.c | 46 -- test/signal/main.c | 50 --- test/string/main.c | 88 ---- test/tags/main.c | 49 -- test/thread/main.c | 50 --- test/url/main.c | 50 --- 50 files changed, 516 insertions(+), 2523 deletions(-) delete mode 100644 test/address/main.c delete mode 100644 test/attach/main.c delete mode 100644 test/base64/main.c delete mode 100644 test/body/main.c delete mode 100644 test/buffer/main.c delete mode 100644 test/charset/main.c delete mode 100644 test/config/main.c delete mode 100644 test/date/main.c delete mode 100644 test/email/main.c delete mode 100644 test/envelope/main.c delete mode 100644 test/envlist/main.c delete mode 100644 test/file/main.c delete mode 100644 test/from/main.c delete mode 100644 test/group/main.c delete mode 100644 test/hash/main.c delete mode 100644 test/history/main.c delete mode 100644 test/idna/main.c delete mode 100644 test/list/main.c delete mode 100644 test/logging/main.c delete mode 100644 test/mapping/main.c delete mode 100644 test/mbyte/main.c delete mode 100644 test/md5/main.c delete mode 100644 test/memory/main.c delete mode 100644 test/parameter/main.c delete mode 100644 test/parse/main.c delete mode 100644 test/path/main.c delete mode 100644 test/pattern/main.c delete mode 100644 test/regex/main.c delete mode 100644 test/rfc2047/main.c delete mode 100644 test/rfc2231/main.c delete mode 100644 test/sha1/main.c delete mode 100644 test/signal/main.c delete mode 100644 test/string/main.c delete mode 100644 test/tags/main.c delete mode 100644 test/thread/main.c delete mode 100644 test/url/main.c diff --git a/Makefile.autosetup b/Makefile.autosetup index 201beca50..d3349834b 100644 --- a/Makefile.autosetup +++ b/Makefile.autosetup @@ -450,9 +450,6 @@ coverage: all test -genhtml -o lcov lcov.info -f lcov -l lcov.info -# Tests for the config code -config-test: libmutt.a libemail.a libconfig.a libaddress.a - ############################################################################## # include generated dependency files -include $(DEPFILES) diff --git a/test/Makefile.autosetup b/test/Makefile.autosetup index 0157724fb..551550974 100644 --- a/test/Makefile.autosetup +++ b/test/Makefile.autosetup @@ -1,7 +1,4 @@ -TEST_OBJS = test/main.o \ - -ADDRESS_OBJS = test/address/main.o \ - test/address/mutt_addr_append.o \ +ADDRESS_OBJS = test/address/mutt_addr_append.o \ test/address/mutt_addr_cat.o \ test/address/mutt_addr_cmp.o \ test/address/mutt_addr_cmp_strict.o \ @@ -28,26 +25,22 @@ ADDRESS_OBJS = test/address/main.o \ test/address/mutt_addr_write.o \ test/address/mutt_addr_write_single.o -ATTACH_OBJS = test/attach/main.o \ - test/attach/mutt_actx_add_fp.o \ +ATTACH_OBJS = test/attach/mutt_actx_add_fp.o \ test/attach/mutt_actx_free_entries.o \ test/attach/mutt_actx_free.o \ test/attach/mutt_actx_add_body.o \ test/attach/mutt_actx_add_attach.o -BASE64_OBJS = test/base64/main.o \ - test/base64/mutt_b64_buffer_decode.o \ +BASE64_OBJS = test/base64/mutt_b64_buffer_decode.o \ test/base64/mutt_b64_buffer_encode.o \ test/base64/mutt_b64_decode.o \ test/base64/mutt_b64_encode.o -BODY_OBJS = test/body/main.o \ - test/body/mutt_body_free.o \ +BODY_OBJS = test/body/mutt_body_free.o \ test/body/mutt_body_cmp_strict.o \ test/body/mutt_body_new.o -BUFFER_OBJS = test/buffer/main.o \ - test/buffer/mutt_buffer_addch.o \ +BUFFER_OBJS = test/buffer/mutt_buffer_addch.o \ test/buffer/mutt_buffer_add_printf.o \ test/buffer/mutt_buffer_addstr.o \ test/buffer/mutt_buffer_addstr_n.o \ @@ -69,8 +62,7 @@ BUFFER_OBJS = test/buffer/main.o \ test/buffer/mutt_buffer_strcpy.o \ test/buffer/mutt_buffer_strcpy_n.o -CHARSET_OBJS = test/charset/main.o \ - test/charset/mutt_ch_canonical_charset.o \ +CHARSET_OBJS = test/charset/mutt_ch_canonical_charset.o \ test/charset/mutt_ch_charset_lookup.o \ test/charset/mutt_ch_check.o \ test/charset/mutt_ch_check_charset.o \ @@ -91,17 +83,26 @@ CHARSET_OBJS = test/charset/main.o \ test/charset/mutt_ch_lookup_remove.o \ test/charset/mutt_ch_set_charset.o -CONFIG_OBJS = test/config/main.o test/config/account.o \ - test/config/address.o test/config/bool.o \ - test/config/command.o test/config/common.o test/config/dump.o \ - test/config/initial.o test/config/long.o \ - test/config/magic.o test/config/mbtable.o \ - test/config/number.o test/config/path.o test/config/quad.o \ - test/config/regex.o test/config/set.o test/config/sort.o \ - test/config/string.o test/config/synonym.o - -DATE_OBJS = test/date/main.o \ - test/date/mutt_date_add_timeout.o \ +CONFIG_OBJS = test/config/account.o \ + test/config/address.o \ + test/config/bool.o \ + test/config/command.o \ + test/config/common.o \ + test/config/dump.o \ + test/config/initial.o \ + test/config/long.o \ + test/config/magic.o \ + test/config/mbtable.o \ + test/config/number.o \ + test/config/path.o \ + test/config/quad.o \ + test/config/regex.o \ + test/config/set.o \ + test/config/sort.o \ + test/config/string.o \ + test/config/synonym.o + +DATE_OBJS = test/date/mutt_date_add_timeout.o \ test/date/mutt_date_check_month.o \ test/date/mutt_date_gmtime.o \ test/date/mutt_date_is_day_name.o \ @@ -116,29 +117,25 @@ DATE_OBJS = test/date/main.o \ test/date/mutt_date_parse_date.o \ test/date/mutt_date_parse_imap.o -EMAIL_OBJS = test/email/main.o \ - test/email/mutt_email_new.o \ +EMAIL_OBJS = test/email/mutt_email_new.o \ test/email/mutt_email_free.o \ test/email/mutt_email_size.o \ test/email/mutt_email_cmp_strict.o -ENVELOPE_OBJS = test/envelope/main.o \ - test/envelope/mutt_env_free.o \ +ENVELOPE_OBJS = test/envelope/mutt_env_free.o \ test/envelope/mutt_env_cmp_strict.o \ test/envelope/mutt_env_to_local.o \ test/envelope/mutt_env_merge.o \ test/envelope/mutt_env_new.o \ test/envelope/mutt_env_to_intl.o -ENVLIST_OBJS = test/envlist/main.o \ - test/envlist/mutt_envlist_free.o \ +ENVLIST_OBJS = test/envlist/mutt_envlist_free.o \ test/envlist/mutt_envlist_getlist.o \ test/envlist/mutt_envlist_init.o \ test/envlist/mutt_envlist_set.o \ test/envlist/mutt_envlist_unset.o -FILE_OBJS = test/file/main.o \ - test/file/common.o \ +FILE_OBJS = test/file/common.o \ test/file/mutt_file_check_empty.o \ test/file/mutt_file_chmod_add.o \ test/file/mutt_file_chmod_add_stat.o \ @@ -180,11 +177,9 @@ FILE_OBJS = test/file/main.o \ test/file/mutt_file_unlink_empty.o \ test/file/mutt_file_unlock.o -FROM_OBJS = test/from/main.o \ - test/from/is_from.o +FROM_OBJS = test/from/is_from.o -GROUP_OBJS = test/group/main.o \ - test/group/mutt_grouplist_add_addrlist.o \ +GROUP_OBJS = test/group/mutt_grouplist_add_addrlist.o \ test/group/mutt_grouplist_add.o \ test/group/mutt_grouplist_add_regex.o \ test/group/mutt_grouplist_clear.o \ @@ -196,8 +191,7 @@ GROUP_OBJS = test/group/main.o \ test/group/mutt_group_match.o \ test/group/mutt_pattern_group.o -HASH_OBJS = test/hash/main.o \ - test/hash/mutt_hash_delete.o \ +HASH_OBJS = test/hash/mutt_hash_delete.o \ test/hash/mutt_hash_find_bucket.o \ test/hash/mutt_hash_find.o \ test/hash/mutt_hash_find_elem.o \ @@ -212,8 +206,7 @@ HASH_OBJS = test/hash/main.o \ test/hash/mutt_hash_typed_insert.o \ test/hash/mutt_hash_walk.o -HISTORY_OBJS = test/history/main.o \ - test/history/mutt_hist_add.o \ +HISTORY_OBJS = test/history/mutt_hist_add.o \ test/history/mutt_hist_at_scratch.o \ test/history/mutt_hist_free.o \ test/history/mutt_hist_init.o \ @@ -224,14 +217,12 @@ HISTORY_OBJS = test/history/main.o \ test/history/mutt_hist_save_scratch.o \ test/history/mutt_hist_search.o -IDNA_OBJS = test/idna/main.o \ - test/idna/mutt_idna_intl_to_local.o \ +IDNA_OBJS = test/idna/mutt_idna_intl_to_local.o \ test/idna/mutt_idna_local_to_intl.o \ test/idna/mutt_idna_print_version.o \ test/idna/mutt_idna_to_ascii_lz.o -LIST_OBJS = test/list/main.o \ - test/list/mutt_list_clear.o \ +LIST_OBJS = test/list/mutt_list_clear.o \ test/list/mutt_list_compare.o \ test/list/mutt_list_find.o \ test/list/mutt_list_free.o \ @@ -241,8 +232,7 @@ LIST_OBJS = test/list/main.o \ test/list/mutt_list_insert_tail.o \ test/list/mutt_list_match.o -LOGGING_OBJS = test/logging/main.o \ - test/logging/log_disp_file.o \ +LOGGING_OBJS = test/logging/log_disp_file.o \ test/logging/log_disp_queue.o \ test/logging/log_disp_terminal.o \ test/logging/log_file_close.o \ @@ -257,12 +247,10 @@ LOGGING_OBJS = test/logging/main.o \ test/logging/log_queue_save.o \ test/logging/log_queue_set_max_size.o -MAPPING_OBJS = test/mapping/main.o \ - test/mapping/mutt_map_get_name.o \ +MAPPING_OBJS = test/mapping/mutt_map_get_name.o \ test/mapping/mutt_map_get_value.o -MBYTE_OBJS = test/mbyte/main.o \ - test/mbyte/mutt_mb_charlen.o \ +MBYTE_OBJS = test/mbyte/mutt_mb_charlen.o \ test/mbyte/mutt_mb_filter_unprintable.o \ test/mbyte/mutt_mb_get_initials.o \ test/mbyte/mutt_mb_is_display_corrupting_utf8.o \ @@ -275,8 +263,7 @@ MBYTE_OBJS = test/mbyte/main.o \ test/mbyte/mutt_mb_width.o \ test/mbyte/mutt_mb_width_ceiling.o -MD5_OBJS = test/md5/main.o \ - test/md5/common.o \ +MD5_OBJS = test/md5/common.o \ test/md5/mutt_md5_bytes.o \ test/md5/mutt_md5.o \ test/md5/mutt_md5_finish_ctx.o \ @@ -285,14 +272,12 @@ MD5_OBJS = test/md5/main.o \ test/md5/mutt_md5_process.o \ test/md5/mutt_md5_toascii.o -MEMORY_OBJS = test/memory/main.o \ - test/memory/mutt_mem_calloc.o \ +MEMORY_OBJS = test/memory/mutt_mem_calloc.o \ test/memory/mutt_mem_free.o \ test/memory/mutt_mem_malloc.o \ test/memory/mutt_mem_realloc.o -PARAMETER_OBJS = test/parameter/main.o \ - test/parameter/mutt_param_new.o \ +PARAMETER_OBJS = test/parameter/mutt_param_new.o \ test/parameter/mutt_param_delete.o \ test/parameter/mutt_param_get.o \ test/parameter/mutt_param_cmp_strict.o \ @@ -300,8 +285,7 @@ PARAMETER_OBJS = test/parameter/main.o \ test/parameter/mutt_param_set.o \ test/parameter/mutt_param_free.o -PARSE_OBJS = test/parse/main.o \ - test/parse/mutt_check_encoding.o \ +PARSE_OBJS = test/parse/mutt_check_encoding.o \ test/parse/mutt_matches_ignore.o \ test/parse/mutt_parse_mailto.o \ test/parse/mutt_auto_subscribe.o \ @@ -317,8 +301,7 @@ PARSE_OBJS = test/parse/main.o \ test/parse/mutt_rfc822_read_header.o \ test/parse/mutt_extract_message_id.o -PATH_OBJS = test/path/main.o \ - test/path/mutt_path_abbr_folder.o \ +PATH_OBJS = test/path/mutt_path_abbr_folder.o \ test/path/mutt_path_basename.o \ test/path/mutt_path_canon.o \ test/path/mutt_path_concat.o \ @@ -334,14 +317,12 @@ PATH_OBJS = test/path/main.o \ test/path/mutt_path_tidy_slash.o \ test/path/mutt_path_to_absolute.o -PATTERN_OBJS = test/pattern/main.o \ - test/pattern/comp.o \ +PATTERN_OBJS = test/pattern/comp.o \ test/pattern/dummy.o \ test/pattern/extract.o \ pattern.o -REGEX_OBJS = test/regex/main.o \ - test/regex/mutt_regex_compile.o \ +REGEX_OBJS = test/regex/mutt_regex_compile.o \ test/regex/mutt_regex_free.o \ test/regex/mutt_regexlist_add.o \ test/regex/mutt_regexlist_free.o \ @@ -356,8 +337,7 @@ REGEX_OBJS = test/regex/main.o \ test/regex/mutt_replacelist_new.o \ test/regex/mutt_replacelist_remove.o -RFC2047_OBJS = test/rfc2047/main.o \ - test/rfc2047/common.o \ +RFC2047_OBJS = test/rfc2047/common.o \ test/rfc2047/rfc2047_decode_addrlist.o \ test/rfc2047/rfc2047_decode.o \ test/rfc2047/rfc2047_decode_envelope.o \ @@ -365,18 +345,15 @@ RFC2047_OBJS = test/rfc2047/main.o \ test/rfc2047/rfc2047_encode_envelope.o \ test/rfc2047/rfc2047_encode.o -RFC2231_OBJS = test/rfc2231/main.o \ - test/rfc2231/rfc2231_encode_string.o \ +RFC2231_OBJS = test/rfc2231/rfc2231_encode_string.o \ test/rfc2231/rfc2231_decode_parameters.o -SHA1_OBJS = test/sha1/main.o \ - test/sha1/mutt_sha1_final.o \ +SHA1_OBJS = test/sha1/mutt_sha1_final.o \ test/sha1/mutt_sha1_init.o \ test/sha1/mutt_sha1_transform.o \ test/sha1/mutt_sha1_update.o -SIGNAL_OBJS = test/signal/main.o \ - test/signal/mutt_sig_allow_interrupt.o \ +SIGNAL_OBJS = test/signal/mutt_sig_allow_interrupt.o \ test/signal/mutt_sig_block.o \ test/signal/mutt_sig_block_system.o \ test/signal/mutt_sig_empty_handler.o \ @@ -385,8 +362,7 @@ SIGNAL_OBJS = test/signal/main.o \ test/signal/mutt_sig_unblock.o \ test/signal/mutt_sig_unblock_system.o -STRING_OBJS = test/string/main.o \ - test/string/mutt_str_adjust.o \ +STRING_OBJS = test/string/mutt_str_adjust.o \ test/string/mutt_str_append_item.o \ test/string/mutt_str_asprintf.o \ test/string/mutt_str_atoi.o \ @@ -433,16 +409,14 @@ STRING_OBJS = test/string/main.o \ test/string/mutt_str_sysexit.o \ test/string/mutt_str_word_casecmp.o -TAGS_OBJS = test/tags/main.o \ - test/tags/driver_tags_get.o \ +TAGS_OBJS = test/tags/driver_tags_get.o \ test/tags/driver_tags_replace.o \ test/tags/driver_tags_get_transformed.o \ test/tags/driver_tags_get_with_hidden.o \ test/tags/driver_tags_free.o \ test/tags/driver_tags_get_transformed_for.o -THREAD_OBJS = test/thread/main.o \ - test/thread/thread_hash_destructor.o \ +THREAD_OBJS = test/thread/thread_hash_destructor.o \ test/thread/is_descendant.o \ test/thread/mutt_break_thread.o \ test/thread/unlink_message.o \ @@ -450,8 +424,7 @@ THREAD_OBJS = test/thread/main.o \ test/thread/find_virtual.o \ test/thread/insert_message.o -URL_OBJS = test/url/main.o \ - test/url/url_pct_encode.o \ +URL_OBJS = test/url/url_pct_encode.o \ test/url/url_check_scheme.o \ test/url/url_parse.o \ test/url/url_free.o \ @@ -459,380 +432,59 @@ URL_OBJS = test/url/main.o \ test/url/url_pct_decode.o \ test/url/url_tobuffer.o +TEST_OBJS = test/main.o \ + $(ADDRESS_OBJS) \ + $(ATTACH_OBJS) \ + $(BASE64_OBJS) \ + $(BODY_OBJS) \ + $(BUFFER_OBJS) \ + $(CHARSET_OBJS) \ + $(CONFIG_OBJS) \ + $(DATE_OBJS) \ + $(EMAIL_OBJS) \ + $(ENVELOPE_OBJS) \ + $(ENVLIST_OBJS) \ + $(FILE_OBJS) \ + $(FROM_OBJS) \ + $(GROUP_OBJS) \ + $(HASH_OBJS) \ + $(HISTORY_OBJS) \ + $(IDNA_OBJS) \ + $(LIST_OBJS) \ + $(LOGGING_OBJS) \ + $(MAPPING_OBJS) \ + $(MBYTE_OBJS) \ + $(MD5_OBJS) \ + $(MEMORY_OBJS) \ + $(PARAMETER_OBJS) \ + $(PARSE_OBJS) \ + $(PATH_OBJS) \ + $(PATTERN_OBJS) \ + $(REGEX_OBJS) \ + $(RFC2047_OBJS) \ + $(RFC2231_OBJS) \ + $(SHA1_OBJS) \ + $(SIGNAL_OBJS) \ + $(STRING_OBJS) \ + $(TAGS_OBJS) \ + $(THREAD_OBJS) \ + $(URL_OBJS) + CFLAGS += -I$(SRCDIR)/test TEST_BINARY = test/neomutt-test$(EXEEXT) -TEST_ADDRESS = test/address-test$(EXEEXT) - -TEST_ATTACH = test/attach-test$(EXEEXT) - -TEST_BASE64 = test/base64-test$(EXEEXT) - -TEST_BODY = test/body-test$(EXEEXT) - -TEST_BUFFER = test/buffer-test$(EXEEXT) - -TEST_CHARSET = test/charset-test$(EXEEXT) - -TEST_CONFIG = test/config-test$(EXEEXT) - -TEST_DATE = test/date-test$(EXEEXT) - -TEST_EMAIL = test/email-test$(EXEEXT) - -TEST_ENVELOPE = test/envelope-test$(EXEEXT) - -TEST_ENVLIST = test/envlist-test$(EXEEXT) - -TEST_FILE = test/file-test$(EXEEXT) - -TEST_FROM = test/from-test$(EXEEXT) - -TEST_GROUP = test/group-test$(EXEEXT) - -TEST_HASH = test/hash-test$(EXEEXT) - -TEST_HISTORY = test/history-test$(EXEEXT) - -TEST_IDNA = test/idna-test$(EXEEXT) - -TEST_LIST = test/list-test$(EXEEXT) - -TEST_LOGGING = test/logging-test$(EXEEXT) - -TEST_MAPPING = test/mapping-test$(EXEEXT) - -TEST_MBYTE = test/mbyte-test$(EXEEXT) - -TEST_MD5 = test/md5-test$(EXEEXT) - -TEST_MEMORY = test/memory-test$(EXEEXT) - -TEST_PARAMETER = test/parameter-test$(EXEEXT) - -TEST_PARSE = test/parse-test$(EXEEXT) - -TEST_PATH = test/path-test$(EXEEXT) - -TEST_PATTERN = test/pattern-test$(EXEEXT) - -TEST_REGEX = test/regex-test$(EXEEXT) - -TEST_RFC2047 = test/rfc2047-test$(EXEEXT) - -TEST_RFC2231 = test/rfc2231-test$(EXEEXT) - -TEST_SHA1 = test/sha1-test$(EXEEXT) - -TEST_SIGNAL = test/signal-test$(EXEEXT) - -TEST_STRING = test/string-test$(EXEEXT) - -TEST_TAGS = test/tags-test$(EXEEXT) - -TEST_THREAD = test/thread-test$(EXEEXT) - -TEST_URL = test/url-test$(EXEEXT) - .PHONY: test -test: $(TEST_BINARY) $(TEST_ADDRESS) $(TEST_ATTACH) $(TEST_BASE64) $(TEST_BODY) $(TEST_BUFFER) $(TEST_CHARSET) $(TEST_CONFIG) $(TEST_DATE) $(TEST_EMAIL) $(TEST_ENVELOPE) $(TEST_ENVLIST) $(TEST_FILE) $(TEST_FROM) $(TEST_GROUP) $(TEST_HASH) $(TEST_HISTORY) $(TEST_IDNA) $(TEST_LIST) $(TEST_LOGGING) $(TEST_MAPPING) $(TEST_MBYTE) $(TEST_MD5) $(TEST_MEMORY) $(TEST_PARAMETER) $(TEST_PARSE) $(TEST_PATH) $(TEST_PATTERN) $(TEST_REGEX) $(TEST_RFC2047) $(TEST_RFC2231) $(TEST_SHA1) $(TEST_SIGNAL) $(TEST_STRING) $(TEST_TAGS) $(TEST_THREAD) $(TEST_URL) +test: $(TEST_BINARY) $(TEST_BINARY) - $(TEST_ADDRESS) - $(TEST_ATTACH) - $(TEST_BASE64) - $(TEST_BODY) - $(TEST_BUFFER) - $(TEST_CONFIG) - $(TEST_DATE) - $(TEST_EMAIL) - $(TEST_ENVELOPE) - $(TEST_ENVLIST) - $(TEST_FILE) - $(TEST_FROM) - $(TEST_GROUP) - $(TEST_HASH) - $(TEST_HISTORY) - $(TEST_IDNA) - $(TEST_LIST) - $(TEST_LOGGING) - $(TEST_MAPPING) - $(TEST_MBYTE) - $(TEST_MD5) - $(TEST_MEMORY) - $(TEST_PARAMETER) - $(TEST_PARSE) - $(TEST_PATH) - $(TEST_PATTERN) - $(TEST_REGEX) - $(TEST_RFC2047) - $(TEST_RFC2231) - $(TEST_SHA1) - $(TEST_SIGNAL) - $(TEST_STRING) - $(TEST_TAGS) - $(TEST_THREAD) - $(TEST_URL) $(TEST_BINARY): $(TEST_OBJS) $(MUTTLIBS) $(CC) -o $@ $(TEST_OBJS) $(MUTTLIBS) $(LDFLAGS) $(LIBS) -$(TEST_ADDRESS): $(PWD)/test/address $(ADDRESS_OBJS) $(MUTTLIBS) - $(CC) -o $@ $(ADDRESS_OBJS) $(MUTTLIBS) $(LDFLAGS) $(LIBS) - -$(TEST_ATTACH): $(PWD)/test/attach $(ATTACH_OBJS) $(MUTTLIBS) - $(CC) -o $@ $(ATTACH_OBJS) $(MUTTLIBS) $(LDFLAGS) $(LIBS) - -$(TEST_BASE64): $(PWD)/test/base64 $(BASE64_OBJS) $(MUTTLIBS) - $(CC) -o $@ $(BASE64_OBJS) $(MUTTLIBS) $(LDFLAGS) $(LIBS) - -$(TEST_BODY): $(PWD)/test/body $(BODY_OBJS) $(MUTTLIBS) - $(CC) -o $@ $(BODY_OBJS) $(MUTTLIBS) $(LDFLAGS) $(LIBS) - -$(TEST_BUFFER): $(PWD)/test/buffer $(BUFFER_OBJS) $(MUTTLIBS) - $(CC) -o $@ $(BUFFER_OBJS) $(MUTTLIBS) $(LDFLAGS) $(LIBS) - -$(TEST_CHARSET): $(PWD)/test/charset $(CHARSET_OBJS) $(MUTTLIBS) - $(CC) -o $@ $(CHARSET_OBJS) $(MUTTLIBS) $(LDFLAGS) $(LIBS) - -$(TEST_CONFIG): $(PWD)/test/config $(CONFIG_OBJS) $(MUTTLIBS) - $(CC) -o $@ $(CONFIG_OBJS) $(MUTTLIBS) $(LDFLAGS) $(LIBS) - -$(TEST_DATE): $(PWD)/test/date $(DATE_OBJS) $(MUTTLIBS) - $(CC) -o $@ $(DATE_OBJS) $(MUTTLIBS) $(LDFLAGS) $(LIBS) - -$(TEST_EMAIL): $(PWD)/test/email $(EMAIL_OBJS) $(MUTTLIBS) - $(CC) -o $@ $(EMAIL_OBJS) $(MUTTLIBS) $(LDFLAGS) $(LIBS) - -$(TEST_ENVELOPE): $(PWD)/test/envelope $(ENVELOPE_OBJS) $(MUTTLIBS) - $(CC) -o $@ $(ENVELOPE_OBJS) $(MUTTLIBS) $(LDFLAGS) $(LIBS) - -$(TEST_ENVLIST): $(PWD)/test/envlist $(ENVLIST_OBJS) $(MUTTLIBS) - $(CC) -o $@ $(ENVLIST_OBJS) $(MUTTLIBS) $(LDFLAGS) $(LIBS) - -$(TEST_FILE): $(PWD)/test/file $(FILE_OBJS) $(MUTTLIBS) - $(CC) -o $@ $(FILE_OBJS) $(MUTTLIBS) $(LDFLAGS) $(LIBS) - -$(TEST_FROM): $(PWD)/test/from $(FROM_OBJS) $(MUTTLIBS) - $(CC) -o $@ $(FROM_OBJS) $(MUTTLIBS) $(LDFLAGS) $(LIBS) - -$(TEST_GROUP): $(PWD)/test/group $(GROUP_OBJS) $(MUTTLIBS) - $(CC) -o $@ $(GROUP_OBJS) $(MUTTLIBS) $(LDFLAGS) $(LIBS) - -$(TEST_HASH): $(PWD)/test/hash $(HASH_OBJS) $(MUTTLIBS) - $(CC) -o $@ $(HASH_OBJS) $(MUTTLIBS) $(LDFLAGS) $(LIBS) - -$(TEST_HISTORY): $(PWD)/test/history $(HISTORY_OBJS) $(MUTTLIBS) - $(CC) -o $@ $(HISTORY_OBJS) $(MUTTLIBS) $(LDFLAGS) $(LIBS) - -$(TEST_IDNA): $(PWD)/test/idna $(IDNA_OBJS) $(MUTTLIBS) - $(CC) -o $@ $(IDNA_OBJS) $(MUTTLIBS) $(LDFLAGS) $(LIBS) - -$(TEST_LIST): $(PWD)/test/list $(LIST_OBJS) $(MUTTLIBS) - $(CC) -o $@ $(LIST_OBJS) $(MUTTLIBS) $(LDFLAGS) $(LIBS) - -$(TEST_LOGGING): $(PWD)/test/logging $(LOGGING_OBJS) $(MUTTLIBS) - $(CC) -o $@ $(LOGGING_OBJS) $(MUTTLIBS) $(LDFLAGS) $(LIBS) - -$(TEST_MAPPING): $(PWD)/test/mapping $(MAPPING_OBJS) $(MUTTLIBS) - $(CC) -o $@ $(MAPPING_OBJS) $(MUTTLIBS) $(LDFLAGS) $(LIBS) - -$(TEST_MBYTE): $(PWD)/test/mbyte $(MBYTE_OBJS) $(MUTTLIBS) - $(CC) -o $@ $(MBYTE_OBJS) $(MUTTLIBS) $(LDFLAGS) $(LIBS) - -$(TEST_MD5): $(PWD)/test/md5 $(MD5_OBJS) $(MUTTLIBS) - $(CC) -o $@ $(MD5_OBJS) $(MUTTLIBS) $(LDFLAGS) $(LIBS) - -$(TEST_MEMORY): $(PWD)/test/memory $(MEMORY_OBJS) $(MUTTLIBS) - $(CC) -o $@ $(MEMORY_OBJS) $(MUTTLIBS) $(LDFLAGS) $(LIBS) - -$(TEST_PARAMETER): $(PWD)/test/parameter $(PARAMETER_OBJS) $(MUTTLIBS) - $(CC) -o $@ $(PARAMETER_OBJS) $(MUTTLIBS) $(LDFLAGS) $(LIBS) - -$(TEST_PARSE): $(PWD)/test/parse $(PARSE_OBJS) $(MUTTLIBS) - $(CC) -o $@ $(PARSE_OBJS) $(MUTTLIBS) $(LDFLAGS) $(LIBS) - -$(TEST_PATH): $(PWD)/test/path $(PATH_OBJS) $(MUTTLIBS) - $(CC) -o $@ $(PATH_OBJS) $(MUTTLIBS) $(LDFLAGS) $(LIBS) - -$(TEST_PATTERN): $(PWD)/test/pattern $(PATTERN_OBJS) $(MUTTLIBS) - $(CC) -o $@ $(PATTERN_OBJS) $(MUTTLIBS) $(LDFLAGS) $(LIBS) - -$(TEST_REGEX): $(PWD)/test/regex $(REGEX_OBJS) $(MUTTLIBS) - $(CC) -o $@ $(REGEX_OBJS) $(MUTTLIBS) $(LDFLAGS) $(LIBS) - -$(TEST_RFC2047): $(PWD)/test/rfc2047 $(RFC2047_OBJS) $(MUTTLIBS) - $(CC) -o $@ $(RFC2047_OBJS) $(MUTTLIBS) $(LDFLAGS) $(LIBS) - -$(TEST_RFC2231): $(PWD)/test/rfc2231 $(RFC2231_OBJS) $(MUTTLIBS) - $(CC) -o $@ $(RFC2231_OBJS) $(MUTTLIBS) $(LDFLAGS) $(LIBS) - -$(TEST_SHA1): $(PWD)/test/sha1 $(SHA1_OBJS) $(MUTTLIBS) - $(CC) -o $@ $(SHA1_OBJS) $(MUTTLIBS) $(LDFLAGS) $(LIBS) - -$(TEST_SIGNAL): $(PWD)/test/signal $(SIGNAL_OBJS) $(MUTTLIBS) - $(CC) -o $@ $(SIGNAL_OBJS) $(MUTTLIBS) $(LDFLAGS) $(LIBS) - -$(TEST_STRING): $(PWD)/test/string $(STRING_OBJS) $(MUTTLIBS) - $(CC) -o $@ $(STRING_OBJS) $(MUTTLIBS) $(LDFLAGS) $(LIBS) - -$(TEST_TAGS): $(PWD)/test/tags $(TAGS_OBJS) $(MUTTLIBS) - $(CC) -o $@ $(TAGS_OBJS) $(MUTTLIBS) $(LDFLAGS) $(LIBS) - -$(TEST_THREAD): $(PWD)/test/thread $(THREAD_OBJS) $(MUTTLIBS) - $(CC) -o $@ $(THREAD_OBJS) $(MUTTLIBS) $(LDFLAGS) $(LIBS) - -$(TEST_URL): $(PWD)/test/url $(URL_OBJS) $(MUTTLIBS) - $(CC) -o $@ $(URL_OBJS) $(MUTTLIBS) $(LDFLAGS) $(LIBS) - -$(PWD)/test/address: - $(MKDIR_P) $(PWD)/test/address - -$(PWD)/test/attach: - $(MKDIR_P) $(PWD)/test/attach - -$(PWD)/test/base64: - $(MKDIR_P) $(PWD)/test/base64 - -$(PWD)/test/body: - $(MKDIR_P) $(PWD)/test/body - -$(PWD)/test/buffer: - $(MKDIR_P) $(PWD)/test/buffer - -$(PWD)/test/charset: - $(MKDIR_P) $(PWD)/test/charset - -$(PWD)/test/config: - $(MKDIR_P) $(PWD)/test/config - -$(PWD)/test/date: - $(MKDIR_P) $(PWD)/test/date - -$(PWD)/test/email: - $(MKDIR_P) $(PWD)/test/email - -$(PWD)/test/envelope: - $(MKDIR_P) $(PWD)/test/envelope - -$(PWD)/test/envlist: - $(MKDIR_P) $(PWD)/test/envlist - -$(PWD)/test/file: - $(MKDIR_P) $(PWD)/test/file - -$(PWD)/test/from: - $(MKDIR_P) $(PWD)/test/from - -$(PWD)/test/group: - $(MKDIR_P) $(PWD)/test/group - -$(PWD)/test/hash: - $(MKDIR_P) $(PWD)/test/hash - -$(PWD)/test/history: - $(MKDIR_P) $(PWD)/test/history - -$(PWD)/test/idna: - $(MKDIR_P) $(PWD)/test/idna - -$(PWD)/test/list: - $(MKDIR_P) $(PWD)/test/list - -$(PWD)/test/logging: - $(MKDIR_P) $(PWD)/test/logging - -$(PWD)/test/mapping: - $(MKDIR_P) $(PWD)/test/mapping - -$(PWD)/test/mbyte: - $(MKDIR_P) $(PWD)/test/mbyte - -$(PWD)/test/md5: - $(MKDIR_P) $(PWD)/test/md5 - -$(PWD)/test/memory: - $(MKDIR_P) $(PWD)/test/memory - -$(PWD)/test/parameter: - $(MKDIR_P) $(PWD)/test/parameter - -$(PWD)/test/parse: - $(MKDIR_P) $(PWD)/test/parse - -$(PWD)/test/path: - $(MKDIR_P) $(PWD)/test/path - -$(PWD)/test/pattern: - $(MKDIR_P) $(PWD)/test/pattern - -$(PWD)/test/regex: - $(MKDIR_P) $(PWD)/test/regex - -$(PWD)/test/rfc2047: - $(MKDIR_P) $(PWD)/test/rfc2047 - -$(PWD)/test/rfc2231: - $(MKDIR_P) $(PWD)/test/rfc2231 - -$(PWD)/test/sha1: - $(MKDIR_P) $(PWD)/test/sha1 - -$(PWD)/test/signal: - $(MKDIR_P) $(PWD)/test/signal - -$(PWD)/test/string: - $(MKDIR_P) $(PWD)/test/string - -$(PWD)/test/tags: - $(MKDIR_P) $(PWD)/test/tags - -$(PWD)/test/thread: - $(MKDIR_P) $(PWD)/test/thread - -$(PWD)/test/url: - $(MKDIR_P) $(PWD)/test/url - -all-test: $(TEST_BINARY) $(TEST_ADDRESS) $(TEST_ATTACH) $(TEST_BASE64) $(TEST_BODY) $(TEST_BUFFER) $(TEST_CHARSET) $(TEST_CONFIG) $(TEST_DATE) $(TEST_EMAIL) $(TEST_ENVELOPE) $(TEST_ENVLIST) $(TEST_FILE) $(TEST_FROM) $(TEST_GROUP) $(TEST_HASH) $(TEST_HISTORY) $(TEST_IDNA) $(TEST_LIST) $(TEST_LOGGING) $(TEST_MAPPING) $(TEST_MBYTE) $(TEST_MD5) $(TEST_MEMORY) $(TEST_PARAMETER) $(TEST_PARSE) $(TEST_PATH) $(TEST_PATTERN) $(TEST_REGEX) $(TEST_RFC2047) $(TEST_RFC2231) $(TEST_SHA1) $(TEST_SIGNAL) $(TEST_STRING) $(TEST_TAGS) $(TEST_THREAD) $(TEST_URL) +all-test: $(TEST_BINARY) clean-test: - $(RM) $(TEST_BINARY) $(TEST_OBJS) $(TEST_OBJS:.o=.Po) \ - $(TEST_ADDRESS) $(ADDRESS_OBJS) $(ADDRESS_OBJS:.o=.Po) \ - $(TEST_ATTACH) $(ATTACH_OBJS) $(ATTACH_OBJS:.o=.Po) \ - $(TEST_BASE64) $(BASE64_OBJS) $(BASE64_OBJS:.o=.Po) \ - $(TEST_BODY) $(BODY_OBJS) $(BODY_OBJS:.o=.Po) \ - $(TEST_BUFFER) $(BUFFER_OBJS) $(BUFFER_OBJS:.o=.Po) \ - $(TEST_CHARSET) $(CHARSET_OBJS) $(CHARSET_OBJS:.o=.Po) \ - $(TEST_CONFIG) $(CONFIG_OBJS) $(CONFIG_OBJS:.o=.Po) \ - $(TEST_DATE) $(DATE_OBJS) $(DATE_OBJS:.o=.Po) \ - $(TEST_EMAIL) $(EMAIL_OBJS) $(EMAIL_OBJS:.o=.Po) \ - $(TEST_ENVELOPE) $(ENVELOPE_OBJS) $(ENVELOPE_OBJS:.o=.Po) \ - $(TEST_ENVLIST) $(ENVLIST_OBJS) $(ENVLIST_OBJS:.o=.Po) \ - $(TEST_FILE) $(FILE_OBJS) $(FILE_OBJS:.o=.Po) \ - $(TEST_FROM) $(FROM_OBJS) $(FROM_OBJS:.o=.Po) \ - $(TEST_GROUP) $(GROUP_OBJS) $(GROUP_OBJS:.o=.Po) \ - $(TEST_HASH) $(HASH_OBJS) $(HASH_OBJS:.o=.Po) \ - $(TEST_HISTORY) $(HISTORY_OBJS) $(HISTORY_OBJS:.o=.Po) \ - $(TEST_IDNA) $(IDNA_OBJS) $(IDNA_OBJS:.o=.Po) \ - $(TEST_LIST) $(LIST_OBJS) $(LIST_OBJS:.o=.Po) \ - $(TEST_LOGGING) $(LOGGING_OBJS) $(LOGGING_OBJS:.o=.Po) \ - $(TEST_MAPPING) $(MAPPING_OBJS) $(MAPPING_OBJS:.o=.Po) \ - $(TEST_MBYTE) $(MBYTE_OBJS) $(MBYTE_OBJS:.o=.Po) \ - $(TEST_MD5) $(MD5_OBJS) $(MD5_OBJS:.o=.Po) \ - $(TEST_MEMORY) $(MEMORY_OBJS) $(MEMORY_OBJS:.o=.Po) \ - $(TEST_PARAMETER) $(PARAMETER_OBJS) $(PARAMETER_OBJS:.o=.Po) \ - $(TEST_PARSE) $(PARSE_OBJS) $(PARSE_OBJS:.o=.Po) \ - $(TEST_PATH) $(PATH_OBJS) $(PATH_OBJS:.o=.Po) \ - $(TEST_PATTERN) $(PATTERN_OBJS) $(PATTERN_OBJS:.o=.Po) \ - $(TEST_REGEX) $(REGEX_OBJS) $(REGEX_OBJS:.o=.Po) \ - $(TEST_RFC2047) $(RFC2047_OBJS) $(RFC2047_OBJS:.o=.Po) \ - $(TEST_RFC2231) $(RFC2231_OBJS) $(RFC2231_OBJS:.o=.Po) \ - $(TEST_SHA1) $(SHA1_OBJS) $(SHA1_OBJS:.o=.Po) \ - $(TEST_SIGNAL) $(SIGNAL_OBJS) $(SIGNAL_OBJS:.o=.Po) \ - $(TEST_STRING) $(STRING_OBJS) $(STRING_OBJS:.o=.Po) \ - $(TEST_TAGS) $(TAGS_OBJS) $(TAGS_OBJS:.o=.Po) \ - $(TEST_THREAD) $(THREAD_OBJS) $(THREAD_OBJS:.o=.Po) \ - $(TEST_URL) $(URL_OBJS) $(URL_OBJS:.o=.Po) + $(RM) $(TEST_BINARY) $(TEST_OBJS) $(TEST_OBJS:.o=.Po) install-test: uninstall-test: @@ -840,112 +492,4 @@ uninstall-test: TEST_DEPFILES = $(TEST_OBJS:.o=.Po) -include $(TEST_DEPFILES) -ADDRESS_DEPFILES = $(ADDRESS_OBJS:.o=.Po) --include $(ADDRESS_DEPFILES) - -ATTACH_DEPFILES = $(ATTACH_OBJS:.o=.Po) --include $(ATTACH_DEPFILES) - -BASE64_DEPFILES = $(BASE64_OBJS:.o=.Po) --include $(BASE64_DEPFILES) - -BODY_DEPFILES = $(BODY_OBJS:.o=.Po) --include $(BODY_DEPFILES) - -BUFFER_DEPFILES = $(BUFFER_OBJS:.o=.Po) --include $(BUFFER_DEPFILES) - -CHARSET_DEPFILES = $(CHARSET_OBJS:.o=.Po) --include $(CHARSET_DEPFILES) - -CONFIG_DEPFILES = $(CONFIG_OBJS:.o=.Po) --include $(CONFIG_DEPFILES) - -DATE_DEPFILES = $(DATE_OBJS:.o=.Po) --include $(DATE_DEPFILES) - -EMAIL_DEPFILES = $(EMAIL_OBJS:.o=.Po) --include $(EMAIL_DEPFILES) - -ENVELOPE_DEPFILES = $(ENVELOPE_OBJS:.o=.Po) --include $(ENVELOPE_DEPFILES) - -ENVLIST_DEPFILES = $(ENVLIST_OBJS:.o=.Po) --include $(ENVLIST_DEPFILES) - -FILE_DEPFILES = $(FILE_OBJS:.o=.Po) --include $(FILE_DEPFILES) - -FROM_DEPFILES = $(FROM_OBJS:.o=.Po) --include $(FROM_DEPFILES) - -GROUP_DEPFILES = $(GROUP_OBJS:.o=.Po) --include $(GROUP_DEPFILES) - -HASH_DEPFILES = $(HASH_OBJS:.o=.Po) --include $(HASH_DEPFILES) - -HISTORY_DEPFILES = $(HISTORY_OBJS:.o=.Po) --include $(HISTORY_DEPFILES) - -IDNA_DEPFILES = $(IDNA_OBJS:.o=.Po) --include $(IDNA_DEPFILES) - -LIST_DEPFILES = $(LIST_OBJS:.o=.Po) --include $(LIST_DEPFILES) - -LOGGING_DEPFILES = $(LOGGING_OBJS:.o=.Po) --include $(LOGGING_DEPFILES) - -MAPPING_DEPFILES = $(MAPPING_OBJS:.o=.Po) --include $(MAPPING_DEPFILES) - -MBYTE_DEPFILES = $(MBYTE_OBJS:.o=.Po) --include $(MBYTE_DEPFILES) - -MD5_DEPFILES = $(MD5_OBJS:.o=.Po) --include $(MD5_DEPFILES) - -MEMORY_DEPFILES = $(MEMORY_OBJS:.o=.Po) --include $(MEMORY_DEPFILES) - -PARAMETER_DEPFILES = $(PARAMETER_OBJS:.o=.Po) --include $(PARAMETER_DEPFILES) - -PARSE_DEPFILES = $(PARSE_OBJS:.o=.Po) --include $(PARSE_DEPFILES) - -PATH_DEPFILES = $(PATH_OBJS:.o=.Po) --include $(PATH_DEPFILES) - -PATTERN_DEPFILES = $(PATTERN_OBJS:.o=.Po) --include $(PATTERN_DEPFILES) - -REGEX_DEPFILES = $(REGEX_OBJS:.o=.Po) --include $(REGEX_DEPFILES) - -RFC2047_DEPFILES = $(RFC2047_OBJS:.o=.Po) --include $(RFC2047_DEPFILES) - -RFC2231_DEPFILES = $(RFC2231_OBJS:.o=.Po) --include $(RFC2231_DEPFILES) - -SHA1_DEPFILES = $(SHA1_OBJS:.o=.Po) --include $(SHA1_DEPFILES) - -SIGNAL_DEPFILES = $(SIGNAL_OBJS:.o=.Po) --include $(SIGNAL_DEPFILES) - -STRING_DEPFILES = $(STRING_OBJS:.o=.Po) --include $(STRING_DEPFILES) - -TAGS_DEPFILES = $(TAGS_OBJS:.o=.Po) --include $(TAGS_DEPFILES) - -THREAD_DEPFILES = $(THREAD_OBJS:.o=.Po) --include $(THREAD_DEPFILES) - -URL_DEPFILES = $(URL_OBJS:.o=.Po) --include $(URL_DEPFILES) - # vim: set ts=8 noexpandtab: diff --git a/test/address/main.c b/test/address/main.c deleted file mode 100644 index 3e2f50537..000000000 --- a/test/address/main.c +++ /dev/null @@ -1,68 +0,0 @@ -/** - * @file - * Test code for Path Operations - * - * @authors - * Copyright (C) 2019 Richard Russon - * - * @copyright - * This program is free software: you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation, either version 2 of the License, or (at your option) any later - * version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - * - * You should have received a copy of the GNU General Public License along with - * this program. If not, see . - */ - -#include "acutest.h" - -/****************************************************************************** - * Add your test cases to this list. - *****************************************************************************/ -#define NEOMUTT_TEST_LIST \ - NEOMUTT_TEST_ITEM(test_mutt_addr_append) \ - NEOMUTT_TEST_ITEM(test_mutt_addr_cat) \ - NEOMUTT_TEST_ITEM(test_mutt_addr_cmp) \ - NEOMUTT_TEST_ITEM(test_mutt_addr_cmp_strict) \ - NEOMUTT_TEST_ITEM(test_mutt_addr_copy) \ - NEOMUTT_TEST_ITEM(test_mutt_addr_copy_list) \ - NEOMUTT_TEST_ITEM(test_mutt_addr_for_display) \ - NEOMUTT_TEST_ITEM(test_mutt_addr_free) \ - NEOMUTT_TEST_ITEM(test_mutt_addr_has_recips) \ - NEOMUTT_TEST_ITEM(test_mutt_addr_is_intl) \ - NEOMUTT_TEST_ITEM(test_mutt_addr_is_local) \ - NEOMUTT_TEST_ITEM(test_mutt_addr_mbox_to_udomain) \ - NEOMUTT_TEST_ITEM(test_mutt_addr_new) \ - NEOMUTT_TEST_ITEM(test_mutt_addr_parse_list) \ - NEOMUTT_TEST_ITEM(test_mutt_addr_parse_list2) \ - NEOMUTT_TEST_ITEM(test_mutt_addr_qualify) \ - NEOMUTT_TEST_ITEM(test_mutt_addr_remove_from_list) \ - NEOMUTT_TEST_ITEM(test_mutt_addr_remove_xrefs) \ - NEOMUTT_TEST_ITEM(test_mutt_addr_search) \ - NEOMUTT_TEST_ITEM(test_mutt_addr_set_intl) \ - NEOMUTT_TEST_ITEM(test_mutt_addr_set_local) \ - NEOMUTT_TEST_ITEM(test_mutt_addr_valid_msgid) \ - NEOMUTT_TEST_ITEM(test_mutt_addr_write) \ - NEOMUTT_TEST_ITEM(test_mutt_addr_write_single) \ - NEOMUTT_TEST_ITEM(test_mutt_addrlist_to_intl) \ - NEOMUTT_TEST_ITEM(test_mutt_addrlist_to_local) - -/****************************************************************************** - * You probably don't need to touch what follows. - *****************************************************************************/ -#define NEOMUTT_TEST_ITEM(x) void x(void); -NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - -TEST_LIST = { -#define NEOMUTT_TEST_ITEM(x) { #x, x }, - NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - { 0 } -}; diff --git a/test/attach/main.c b/test/attach/main.c deleted file mode 100644 index 7c951b21d..000000000 --- a/test/attach/main.c +++ /dev/null @@ -1,48 +0,0 @@ -/** - * @file - * Test code for attach Operations - * - * @authors - * Copyright (C) 2019 Richard Russon - * - * @copyright - * This program is free software: you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation, either version 2 of the License, or (at your option) any later - * version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - * - * You should have received a copy of the GNU General Public License along with - * this program. If not, see . - */ - -#include "acutest.h" - -/****************************************************************************** - * Add your test cases to this list. - *****************************************************************************/ -#define NEOMUTT_TEST_LIST \ - NEOMUTT_TEST_ITEM(test_mutt_actx_add_attach) \ - NEOMUTT_TEST_ITEM(test_mutt_actx_add_body) \ - NEOMUTT_TEST_ITEM(test_mutt_actx_add_fp) \ - NEOMUTT_TEST_ITEM(test_mutt_actx_free) \ - NEOMUTT_TEST_ITEM(test_mutt_actx_free_entries) - -/****************************************************************************** - * You probably don't need to touch what follows. - *****************************************************************************/ -#define NEOMUTT_TEST_ITEM(x) void x(void); -NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - -TEST_LIST = { -#define NEOMUTT_TEST_ITEM(x) { #x, x }, - NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - { 0 } -}; - diff --git a/test/base64/main.c b/test/base64/main.c deleted file mode 100644 index b96b17569..000000000 --- a/test/base64/main.c +++ /dev/null @@ -1,46 +0,0 @@ -/** - * @file - * Test code for base64 Operations - * - * @authors - * Copyright (C) 2019 Richard Russon - * - * @copyright - * This program is free software: you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation, either version 2 of the License, or (at your option) any later - * version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - * - * You should have received a copy of the GNU General Public License along with - * this program. If not, see . - */ - -#include "acutest.h" - -/****************************************************************************** - * Add your test cases to this list. - *****************************************************************************/ -#define NEOMUTT_TEST_LIST \ - NEOMUTT_TEST_ITEM(test_mutt_b64_buffer_decode) \ - NEOMUTT_TEST_ITEM(test_mutt_b64_buffer_encode) \ - NEOMUTT_TEST_ITEM(test_mutt_b64_decode) \ - NEOMUTT_TEST_ITEM(test_mutt_b64_encode) - -/****************************************************************************** - * You probably don't need to touch what follows. - *****************************************************************************/ -#define NEOMUTT_TEST_ITEM(x) void x(void); -NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - -TEST_LIST = { -#define NEOMUTT_TEST_ITEM(x) { #x, x }, - NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - { 0 } -}; diff --git a/test/body/main.c b/test/body/main.c deleted file mode 100644 index f503717e3..000000000 --- a/test/body/main.c +++ /dev/null @@ -1,46 +0,0 @@ -/** - * @file - * Test code for body Operations - * - * @authors - * Copyright (C) 2019 Richard Russon - * - * @copyright - * This program is free software: you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation, either version 2 of the License, or (at your option) any later - * version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - * - * You should have received a copy of the GNU General Public License along with - * this program. If not, see . - */ - -#include "acutest.h" - -/****************************************************************************** - * Add your test cases to this list. - *****************************************************************************/ -#define NEOMUTT_TEST_LIST \ - NEOMUTT_TEST_ITEM(test_mutt_body_cmp_strict) \ - NEOMUTT_TEST_ITEM(test_mutt_body_free) \ - NEOMUTT_TEST_ITEM(test_mutt_body_new) - -/****************************************************************************** - * You probably don't need to touch what follows. - *****************************************************************************/ -#define NEOMUTT_TEST_ITEM(x) void x(void); -NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - -TEST_LIST = { -#define NEOMUTT_TEST_ITEM(x) { #x, x }, - NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - { 0 } -}; - diff --git a/test/buffer/main.c b/test/buffer/main.c deleted file mode 100644 index 0a968e15b..000000000 --- a/test/buffer/main.c +++ /dev/null @@ -1,63 +0,0 @@ -/** - * @file - * Test code for buffer Operations - * - * @authors - * Copyright (C) 2019 Richard Russon - * - * @copyright - * This program is free software: you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation, either version 2 of the License, or (at your option) any later - * version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - * - * You should have received a copy of the GNU General Public License along with - * this program. If not, see . - */ - -#include "acutest.h" - -/****************************************************************************** - * Add your test cases to this list. - *****************************************************************************/ -#define NEOMUTT_TEST_LIST \ - NEOMUTT_TEST_ITEM(test_mutt_buffer_addch) \ - NEOMUTT_TEST_ITEM(test_mutt_buffer_add_printf) \ - NEOMUTT_TEST_ITEM(test_mutt_buffer_addstr) \ - NEOMUTT_TEST_ITEM(test_mutt_buffer_addstr_n) \ - NEOMUTT_TEST_ITEM(test_mutt_buffer_alloc) \ - NEOMUTT_TEST_ITEM(test_mutt_buffer_concat_path) \ - NEOMUTT_TEST_ITEM(test_mutt_buffer_fix_dptr) \ - NEOMUTT_TEST_ITEM(test_mutt_buffer_free) \ - NEOMUTT_TEST_ITEM(test_mutt_buffer_from) \ - NEOMUTT_TEST_ITEM(test_mutt_buffer_increase_size) \ - NEOMUTT_TEST_ITEM(test_mutt_buffer_init) \ - NEOMUTT_TEST_ITEM(test_mutt_buffer_is_empty) \ - NEOMUTT_TEST_ITEM(test_mutt_buffer_len) \ - NEOMUTT_TEST_ITEM(test_mutt_buffer_new) \ - NEOMUTT_TEST_ITEM(test_mutt_buffer_pool_free) \ - NEOMUTT_TEST_ITEM(test_mutt_buffer_pool_get) \ - NEOMUTT_TEST_ITEM(test_mutt_buffer_pool_release) \ - NEOMUTT_TEST_ITEM(test_mutt_buffer_printf) \ - NEOMUTT_TEST_ITEM(test_mutt_buffer_reset) \ - NEOMUTT_TEST_ITEM(test_mutt_buffer_strcpy) \ - NEOMUTT_TEST_ITEM(test_mutt_buffer_strcpy_n) - -/****************************************************************************** - * You probably don't need to touch what follows. - *****************************************************************************/ -#define NEOMUTT_TEST_ITEM(x) void x(void); -NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - -TEST_LIST = { -#define NEOMUTT_TEST_ITEM(x) { #x, x }, - NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - { 0 } -}; diff --git a/test/charset/main.c b/test/charset/main.c deleted file mode 100644 index c42194cdc..000000000 --- a/test/charset/main.c +++ /dev/null @@ -1,62 +0,0 @@ -/** - * @file - * Test code for charset Operations - * - * @authors - * Copyright (C) 2019 Richard Russon - * - * @copyright - * This program is free software: you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation, either version 2 of the License, or (at your option) any later - * version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - * - * You should have received a copy of the GNU General Public License along with - * this program. If not, see . - */ - -#include "acutest.h" - -/****************************************************************************** - * Add your test cases to this list. - *****************************************************************************/ -#define NEOMUTT_TEST_LIST \ - NEOMUTT_TEST_ITEM(test_mutt_ch_canonical_charset) \ - NEOMUTT_TEST_ITEM(test_mutt_ch_charset_lookup) \ - NEOMUTT_TEST_ITEM(test_mutt_ch_check) \ - NEOMUTT_TEST_ITEM(test_mutt_ch_check_charset) \ - NEOMUTT_TEST_ITEM(test_mutt_ch_choose) \ - NEOMUTT_TEST_ITEM(test_mutt_ch_chscmp) \ - NEOMUTT_TEST_ITEM(test_mutt_ch_convert_nonmime_string) \ - NEOMUTT_TEST_ITEM(test_mutt_ch_convert_string) \ - NEOMUTT_TEST_ITEM(test_mutt_ch_fgetconv) \ - NEOMUTT_TEST_ITEM(test_mutt_ch_fgetconv_close) \ - NEOMUTT_TEST_ITEM(test_mutt_ch_fgetconv_open) \ - NEOMUTT_TEST_ITEM(test_mutt_ch_fgetconvs) \ - NEOMUTT_TEST_ITEM(test_mutt_ch_get_default_charset) \ - NEOMUTT_TEST_ITEM(test_mutt_ch_get_langinfo_charset) \ - NEOMUTT_TEST_ITEM(test_mutt_ch_iconv) \ - NEOMUTT_TEST_ITEM(test_mutt_ch_iconv_lookup) \ - NEOMUTT_TEST_ITEM(test_mutt_ch_iconv_open) \ - NEOMUTT_TEST_ITEM(test_mutt_ch_lookup_add) \ - NEOMUTT_TEST_ITEM(test_mutt_ch_lookup_remove) \ - NEOMUTT_TEST_ITEM(test_mutt_ch_set_charset) - -/****************************************************************************** - * You probably don't need to touch what follows. - *****************************************************************************/ -#define NEOMUTT_TEST_ITEM(x) void x(void); -NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - -TEST_LIST = { -#define NEOMUTT_TEST_ITEM(x) { #x, x }, - NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - { 0 } -}; diff --git a/test/config/main.c b/test/config/main.c deleted file mode 100644 index 9b3b80c8d..000000000 --- a/test/config/main.c +++ /dev/null @@ -1,82 +0,0 @@ -/** - * @file - * Tests for the config code - * - * @authors - * Copyright (C) 2018 Richard Russon - * - * @copyright - * This program is free software: you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation, either version 2 of the License, or (at your option) any later - * version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - * - * You should have received a copy of the GNU General Public License along with - * this program. If not, see . - */ - -#include "acutest.h" -#include "config.h" -#include -#include -#include -#include -#include -#include "mutt/mutt.h" -#include "test/config/account2.h" -#include "test/config/address.h" -#include "test/config/bool.h" -#include "test/config/command.h" -#include "test/config/initial.h" -#include "test/config/long.h" -#include "test/config/magic.h" -#include "test/config/mbtable.h" -#include "test/config/number.h" -#include "test/config/path.h" -#include "test/config/quad.h" -#include "test/config/regex3.h" -#include "test/config/set.h" -#include "test/config/sort.h" -#include "test/config/string4.h" -#include "test/config/synonym.h" - -/****************************************************************************** - * Add your test cases to this list. - *****************************************************************************/ -#define NEOMUTT_TEST_LIST \ - NEOMUTT_TEST_ITEM(config_set) \ - NEOMUTT_TEST_ITEM(config_account) \ - NEOMUTT_TEST_ITEM(config_initial) \ - NEOMUTT_TEST_ITEM(config_synonym) \ - NEOMUTT_TEST_ITEM(config_address) \ - NEOMUTT_TEST_ITEM(config_bool) \ - NEOMUTT_TEST_ITEM(config_command) \ - NEOMUTT_TEST_ITEM(config_long) \ - NEOMUTT_TEST_ITEM(config_magic) \ - NEOMUTT_TEST_ITEM(config_mbtable) \ - NEOMUTT_TEST_ITEM(config_number) \ - NEOMUTT_TEST_ITEM(config_path) \ - NEOMUTT_TEST_ITEM(config_quad) \ - NEOMUTT_TEST_ITEM(config_regex) \ - NEOMUTT_TEST_ITEM(config_sort) \ - NEOMUTT_TEST_ITEM(config_string) \ - NEOMUTT_TEST_ITEM(config_dump) - -/****************************************************************************** - * You probably don't need to touch what follows. - *****************************************************************************/ -#define NEOMUTT_TEST_ITEM(x) void x(void); -NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - -TEST_LIST = { -#define NEOMUTT_TEST_ITEM(x) { #x, x }, - NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - { 0 } -}; diff --git a/test/date/main.c b/test/date/main.c deleted file mode 100644 index 9baf72904..000000000 --- a/test/date/main.c +++ /dev/null @@ -1,56 +0,0 @@ -/** - * @file - * Test code for date Operations - * - * @authors - * Copyright (C) 2019 Richard Russon - * - * @copyright - * This program is free software: you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation, either version 2 of the License, or (at your option) any later - * version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - * - * You should have received a copy of the GNU General Public License along with - * this program. If not, see . - */ - -#include "acutest.h" - -/****************************************************************************** - * Add your test cases to this list. - *****************************************************************************/ -#define NEOMUTT_TEST_LIST \ - NEOMUTT_TEST_ITEM(test_mutt_date_add_timeout) \ - NEOMUTT_TEST_ITEM(test_mutt_date_check_month) \ - NEOMUTT_TEST_ITEM(test_mutt_date_gmtime) \ - NEOMUTT_TEST_ITEM(test_mutt_date_is_day_name) \ - NEOMUTT_TEST_ITEM(test_mutt_date_localtime) \ - NEOMUTT_TEST_ITEM(test_mutt_date_localtime_format) \ - NEOMUTT_TEST_ITEM(test_mutt_date_local_tz) \ - NEOMUTT_TEST_ITEM(test_mutt_date_make_date) \ - NEOMUTT_TEST_ITEM(test_mutt_date_make_imap) \ - NEOMUTT_TEST_ITEM(test_mutt_date_make_time) \ - NEOMUTT_TEST_ITEM(test_mutt_date_make_tls) \ - NEOMUTT_TEST_ITEM(test_mutt_date_normalize_time) \ - NEOMUTT_TEST_ITEM(test_mutt_date_parse_date) \ - NEOMUTT_TEST_ITEM(test_mutt_date_parse_imap) - -/****************************************************************************** - * You probably don't need to touch what follows. - *****************************************************************************/ -#define NEOMUTT_TEST_ITEM(x) void x(void); -NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - -TEST_LIST = { -#define NEOMUTT_TEST_ITEM(x) { #x, x }, - NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - { 0 } -}; diff --git a/test/email/main.c b/test/email/main.c deleted file mode 100644 index 358ad1861..000000000 --- a/test/email/main.c +++ /dev/null @@ -1,47 +0,0 @@ -/** - * @file - * Test code for email Operations - * - * @authors - * Copyright (C) 2019 Richard Russon - * - * @copyright - * This program is free software: you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation, either version 2 of the License, or (at your option) any later - * version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - * - * You should have received a copy of the GNU General Public License along with - * this program. If not, see . - */ - -#include "acutest.h" - -/****************************************************************************** - * Add your test cases to this list. - *****************************************************************************/ -#define NEOMUTT_TEST_LIST \ - NEOMUTT_TEST_ITEM(test_mutt_email_cmp_strict) \ - NEOMUTT_TEST_ITEM(test_mutt_email_free) \ - NEOMUTT_TEST_ITEM(test_mutt_email_new) \ - NEOMUTT_TEST_ITEM(test_mutt_email_size) - -/****************************************************************************** - * You probably don't need to touch what follows. - *****************************************************************************/ -#define NEOMUTT_TEST_ITEM(x) void x(void); -NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - -TEST_LIST = { -#define NEOMUTT_TEST_ITEM(x) { #x, x }, - NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - { 0 } -}; - diff --git a/test/envelope/main.c b/test/envelope/main.c deleted file mode 100644 index e77ba0072..000000000 --- a/test/envelope/main.c +++ /dev/null @@ -1,49 +0,0 @@ -/** - * @file - * Test code for envelope Operations - * - * @authors - * Copyright (C) 2019 Richard Russon - * - * @copyright - * This program is free software: you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation, either version 2 of the License, or (at your option) any later - * version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - * - * You should have received a copy of the GNU General Public License along with - * this program. If not, see . - */ - -#include "acutest.h" - -/****************************************************************************** - * Add your test cases to this list. - *****************************************************************************/ -#define NEOMUTT_TEST_LIST \ - NEOMUTT_TEST_ITEM(test_mutt_env_cmp_strict) \ - NEOMUTT_TEST_ITEM(test_mutt_env_free) \ - NEOMUTT_TEST_ITEM(test_mutt_env_merge) \ - NEOMUTT_TEST_ITEM(test_mutt_env_new) \ - NEOMUTT_TEST_ITEM(test_mutt_env_to_intl) \ - NEOMUTT_TEST_ITEM(test_mutt_env_to_local) - -/****************************************************************************** - * You probably don't need to touch what follows. - *****************************************************************************/ -#define NEOMUTT_TEST_ITEM(x) void x(void); -NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - -TEST_LIST = { -#define NEOMUTT_TEST_ITEM(x) { #x, x }, - NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - { 0 } -}; - diff --git a/test/envlist/main.c b/test/envlist/main.c deleted file mode 100644 index 8bbc67d1d..000000000 --- a/test/envlist/main.c +++ /dev/null @@ -1,47 +0,0 @@ -/** - * @file - * Test code for envlist Operations - * - * @authors - * Copyright (C) 2019 Richard Russon - * - * @copyright - * This program is free software: you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation, either version 2 of the License, or (at your option) any later - * version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - * - * You should have received a copy of the GNU General Public License along with - * this program. If not, see . - */ - -#include "acutest.h" - -/****************************************************************************** - * Add your test cases to this list. - *****************************************************************************/ -#define NEOMUTT_TEST_LIST \ - NEOMUTT_TEST_ITEM(test_mutt_envlist_free) \ - NEOMUTT_TEST_ITEM(test_mutt_envlist_getlist) \ - NEOMUTT_TEST_ITEM(test_mutt_envlist_init) \ - NEOMUTT_TEST_ITEM(test_mutt_envlist_set) \ - NEOMUTT_TEST_ITEM(test_mutt_envlist_unset) - -/****************************************************************************** - * You probably don't need to touch what follows. - *****************************************************************************/ -#define NEOMUTT_TEST_ITEM(x) void x(void); -NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - -TEST_LIST = { -#define NEOMUTT_TEST_ITEM(x) { #x, x }, - NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - { 0 } -}; diff --git a/test/file/main.c b/test/file/main.c deleted file mode 100644 index 6f7c2e620..000000000 --- a/test/file/main.c +++ /dev/null @@ -1,82 +0,0 @@ -/** - * @file - * Test code for file Operations - * - * @authors - * Copyright (C) 2019 Richard Russon - * - * @copyright - * This program is free software: you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation, either version 2 of the License, or (at your option) any later - * version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - * - * You should have received a copy of the GNU General Public License along with - * this program. If not, see . - */ - -#include "acutest.h" - -/****************************************************************************** - * Add your test cases to this list. - *****************************************************************************/ -#define NEOMUTT_TEST_LIST \ - NEOMUTT_TEST_ITEM(test_mutt_file_check_empty) \ - NEOMUTT_TEST_ITEM(test_mutt_file_chmod_add) \ - NEOMUTT_TEST_ITEM(test_mutt_file_chmod_add_stat) \ - NEOMUTT_TEST_ITEM(test_mutt_file_chmod) \ - NEOMUTT_TEST_ITEM(test_mutt_file_chmod_rm) \ - NEOMUTT_TEST_ITEM(test_mutt_file_chmod_rm_stat) \ - NEOMUTT_TEST_ITEM(test_mutt_file_copy_bytes) \ - NEOMUTT_TEST_ITEM(test_mutt_file_copy_stream) \ - NEOMUTT_TEST_ITEM(test_mutt_file_decrease_mtime) \ - NEOMUTT_TEST_ITEM(test_mutt_file_expand_fmt) \ - NEOMUTT_TEST_ITEM(test_mutt_buffer_file_expand_fmt_quote) \ - NEOMUTT_TEST_ITEM(test_mutt_file_fclose) \ - NEOMUTT_TEST_ITEM(test_mutt_file_fopen) \ - NEOMUTT_TEST_ITEM(test_mutt_file_fsync_close) \ - NEOMUTT_TEST_ITEM(test_mutt_file_get_size) \ - NEOMUTT_TEST_ITEM(test_mutt_file_get_stat_timespec) \ - NEOMUTT_TEST_ITEM(test_mutt_file_iter_line) \ - NEOMUTT_TEST_ITEM(test_mutt_file_lock) \ - NEOMUTT_TEST_ITEM(test_mutt_file_map_lines) \ - NEOMUTT_TEST_ITEM(test_mutt_file_mkdir) \ - NEOMUTT_TEST_ITEM(test_mutt_file_mkstemp_full) \ - NEOMUTT_TEST_ITEM(test_mutt_file_open) \ - NEOMUTT_TEST_ITEM(test_mutt_file_quote_filename) \ - NEOMUTT_TEST_ITEM(test_mutt_buffer_quote_filename) \ - NEOMUTT_TEST_ITEM(test_mutt_file_read_keyword) \ - NEOMUTT_TEST_ITEM(test_mutt_file_read_line) \ - NEOMUTT_TEST_ITEM(test_mutt_file_rename) \ - NEOMUTT_TEST_ITEM(test_mutt_file_rmtree) \ - NEOMUTT_TEST_ITEM(test_mutt_file_safe_rename) \ - NEOMUTT_TEST_ITEM(test_mutt_file_sanitize_filename) \ - NEOMUTT_TEST_ITEM(test_mutt_file_sanitize_regex) \ - NEOMUTT_TEST_ITEM(test_mutt_file_set_mtime) \ - NEOMUTT_TEST_ITEM(test_mutt_file_stat_compare) \ - NEOMUTT_TEST_ITEM(test_mutt_file_stat_timespec_compare) \ - NEOMUTT_TEST_ITEM(test_mutt_file_symlink) \ - NEOMUTT_TEST_ITEM(test_mutt_file_timespec_compare) \ - NEOMUTT_TEST_ITEM(test_mutt_file_touch_atime) \ - NEOMUTT_TEST_ITEM(test_mutt_file_unlink) \ - NEOMUTT_TEST_ITEM(test_mutt_file_unlink_empty) \ - NEOMUTT_TEST_ITEM(test_mutt_file_unlock) - -/****************************************************************************** - * You probably don't need to touch what follows. - *****************************************************************************/ -#define NEOMUTT_TEST_ITEM(x) void x(void); -NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - -TEST_LIST = { -#define NEOMUTT_TEST_ITEM(x) { #x, x }, - NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - { 0 } -}; diff --git a/test/from/main.c b/test/from/main.c deleted file mode 100644 index bb77a26bc..000000000 --- a/test/from/main.c +++ /dev/null @@ -1,43 +0,0 @@ -/** - * @file - * Test code for from Operations - * - * @authors - * Copyright (C) 2019 Richard Russon - * - * @copyright - * This program is free software: you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation, either version 2 of the License, or (at your option) any later - * version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - * - * You should have received a copy of the GNU General Public License along with - * this program. If not, see . - */ - -#include "acutest.h" - -/****************************************************************************** - * Add your test cases to this list. - *****************************************************************************/ -#define NEOMUTT_TEST_LIST NEOMUTT_TEST_ITEM(test_is_from) - -/****************************************************************************** - * You probably don't need to touch what follows. - *****************************************************************************/ -#define NEOMUTT_TEST_ITEM(x) void x(void); -NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - -TEST_LIST = { -#define NEOMUTT_TEST_ITEM(x) { #x, x }, - NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - { 0 } -}; - diff --git a/test/group/main.c b/test/group/main.c deleted file mode 100644 index 5f20d76ca..000000000 --- a/test/group/main.c +++ /dev/null @@ -1,53 +0,0 @@ -/** - * @file - * Test code for Path Operations - * - * @authors - * Copyright (C) 2019 Richard Russon - * - * @copyright - * This program is free software: you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation, either version 2 of the License, or (at your option) any later - * version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - * - * You should have received a copy of the GNU General Public License along with - * this program. If not, see . - */ - -#include "acutest.h" - -/****************************************************************************** - * Add your test cases to this list. - *****************************************************************************/ -#define NEOMUTT_TEST_LIST \ - NEOMUTT_TEST_ITEM(test_mutt_grouplist_add) \ - NEOMUTT_TEST_ITEM(test_mutt_grouplist_add_addrlist) \ - NEOMUTT_TEST_ITEM(test_mutt_grouplist_add_regex) \ - NEOMUTT_TEST_ITEM(test_mutt_grouplist_clear) \ - NEOMUTT_TEST_ITEM(test_mutt_grouplist_destroy) \ - NEOMUTT_TEST_ITEM(test_mutt_grouplist_free) \ - NEOMUTT_TEST_ITEM(test_mutt_grouplist_init) \ - NEOMUTT_TEST_ITEM(test_mutt_grouplist_remove_addrlist) \ - NEOMUTT_TEST_ITEM(test_mutt_grouplist_remove_regex) \ - NEOMUTT_TEST_ITEM(test_mutt_group_match) \ - NEOMUTT_TEST_ITEM(test_mutt_pattern_group) - -/****************************************************************************** - * You probably don't need to touch what follows. - *****************************************************************************/ -#define NEOMUTT_TEST_ITEM(x) void x(void); -NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - -TEST_LIST = { -#define NEOMUTT_TEST_ITEM(x) { #x, x }, - NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - { 0 } -}; diff --git a/test/hash/main.c b/test/hash/main.c deleted file mode 100644 index 3d1bac561..000000000 --- a/test/hash/main.c +++ /dev/null @@ -1,56 +0,0 @@ -/** - * @file - * Test code for hash Operations - * - * @authors - * Copyright (C) 2019 Richard Russon - * - * @copyright - * This program is free software: you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation, either version 2 of the License, or (at your option) any later - * version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - * - * You should have received a copy of the GNU General Public License along with - * this program. If not, see . - */ - -#include "acutest.h" - -/****************************************************************************** - * Add your test cases to this list. - *****************************************************************************/ -#define NEOMUTT_TEST_LIST \ - NEOMUTT_TEST_ITEM(test_mutt_hash_delete) \ - NEOMUTT_TEST_ITEM(test_mutt_hash_find_bucket) \ - NEOMUTT_TEST_ITEM(test_mutt_hash_find) \ - NEOMUTT_TEST_ITEM(test_mutt_hash_find_elem) \ - NEOMUTT_TEST_ITEM(test_mutt_hash_free) \ - NEOMUTT_TEST_ITEM(test_mutt_hash_insert) \ - NEOMUTT_TEST_ITEM(test_mutt_hash_int_delete) \ - NEOMUTT_TEST_ITEM(test_mutt_hash_int_find) \ - NEOMUTT_TEST_ITEM(test_mutt_hash_int_insert) \ - NEOMUTT_TEST_ITEM(test_mutt_hash_int_new) \ - NEOMUTT_TEST_ITEM(test_mutt_hash_new) \ - NEOMUTT_TEST_ITEM(test_mutt_hash_set_destructor) \ - NEOMUTT_TEST_ITEM(test_mutt_hash_typed_insert) \ - NEOMUTT_TEST_ITEM(test_mutt_hash_walk) - -/****************************************************************************** - * You probably don't need to touch what follows. - *****************************************************************************/ -#define NEOMUTT_TEST_ITEM(x) void x(void); -NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - -TEST_LIST = { -#define NEOMUTT_TEST_ITEM(x) { #x, x }, - NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - { 0 } -}; diff --git a/test/hash/mutt_hash_set_destructor.c b/test/hash/mutt_hash_set_destructor.c index dadc1141a..a10f6e311 100644 --- a/test/hash/mutt_hash_set_destructor.c +++ b/test/hash/mutt_hash_set_destructor.c @@ -25,7 +25,7 @@ #include "config.h" #include "mutt/mutt.h" -void dummy_free(int type, void *obj, intptr_t data) +void dummy_hash_free(int type, void *obj, intptr_t data) { } @@ -34,7 +34,7 @@ void test_mutt_hash_set_destructor(void) // void mutt_hash_set_destructor(struct Hash *table, hashelem_free_t fn, intptr_t fn_data); { - hashelem_free_t fn = dummy_free; + hashelem_free_t fn = dummy_hash_free; mutt_hash_set_destructor(NULL, fn, (intptr_t) "apple"); TEST_CHECK_(1, "mutt_hash_set_destructor(NULL, fn, \"apple\")"); } @@ -47,7 +47,7 @@ void test_mutt_hash_set_destructor(void) { struct Hash hash = { 0 }; - hashelem_free_t fn = dummy_free; + hashelem_free_t fn = dummy_hash_free; mutt_hash_set_destructor(&hash, fn, 0); TEST_CHECK_(1, "mutt_hash_set_destructor(&hash, fn, NULL)"); } diff --git a/test/history/main.c b/test/history/main.c deleted file mode 100644 index 133bd02d3..000000000 --- a/test/history/main.c +++ /dev/null @@ -1,52 +0,0 @@ -/** - * @file - * Test code for history Operations - * - * @authors - * Copyright (C) 2019 Richard Russon - * - * @copyright - * This program is free software: you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation, either version 2 of the License, or (at your option) any later - * version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - * - * You should have received a copy of the GNU General Public License along with - * this program. If not, see . - */ - -#include "acutest.h" - -/****************************************************************************** - * Add your test cases to this list. - *****************************************************************************/ -#define NEOMUTT_TEST_LIST \ - NEOMUTT_TEST_ITEM(test_mutt_hist_add) \ - NEOMUTT_TEST_ITEM(test_mutt_hist_at_scratch) \ - NEOMUTT_TEST_ITEM(test_mutt_hist_free) \ - NEOMUTT_TEST_ITEM(test_mutt_hist_init) \ - NEOMUTT_TEST_ITEM(test_mutt_hist_next) \ - NEOMUTT_TEST_ITEM(test_mutt_hist_prev) \ - NEOMUTT_TEST_ITEM(test_mutt_hist_read_file) \ - NEOMUTT_TEST_ITEM(test_mutt_hist_reset_state) \ - NEOMUTT_TEST_ITEM(test_mutt_hist_save_scratch) \ - NEOMUTT_TEST_ITEM(test_mutt_hist_search) - -/****************************************************************************** - * You probably don't need to touch what follows. - *****************************************************************************/ -#define NEOMUTT_TEST_ITEM(x) void x(void); -NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - -TEST_LIST = { -#define NEOMUTT_TEST_ITEM(x) { #x, x }, - NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - { 0 } -}; diff --git a/test/idna/main.c b/test/idna/main.c deleted file mode 100644 index 929b9bb4d..000000000 --- a/test/idna/main.c +++ /dev/null @@ -1,46 +0,0 @@ -/** - * @file - * Test code for Path Operations - * - * @authors - * Copyright (C) 2019 Richard Russon - * - * @copyright - * This program is free software: you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation, either version 2 of the License, or (at your option) any later - * version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - * - * You should have received a copy of the GNU General Public License along with - * this program. If not, see . - */ - -#include "acutest.h" - -/****************************************************************************** - * Add your test cases to this list. - *****************************************************************************/ -#define NEOMUTT_TEST_LIST \ - NEOMUTT_TEST_ITEM(test_mutt_idna_intl_to_local) \ - NEOMUTT_TEST_ITEM(test_mutt_idna_local_to_intl) \ - NEOMUTT_TEST_ITEM(test_mutt_idna_print_version) \ - NEOMUTT_TEST_ITEM(test_mutt_idna_to_ascii_lz) - -/****************************************************************************** - * You probably don't need to touch what follows. - *****************************************************************************/ -#define NEOMUTT_TEST_ITEM(x) void x(void); -NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - -TEST_LIST = { -#define NEOMUTT_TEST_ITEM(x) { #x, x }, - NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - { 0 } -}; diff --git a/test/list/main.c b/test/list/main.c deleted file mode 100644 index f416aafdd..000000000 --- a/test/list/main.c +++ /dev/null @@ -1,51 +0,0 @@ -/** - * @file - * Test code for list Operations - * - * @authors - * Copyright (C) 2019 Richard Russon - * - * @copyright - * This program is free software: you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation, either version 2 of the License, or (at your option) any later - * version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - * - * You should have received a copy of the GNU General Public License along with - * this program. If not, see . - */ - -#include "acutest.h" - -/****************************************************************************** - * Add your test cases to this list. - *****************************************************************************/ -#define NEOMUTT_TEST_LIST \ - NEOMUTT_TEST_ITEM(test_mutt_list_clear) \ - NEOMUTT_TEST_ITEM(test_mutt_list_compare) \ - NEOMUTT_TEST_ITEM(test_mutt_list_find) \ - NEOMUTT_TEST_ITEM(test_mutt_list_free) \ - NEOMUTT_TEST_ITEM(test_mutt_list_free_type) \ - NEOMUTT_TEST_ITEM(test_mutt_list_insert_after) \ - NEOMUTT_TEST_ITEM(test_mutt_list_insert_head) \ - NEOMUTT_TEST_ITEM(test_mutt_list_insert_tail) \ - NEOMUTT_TEST_ITEM(test_mutt_list_match) - -/****************************************************************************** - * You probably don't need to touch what follows. - *****************************************************************************/ -#define NEOMUTT_TEST_ITEM(x) void x(void); -NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - -TEST_LIST = { -#define NEOMUTT_TEST_ITEM(x) { #x, x }, - NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - { 0 } -}; diff --git a/test/list/mutt_list_free_type.c b/test/list/mutt_list_free_type.c index 8daa6886d..25fe9cae6 100644 --- a/test/list/mutt_list_free_type.c +++ b/test/list/mutt_list_free_type.c @@ -25,7 +25,7 @@ #include "config.h" #include "mutt/mutt.h" -void dummy_free(void **ptr) +void dummy_list_free(void **ptr) { } @@ -34,7 +34,7 @@ void test_mutt_list_free_type(void) // void mutt_list_free_type(struct ListHead *h, list_free_t fn); { - list_free_t fn = dummy_free; + list_free_t fn = dummy_list_free; mutt_list_free_type(NULL, fn); TEST_CHECK_(1, "mutt_list_free_type(NULL, fn)"); } diff --git a/test/logging/main.c b/test/logging/main.c deleted file mode 100644 index 39e0afa6e..000000000 --- a/test/logging/main.c +++ /dev/null @@ -1,56 +0,0 @@ -/** - * @file - * Test code for logging Operations - * - * @authors - * Copyright (C) 2019 Richard Russon - * - * @copyright - * This program is free software: you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation, either version 2 of the License, or (at your option) any later - * version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - * - * You should have received a copy of the GNU General Public License along with - * this program. If not, see . - */ - -#include "acutest.h" - -/****************************************************************************** - * Add your test cases to this list. - *****************************************************************************/ -#define NEOMUTT_TEST_LIST \ - NEOMUTT_TEST_ITEM(test_log_disp_file) \ - NEOMUTT_TEST_ITEM(test_log_disp_queue) \ - NEOMUTT_TEST_ITEM(test_log_disp_terminal) \ - NEOMUTT_TEST_ITEM(test_log_file_close) \ - NEOMUTT_TEST_ITEM(test_log_file_open) \ - NEOMUTT_TEST_ITEM(test_log_file_running) \ - NEOMUTT_TEST_ITEM(test_log_file_set_filename) \ - NEOMUTT_TEST_ITEM(test_log_file_set_level) \ - NEOMUTT_TEST_ITEM(test_log_file_set_version) \ - NEOMUTT_TEST_ITEM(test_log_queue_add) \ - NEOMUTT_TEST_ITEM(test_log_queue_empty) \ - NEOMUTT_TEST_ITEM(test_log_queue_flush) \ - NEOMUTT_TEST_ITEM(test_log_queue_save) \ - NEOMUTT_TEST_ITEM(test_log_queue_set_max_size) - -/****************************************************************************** - * You probably don't need to touch what follows. - *****************************************************************************/ -#define NEOMUTT_TEST_ITEM(x) void x(void); -NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - -TEST_LIST = { -#define NEOMUTT_TEST_ITEM(x) { #x, x }, - NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - { 0 } -}; diff --git a/test/main.c b/test/main.c index 8219aac4d..13f53373e 100644 --- a/test/main.c +++ b/test/main.c @@ -26,6 +26,395 @@ * Add your test cases to this list. *****************************************************************************/ #define NEOMUTT_TEST_LIST \ + NEOMUTT_TEST_ITEM(test_mutt_addr_append) \ + NEOMUTT_TEST_ITEM(test_mutt_addr_cat) \ + NEOMUTT_TEST_ITEM(test_mutt_addr_cmp) \ + NEOMUTT_TEST_ITEM(test_mutt_addr_cmp_strict) \ + NEOMUTT_TEST_ITEM(test_mutt_addr_copy) \ + NEOMUTT_TEST_ITEM(test_mutt_addr_copy_list) \ + NEOMUTT_TEST_ITEM(test_mutt_addr_for_display) \ + NEOMUTT_TEST_ITEM(test_mutt_addr_free) \ + NEOMUTT_TEST_ITEM(test_mutt_addr_has_recips) \ + NEOMUTT_TEST_ITEM(test_mutt_addr_is_intl) \ + NEOMUTT_TEST_ITEM(test_mutt_addr_is_local) \ + NEOMUTT_TEST_ITEM(test_mutt_addr_mbox_to_udomain) \ + NEOMUTT_TEST_ITEM(test_mutt_addr_new) \ + NEOMUTT_TEST_ITEM(test_mutt_addr_parse_list) \ + NEOMUTT_TEST_ITEM(test_mutt_addr_parse_list2) \ + NEOMUTT_TEST_ITEM(test_mutt_addr_qualify) \ + NEOMUTT_TEST_ITEM(test_mutt_addr_remove_from_list) \ + NEOMUTT_TEST_ITEM(test_mutt_addr_remove_xrefs) \ + NEOMUTT_TEST_ITEM(test_mutt_addr_search) \ + NEOMUTT_TEST_ITEM(test_mutt_addr_set_intl) \ + NEOMUTT_TEST_ITEM(test_mutt_addr_set_local) \ + NEOMUTT_TEST_ITEM(test_mutt_addr_valid_msgid) \ + NEOMUTT_TEST_ITEM(test_mutt_addr_write) \ + NEOMUTT_TEST_ITEM(test_mutt_addr_write_single) \ + NEOMUTT_TEST_ITEM(test_mutt_addrlist_to_intl) \ + NEOMUTT_TEST_ITEM(test_mutt_addrlist_to_local) \ + NEOMUTT_TEST_ITEM(test_mutt_actx_add_attach) \ + NEOMUTT_TEST_ITEM(test_mutt_actx_add_body) \ + NEOMUTT_TEST_ITEM(test_mutt_actx_add_fp) \ + NEOMUTT_TEST_ITEM(test_mutt_actx_free) \ + NEOMUTT_TEST_ITEM(test_mutt_actx_free_entries) \ + NEOMUTT_TEST_ITEM(test_mutt_b64_buffer_decode) \ + NEOMUTT_TEST_ITEM(test_mutt_b64_buffer_encode) \ + NEOMUTT_TEST_ITEM(test_mutt_b64_decode) \ + NEOMUTT_TEST_ITEM(test_mutt_b64_encode) \ + NEOMUTT_TEST_ITEM(test_mutt_body_cmp_strict) \ + NEOMUTT_TEST_ITEM(test_mutt_body_free) \ + NEOMUTT_TEST_ITEM(test_mutt_body_new) \ + NEOMUTT_TEST_ITEM(test_mutt_buffer_addch) \ + NEOMUTT_TEST_ITEM(test_mutt_buffer_add_printf) \ + NEOMUTT_TEST_ITEM(test_mutt_buffer_addstr) \ + NEOMUTT_TEST_ITEM(test_mutt_buffer_addstr_n) \ + NEOMUTT_TEST_ITEM(test_mutt_buffer_alloc) \ + NEOMUTT_TEST_ITEM(test_mutt_buffer_concat_path) \ + NEOMUTT_TEST_ITEM(test_mutt_buffer_fix_dptr) \ + NEOMUTT_TEST_ITEM(test_mutt_buffer_free) \ + NEOMUTT_TEST_ITEM(test_mutt_buffer_from) \ + NEOMUTT_TEST_ITEM(test_mutt_buffer_increase_size) \ + NEOMUTT_TEST_ITEM(test_mutt_buffer_init) \ + NEOMUTT_TEST_ITEM(test_mutt_buffer_is_empty) \ + NEOMUTT_TEST_ITEM(test_mutt_buffer_len) \ + NEOMUTT_TEST_ITEM(test_mutt_buffer_new) \ + NEOMUTT_TEST_ITEM(test_mutt_buffer_pool_free) \ + NEOMUTT_TEST_ITEM(test_mutt_buffer_pool_get) \ + NEOMUTT_TEST_ITEM(test_mutt_buffer_pool_release) \ + NEOMUTT_TEST_ITEM(test_mutt_buffer_printf) \ + NEOMUTT_TEST_ITEM(test_mutt_buffer_reset) \ + NEOMUTT_TEST_ITEM(test_mutt_buffer_strcpy) \ + NEOMUTT_TEST_ITEM(test_mutt_buffer_strcpy_n) \ + NEOMUTT_TEST_ITEM(test_mutt_ch_canonical_charset) \ + NEOMUTT_TEST_ITEM(test_mutt_ch_charset_lookup) \ + NEOMUTT_TEST_ITEM(test_mutt_ch_check) \ + NEOMUTT_TEST_ITEM(test_mutt_ch_check_charset) \ + NEOMUTT_TEST_ITEM(test_mutt_ch_choose) \ + NEOMUTT_TEST_ITEM(test_mutt_ch_chscmp) \ + NEOMUTT_TEST_ITEM(test_mutt_ch_convert_nonmime_string) \ + NEOMUTT_TEST_ITEM(test_mutt_ch_convert_string) \ + NEOMUTT_TEST_ITEM(test_mutt_ch_fgetconv) \ + NEOMUTT_TEST_ITEM(test_mutt_ch_fgetconv_close) \ + NEOMUTT_TEST_ITEM(test_mutt_ch_fgetconv_open) \ + NEOMUTT_TEST_ITEM(test_mutt_ch_fgetconvs) \ + NEOMUTT_TEST_ITEM(test_mutt_ch_get_default_charset) \ + NEOMUTT_TEST_ITEM(test_mutt_ch_get_langinfo_charset) \ + NEOMUTT_TEST_ITEM(test_mutt_ch_iconv) \ + NEOMUTT_TEST_ITEM(test_mutt_ch_iconv_lookup) \ + NEOMUTT_TEST_ITEM(test_mutt_ch_iconv_open) \ + NEOMUTT_TEST_ITEM(test_mutt_ch_lookup_add) \ + NEOMUTT_TEST_ITEM(test_mutt_ch_lookup_remove) \ + NEOMUTT_TEST_ITEM(test_mutt_ch_set_charset) \ + NEOMUTT_TEST_ITEM(config_set) \ + NEOMUTT_TEST_ITEM(config_account) \ + NEOMUTT_TEST_ITEM(config_initial) \ + NEOMUTT_TEST_ITEM(config_synonym) \ + NEOMUTT_TEST_ITEM(config_address) \ + NEOMUTT_TEST_ITEM(config_bool) \ + NEOMUTT_TEST_ITEM(config_command) \ + NEOMUTT_TEST_ITEM(config_long) \ + NEOMUTT_TEST_ITEM(config_magic) \ + NEOMUTT_TEST_ITEM(config_mbtable) \ + NEOMUTT_TEST_ITEM(config_number) \ + NEOMUTT_TEST_ITEM(config_path) \ + NEOMUTT_TEST_ITEM(config_quad) \ + NEOMUTT_TEST_ITEM(config_regex) \ + NEOMUTT_TEST_ITEM(config_sort) \ + NEOMUTT_TEST_ITEM(config_string) \ + NEOMUTT_TEST_ITEM(config_dump) \ + NEOMUTT_TEST_ITEM(test_mutt_date_add_timeout) \ + NEOMUTT_TEST_ITEM(test_mutt_date_check_month) \ + NEOMUTT_TEST_ITEM(test_mutt_date_gmtime) \ + NEOMUTT_TEST_ITEM(test_mutt_date_is_day_name) \ + NEOMUTT_TEST_ITEM(test_mutt_date_localtime) \ + NEOMUTT_TEST_ITEM(test_mutt_date_localtime_format) \ + NEOMUTT_TEST_ITEM(test_mutt_date_local_tz) \ + NEOMUTT_TEST_ITEM(test_mutt_date_make_date) \ + NEOMUTT_TEST_ITEM(test_mutt_date_make_imap) \ + NEOMUTT_TEST_ITEM(test_mutt_date_make_time) \ + NEOMUTT_TEST_ITEM(test_mutt_date_make_tls) \ + NEOMUTT_TEST_ITEM(test_mutt_date_normalize_time) \ + NEOMUTT_TEST_ITEM(test_mutt_date_parse_date) \ + NEOMUTT_TEST_ITEM(test_mutt_date_parse_imap) \ + NEOMUTT_TEST_ITEM(test_mutt_email_cmp_strict) \ + NEOMUTT_TEST_ITEM(test_mutt_email_free) \ + NEOMUTT_TEST_ITEM(test_mutt_email_new) \ + NEOMUTT_TEST_ITEM(test_mutt_email_size) \ + NEOMUTT_TEST_ITEM(test_mutt_env_cmp_strict) \ + NEOMUTT_TEST_ITEM(test_mutt_env_free) \ + NEOMUTT_TEST_ITEM(test_mutt_env_merge) \ + NEOMUTT_TEST_ITEM(test_mutt_env_new) \ + NEOMUTT_TEST_ITEM(test_mutt_env_to_intl) \ + NEOMUTT_TEST_ITEM(test_mutt_env_to_local) \ + NEOMUTT_TEST_ITEM(test_mutt_envlist_free) \ + NEOMUTT_TEST_ITEM(test_mutt_envlist_getlist) \ + NEOMUTT_TEST_ITEM(test_mutt_envlist_init) \ + NEOMUTT_TEST_ITEM(test_mutt_envlist_set) \ + NEOMUTT_TEST_ITEM(test_mutt_envlist_unset) \ + NEOMUTT_TEST_ITEM(test_mutt_file_check_empty) \ + NEOMUTT_TEST_ITEM(test_mutt_file_chmod_add) \ + NEOMUTT_TEST_ITEM(test_mutt_file_chmod_add_stat) \ + NEOMUTT_TEST_ITEM(test_mutt_file_chmod) \ + NEOMUTT_TEST_ITEM(test_mutt_file_chmod_rm) \ + NEOMUTT_TEST_ITEM(test_mutt_file_chmod_rm_stat) \ + NEOMUTT_TEST_ITEM(test_mutt_file_copy_bytes) \ + NEOMUTT_TEST_ITEM(test_mutt_file_copy_stream) \ + NEOMUTT_TEST_ITEM(test_mutt_file_decrease_mtime) \ + NEOMUTT_TEST_ITEM(test_mutt_file_expand_fmt) \ + NEOMUTT_TEST_ITEM(test_mutt_buffer_file_expand_fmt_quote) \ + NEOMUTT_TEST_ITEM(test_mutt_file_fclose) \ + NEOMUTT_TEST_ITEM(test_mutt_file_fopen) \ + NEOMUTT_TEST_ITEM(test_mutt_file_fsync_close) \ + NEOMUTT_TEST_ITEM(test_mutt_file_get_size) \ + NEOMUTT_TEST_ITEM(test_mutt_file_get_stat_timespec) \ + NEOMUTT_TEST_ITEM(test_mutt_file_iter_line) \ + NEOMUTT_TEST_ITEM(test_mutt_file_lock) \ + NEOMUTT_TEST_ITEM(test_mutt_file_map_lines) \ + NEOMUTT_TEST_ITEM(test_mutt_file_mkdir) \ + NEOMUTT_TEST_ITEM(test_mutt_file_mkstemp_full) \ + NEOMUTT_TEST_ITEM(test_mutt_file_open) \ + NEOMUTT_TEST_ITEM(test_mutt_file_quote_filename) \ + NEOMUTT_TEST_ITEM(test_mutt_file_read_keyword) \ + NEOMUTT_TEST_ITEM(test_mutt_file_read_line) \ + NEOMUTT_TEST_ITEM(test_mutt_file_rename) \ + NEOMUTT_TEST_ITEM(test_mutt_file_rmtree) \ + NEOMUTT_TEST_ITEM(test_mutt_file_safe_rename) \ + NEOMUTT_TEST_ITEM(test_mutt_file_sanitize_filename) \ + NEOMUTT_TEST_ITEM(test_mutt_file_sanitize_regex) \ + NEOMUTT_TEST_ITEM(test_mutt_file_set_mtime) \ + NEOMUTT_TEST_ITEM(test_mutt_file_stat_compare) \ + NEOMUTT_TEST_ITEM(test_mutt_file_stat_timespec_compare) \ + NEOMUTT_TEST_ITEM(test_mutt_file_symlink) \ + NEOMUTT_TEST_ITEM(test_mutt_file_timespec_compare) \ + NEOMUTT_TEST_ITEM(test_mutt_file_touch_atime) \ + NEOMUTT_TEST_ITEM(test_mutt_file_unlink) \ + NEOMUTT_TEST_ITEM(test_mutt_file_unlink_empty) \ + NEOMUTT_TEST_ITEM(test_mutt_file_unlock) \ + NEOMUTT_TEST_ITEM(test_mutt_grouplist_add) \ + NEOMUTT_TEST_ITEM(test_mutt_grouplist_add_addrlist) \ + NEOMUTT_TEST_ITEM(test_mutt_grouplist_add_regex) \ + NEOMUTT_TEST_ITEM(test_mutt_grouplist_clear) \ + NEOMUTT_TEST_ITEM(test_mutt_grouplist_destroy) \ + NEOMUTT_TEST_ITEM(test_mutt_grouplist_free) \ + NEOMUTT_TEST_ITEM(test_mutt_grouplist_init) \ + NEOMUTT_TEST_ITEM(test_mutt_grouplist_remove_addrlist) \ + NEOMUTT_TEST_ITEM(test_mutt_grouplist_remove_regex) \ + NEOMUTT_TEST_ITEM(test_mutt_group_match) \ + NEOMUTT_TEST_ITEM(test_mutt_pattern_group) \ + NEOMUTT_TEST_ITEM(test_mutt_hash_delete) \ + NEOMUTT_TEST_ITEM(test_mutt_hash_find_bucket) \ + NEOMUTT_TEST_ITEM(test_mutt_hash_find) \ + NEOMUTT_TEST_ITEM(test_mutt_hash_find_elem) \ + NEOMUTT_TEST_ITEM(test_mutt_hash_free) \ + NEOMUTT_TEST_ITEM(test_mutt_hash_insert) \ + NEOMUTT_TEST_ITEM(test_mutt_hash_int_delete) \ + NEOMUTT_TEST_ITEM(test_mutt_hash_int_find) \ + NEOMUTT_TEST_ITEM(test_mutt_hash_int_insert) \ + NEOMUTT_TEST_ITEM(test_mutt_hash_int_new) \ + NEOMUTT_TEST_ITEM(test_mutt_hash_new) \ + NEOMUTT_TEST_ITEM(test_mutt_hash_set_destructor) \ + NEOMUTT_TEST_ITEM(test_mutt_hash_typed_insert) \ + NEOMUTT_TEST_ITEM(test_mutt_hash_walk) \ + NEOMUTT_TEST_ITEM(test_mutt_hist_add) \ + NEOMUTT_TEST_ITEM(test_mutt_hist_at_scratch) \ + NEOMUTT_TEST_ITEM(test_mutt_hist_free) \ + NEOMUTT_TEST_ITEM(test_mutt_hist_init) \ + NEOMUTT_TEST_ITEM(test_mutt_hist_next) \ + NEOMUTT_TEST_ITEM(test_mutt_hist_prev) \ + NEOMUTT_TEST_ITEM(test_mutt_hist_read_file) \ + NEOMUTT_TEST_ITEM(test_mutt_hist_reset_state) \ + NEOMUTT_TEST_ITEM(test_mutt_hist_save_scratch) \ + NEOMUTT_TEST_ITEM(test_mutt_hist_search) \ + NEOMUTT_TEST_ITEM(test_mutt_idna_intl_to_local) \ + NEOMUTT_TEST_ITEM(test_mutt_idna_local_to_intl) \ + NEOMUTT_TEST_ITEM(test_mutt_idna_print_version) \ + NEOMUTT_TEST_ITEM(test_mutt_idna_to_ascii_lz) \ + NEOMUTT_TEST_ITEM(test_mutt_list_clear) \ + NEOMUTT_TEST_ITEM(test_mutt_list_compare) \ + NEOMUTT_TEST_ITEM(test_mutt_list_find) \ + NEOMUTT_TEST_ITEM(test_mutt_list_free) \ + NEOMUTT_TEST_ITEM(test_mutt_list_free_type) \ + NEOMUTT_TEST_ITEM(test_mutt_list_insert_after) \ + NEOMUTT_TEST_ITEM(test_mutt_list_insert_head) \ + NEOMUTT_TEST_ITEM(test_mutt_list_insert_tail) \ + NEOMUTT_TEST_ITEM(test_mutt_list_match) \ + NEOMUTT_TEST_ITEM(test_log_disp_file) \ + NEOMUTT_TEST_ITEM(test_log_disp_queue) \ + NEOMUTT_TEST_ITEM(test_log_disp_terminal) \ + NEOMUTT_TEST_ITEM(test_log_file_close) \ + NEOMUTT_TEST_ITEM(test_log_file_open) \ + NEOMUTT_TEST_ITEM(test_log_file_running) \ + NEOMUTT_TEST_ITEM(test_log_file_set_filename) \ + NEOMUTT_TEST_ITEM(test_log_file_set_level) \ + NEOMUTT_TEST_ITEM(test_log_file_set_version) \ + NEOMUTT_TEST_ITEM(test_log_queue_add) \ + NEOMUTT_TEST_ITEM(test_log_queue_empty) \ + NEOMUTT_TEST_ITEM(test_log_queue_flush) \ + NEOMUTT_TEST_ITEM(test_log_queue_save) \ + NEOMUTT_TEST_ITEM(test_log_queue_set_max_size) \ + NEOMUTT_TEST_ITEM(test_mutt_map_get_name) \ + NEOMUTT_TEST_ITEM(test_mutt_map_get_value) \ + NEOMUTT_TEST_ITEM(test_mutt_mb_charlen) \ + NEOMUTT_TEST_ITEM(test_mutt_mb_filter_unprintable) \ + NEOMUTT_TEST_ITEM(test_mutt_mb_get_initials) \ + NEOMUTT_TEST_ITEM(test_mutt_mb_is_display_corrupting_utf8) \ + NEOMUTT_TEST_ITEM(test_mutt_mb_is_lower) \ + NEOMUTT_TEST_ITEM(test_mutt_mb_is_shell_char) \ + NEOMUTT_TEST_ITEM(test_mutt_mb_mbstowcs) \ + NEOMUTT_TEST_ITEM(test_mutt_mb_wcstombs) \ + NEOMUTT_TEST_ITEM(test_mutt_mb_wcswidth) \ + NEOMUTT_TEST_ITEM(test_mutt_mb_wcwidth) \ + NEOMUTT_TEST_ITEM(test_mutt_mb_width) \ + NEOMUTT_TEST_ITEM(test_mutt_mb_width_ceiling) \ + NEOMUTT_TEST_ITEM(test_mutt_md5_bytes) \ + NEOMUTT_TEST_ITEM(test_mutt_md5) \ + NEOMUTT_TEST_ITEM(test_mutt_md5_finish_ctx) \ + NEOMUTT_TEST_ITEM(test_mutt_md5_init_ctx) \ + NEOMUTT_TEST_ITEM(test_mutt_md5_process_bytes) \ + NEOMUTT_TEST_ITEM(test_mutt_md5_process) \ + NEOMUTT_TEST_ITEM(test_mutt_md5_toascii) \ + NEOMUTT_TEST_ITEM(test_mutt_mem_calloc) \ + NEOMUTT_TEST_ITEM(test_mutt_mem_free) \ + NEOMUTT_TEST_ITEM(test_mutt_mem_malloc) \ + NEOMUTT_TEST_ITEM(test_mutt_mem_realloc) \ + NEOMUTT_TEST_ITEM(test_mutt_param_cmp_strict) \ + NEOMUTT_TEST_ITEM(test_mutt_param_delete) \ + NEOMUTT_TEST_ITEM(test_mutt_param_free) \ + NEOMUTT_TEST_ITEM(test_mutt_param_free_one) \ + NEOMUTT_TEST_ITEM(test_mutt_param_get) \ + NEOMUTT_TEST_ITEM(test_mutt_param_new) \ + NEOMUTT_TEST_ITEM(test_mutt_param_set) \ + NEOMUTT_TEST_ITEM(test_mutt_auto_subscribe) \ + NEOMUTT_TEST_ITEM(test_mutt_check_encoding) \ + NEOMUTT_TEST_ITEM(test_mutt_check_mime_type) \ + NEOMUTT_TEST_ITEM(test_mutt_extract_message_id) \ + NEOMUTT_TEST_ITEM(test_mutt_is_message_type) \ + NEOMUTT_TEST_ITEM(test_mutt_matches_ignore) \ + NEOMUTT_TEST_ITEM(test_mutt_parse_content_type) \ + NEOMUTT_TEST_ITEM(test_mutt_parse_mailto) \ + NEOMUTT_TEST_ITEM(test_mutt_parse_multipart) \ + NEOMUTT_TEST_ITEM(test_mutt_parse_part) \ + NEOMUTT_TEST_ITEM(test_mutt_read_mime_header) \ + NEOMUTT_TEST_ITEM(test_mutt_rfc822_parse_line) \ + NEOMUTT_TEST_ITEM(test_mutt_rfc822_parse_message) \ + NEOMUTT_TEST_ITEM(test_mutt_rfc822_read_header) \ + NEOMUTT_TEST_ITEM(test_mutt_rfc822_read_line) \ + NEOMUTT_TEST_ITEM(test_mutt_path_abbr_folder) \ + NEOMUTT_TEST_ITEM(test_mutt_path_basename) \ + NEOMUTT_TEST_ITEM(test_mutt_path_canon) \ + NEOMUTT_TEST_ITEM(test_mutt_path_concat) \ + NEOMUTT_TEST_ITEM(test_mutt_path_concatn) \ + NEOMUTT_TEST_ITEM(test_mutt_path_dirname) \ + NEOMUTT_TEST_ITEM(test_mutt_path_escape) \ + NEOMUTT_TEST_ITEM(test_mutt_path_getcwd) \ + NEOMUTT_TEST_ITEM(test_mutt_path_parent) \ + NEOMUTT_TEST_ITEM(test_mutt_path_pretty) \ + NEOMUTT_TEST_ITEM(test_mutt_path_realpath) \ + NEOMUTT_TEST_ITEM(test_mutt_path_tidy) \ + NEOMUTT_TEST_ITEM(test_mutt_path_tidy_dotdot) \ + NEOMUTT_TEST_ITEM(test_mutt_path_tidy_slash) \ + NEOMUTT_TEST_ITEM(test_mutt_path_to_absolute) \ + NEOMUTT_TEST_ITEM(test_mutt_pattern_comp) \ + NEOMUTT_TEST_ITEM(test_mutt_regex_compile) \ + NEOMUTT_TEST_ITEM(test_mutt_regex_free) \ + NEOMUTT_TEST_ITEM(test_mutt_regexlist_add) \ + NEOMUTT_TEST_ITEM(test_mutt_regexlist_free) \ + NEOMUTT_TEST_ITEM(test_mutt_regexlist_match) \ + NEOMUTT_TEST_ITEM(test_mutt_regexlist_new) \ + NEOMUTT_TEST_ITEM(test_mutt_regexlist_remove) \ + NEOMUTT_TEST_ITEM(test_mutt_regex_new) \ + NEOMUTT_TEST_ITEM(test_mutt_replacelist_add) \ + NEOMUTT_TEST_ITEM(test_mutt_replacelist_apply) \ + NEOMUTT_TEST_ITEM(test_mutt_replacelist_free) \ + NEOMUTT_TEST_ITEM(test_mutt_replacelist_match) \ + NEOMUTT_TEST_ITEM(test_mutt_replacelist_new) \ + NEOMUTT_TEST_ITEM(test_mutt_replacelist_remove) \ + NEOMUTT_TEST_ITEM(test_rfc2047_decode) \ + NEOMUTT_TEST_ITEM(test_rfc2047_decode_addrlist) \ + NEOMUTT_TEST_ITEM(test_rfc2047_decode_envelope) \ + NEOMUTT_TEST_ITEM(test_rfc2047_encode) \ + NEOMUTT_TEST_ITEM(test_rfc2047_encode_addrlist) \ + NEOMUTT_TEST_ITEM(test_rfc2047_encode_envelope) \ + NEOMUTT_TEST_ITEM(test_rfc2231_decode_parameters) \ + NEOMUTT_TEST_ITEM(test_rfc2231_encode_string) \ + NEOMUTT_TEST_ITEM(test_mutt_sha1_final) \ + NEOMUTT_TEST_ITEM(test_mutt_sha1_init) \ + NEOMUTT_TEST_ITEM(test_mutt_sha1_transform) \ + NEOMUTT_TEST_ITEM(test_mutt_sha1_update) \ + NEOMUTT_TEST_ITEM(test_mutt_sig_allow_interrupt) \ + NEOMUTT_TEST_ITEM(test_mutt_sig_block) \ + NEOMUTT_TEST_ITEM(test_mutt_sig_block_system) \ + NEOMUTT_TEST_ITEM(test_mutt_sig_empty_handler) \ + NEOMUTT_TEST_ITEM(test_mutt_sig_exit_handler) \ + NEOMUTT_TEST_ITEM(test_mutt_sig_init) \ + NEOMUTT_TEST_ITEM(test_mutt_sig_unblock) \ + NEOMUTT_TEST_ITEM(test_mutt_sig_unblock_system) \ + NEOMUTT_TEST_ITEM(test_mutt_str_adjust) \ + NEOMUTT_TEST_ITEM(test_mutt_str_append_item) \ + NEOMUTT_TEST_ITEM(test_mutt_str_asprintf) \ + NEOMUTT_TEST_ITEM(test_mutt_str_atoi) \ + NEOMUTT_TEST_ITEM(test_mutt_str_atol) \ + NEOMUTT_TEST_ITEM(test_mutt_str_atos) \ + NEOMUTT_TEST_ITEM(test_mutt_str_atoui) \ + NEOMUTT_TEST_ITEM(test_mutt_str_atoul) \ + NEOMUTT_TEST_ITEM(test_mutt_str_atoull) \ + NEOMUTT_TEST_ITEM(test_mutt_str_dequote_comment) \ + NEOMUTT_TEST_ITEM(test_mutt_str_find_word) \ + NEOMUTT_TEST_ITEM(test_mutt_str_getenv) \ + NEOMUTT_TEST_ITEM(test_mutt_str_inline_replace) \ + NEOMUTT_TEST_ITEM(test_mutt_str_is_ascii) \ + NEOMUTT_TEST_ITEM(test_mutt_str_is_email_wsp) \ + NEOMUTT_TEST_ITEM(test_mutt_str_lws_len) \ + NEOMUTT_TEST_ITEM(test_mutt_str_lws_rlen) \ + NEOMUTT_TEST_ITEM(test_mutt_str_next_word) \ + NEOMUTT_TEST_ITEM(test_mutt_str_pretty_size) \ + NEOMUTT_TEST_ITEM(test_mutt_str_remall_strcasestr) \ + NEOMUTT_TEST_ITEM(test_mutt_str_remove_trailing_ws) \ + NEOMUTT_TEST_ITEM(test_mutt_str_replace) \ + NEOMUTT_TEST_ITEM(test_mutt_str_rstrnstr) \ + NEOMUTT_TEST_ITEM(test_mutt_str_skip_email_wsp) \ + NEOMUTT_TEST_ITEM(test_mutt_str_skip_whitespace) \ + NEOMUTT_TEST_ITEM(test_mutt_str_split) \ + NEOMUTT_TEST_ITEM(test_mutt_str_startswith) \ + NEOMUTT_TEST_ITEM(test_mutt_str_strcasecmp) \ + NEOMUTT_TEST_ITEM(test_mutt_str_strcasestr) \ + NEOMUTT_TEST_ITEM(test_mutt_str_strcat) \ + NEOMUTT_TEST_ITEM(test_mutt_str_strchrnul) \ + NEOMUTT_TEST_ITEM(test_mutt_str_strcmp) \ + NEOMUTT_TEST_ITEM(test_mutt_str_strcoll) \ + NEOMUTT_TEST_ITEM(test_mutt_str_strdup) \ + NEOMUTT_TEST_ITEM(test_mutt_str_strfcpy) \ + NEOMUTT_TEST_ITEM(test_mutt_str_stristr) \ + NEOMUTT_TEST_ITEM(test_mutt_str_strlen) \ + NEOMUTT_TEST_ITEM(test_mutt_str_strlower) \ + NEOMUTT_TEST_ITEM(test_mutt_str_strncasecmp) \ + NEOMUTT_TEST_ITEM(test_mutt_str_strncat) \ + NEOMUTT_TEST_ITEM(test_mutt_str_strncmp) \ + NEOMUTT_TEST_ITEM(test_mutt_str_strnfcpy) \ + NEOMUTT_TEST_ITEM(test_mutt_str_substr_cpy) \ + NEOMUTT_TEST_ITEM(test_mutt_str_substr_dup) \ + NEOMUTT_TEST_ITEM(test_mutt_str_sysexit) \ + NEOMUTT_TEST_ITEM(test_mutt_str_word_casecmp) \ + NEOMUTT_TEST_ITEM(test_driver_tags_free) \ + NEOMUTT_TEST_ITEM(test_driver_tags_get) \ + NEOMUTT_TEST_ITEM(test_driver_tags_get_transformed) \ + NEOMUTT_TEST_ITEM(test_driver_tags_get_transformed_for) \ + NEOMUTT_TEST_ITEM(test_driver_tags_get_with_hidden) \ + NEOMUTT_TEST_ITEM(test_driver_tags_replace) \ + NEOMUTT_TEST_ITEM(test_clean_references) \ + NEOMUTT_TEST_ITEM(test_find_virtual) \ + NEOMUTT_TEST_ITEM(test_insert_message) \ + NEOMUTT_TEST_ITEM(test_is_descendant) \ + NEOMUTT_TEST_ITEM(test_mutt_break_thread) \ + NEOMUTT_TEST_ITEM(test_thread_hash_destructor) \ + NEOMUTT_TEST_ITEM(test_unlink_message) \ + NEOMUTT_TEST_ITEM(test_url_check_scheme) \ + NEOMUTT_TEST_ITEM(test_url_free) \ + NEOMUTT_TEST_ITEM(test_url_parse) \ + NEOMUTT_TEST_ITEM(test_url_pct_decode) \ + NEOMUTT_TEST_ITEM(test_url_pct_encode) \ + NEOMUTT_TEST_ITEM(test_url_tobuffer) \ + NEOMUTT_TEST_ITEM(test_url_tostring) /****************************************************************************** * You probably don't need to touch what follows. diff --git a/test/mapping/main.c b/test/mapping/main.c deleted file mode 100644 index f299b9f69..000000000 --- a/test/mapping/main.c +++ /dev/null @@ -1,44 +0,0 @@ -/** - * @file - * Test code for mapping Operations - * - * @authors - * Copyright (C) 2019 Richard Russon - * - * @copyright - * This program is free software: you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation, either version 2 of the License, or (at your option) any later - * version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - * - * You should have received a copy of the GNU General Public License along with - * this program. If not, see . - */ - -#include "acutest.h" - -/****************************************************************************** - * Add your test cases to this list. - *****************************************************************************/ -#define NEOMUTT_TEST_LIST \ - NEOMUTT_TEST_ITEM(test_mutt_map_get_name) \ - NEOMUTT_TEST_ITEM(test_mutt_map_get_value) - -/****************************************************************************** - * You probably don't need to touch what follows. - *****************************************************************************/ -#define NEOMUTT_TEST_ITEM(x) void x(void); -NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - -TEST_LIST = { -#define NEOMUTT_TEST_ITEM(x) { #x, x }, - NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - { 0 } -}; diff --git a/test/mbyte/main.c b/test/mbyte/main.c deleted file mode 100644 index 6a6c48f4e..000000000 --- a/test/mbyte/main.c +++ /dev/null @@ -1,54 +0,0 @@ -/** - * @file - * Test code for mbyte Operations - * - * @authors - * Copyright (C) 2019 Richard Russon - * - * @copyright - * This program is free software: you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation, either version 2 of the License, or (at your option) any later - * version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - * - * You should have received a copy of the GNU General Public License along with - * this program. If not, see . - */ - -#include "acutest.h" - -/****************************************************************************** - * Add your test cases to this list. - *****************************************************************************/ -#define NEOMUTT_TEST_LIST \ - NEOMUTT_TEST_ITEM(test_mutt_mb_charlen) \ - NEOMUTT_TEST_ITEM(test_mutt_mb_filter_unprintable) \ - NEOMUTT_TEST_ITEM(test_mutt_mb_get_initials) \ - NEOMUTT_TEST_ITEM(test_mutt_mb_is_display_corrupting_utf8) \ - NEOMUTT_TEST_ITEM(test_mutt_mb_is_lower) \ - NEOMUTT_TEST_ITEM(test_mutt_mb_is_shell_char) \ - NEOMUTT_TEST_ITEM(test_mutt_mb_mbstowcs) \ - NEOMUTT_TEST_ITEM(test_mutt_mb_wcstombs) \ - NEOMUTT_TEST_ITEM(test_mutt_mb_wcswidth) \ - NEOMUTT_TEST_ITEM(test_mutt_mb_wcwidth) \ - NEOMUTT_TEST_ITEM(test_mutt_mb_width) \ - NEOMUTT_TEST_ITEM(test_mutt_mb_width_ceiling) - -/****************************************************************************** - * You probably don't need to touch what follows. - *****************************************************************************/ -#define NEOMUTT_TEST_ITEM(x) void x(void); -NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - -TEST_LIST = { -#define NEOMUTT_TEST_ITEM(x) { #x, x }, - NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - { 0 } -}; diff --git a/test/md5/common.c b/test/md5/common.c index f5186271e..610dce7bb 100644 --- a/test/md5/common.c +++ b/test/md5/common.c @@ -26,7 +26,7 @@ #include "common.h" // clang-format off -const struct Md5TestData test_data[] = +const struct Md5TestData md5_test_data[] = { { "The quick brown fox jumps over the lazy dog", diff --git a/test/md5/common.h b/test/md5/common.h index e3c9f9164..3559fbfa0 100644 --- a/test/md5/common.h +++ b/test/md5/common.h @@ -30,5 +30,5 @@ struct Md5TestData const char *hash; // MD5 hash digest }; -extern const struct Md5TestData test_data[]; +extern const struct Md5TestData md5_test_data[]; diff --git a/test/md5/main.c b/test/md5/main.c deleted file mode 100644 index c44415232..000000000 --- a/test/md5/main.c +++ /dev/null @@ -1,49 +0,0 @@ -/** - * @file - * Test code for md5 Operations - * - * @authors - * Copyright (C) 2019 Richard Russon - * - * @copyright - * This program is free software: you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation, either version 2 of the License, or (at your option) any later - * version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - * - * You should have received a copy of the GNU General Public License along with - * this program. If not, see . - */ - -#include "acutest.h" - -/****************************************************************************** - * Add your test cases to this list. - *****************************************************************************/ -#define NEOMUTT_TEST_LIST \ - NEOMUTT_TEST_ITEM(test_mutt_md5_bytes) \ - NEOMUTT_TEST_ITEM(test_mutt_md5) \ - NEOMUTT_TEST_ITEM(test_mutt_md5_finish_ctx) \ - NEOMUTT_TEST_ITEM(test_mutt_md5_init_ctx) \ - NEOMUTT_TEST_ITEM(test_mutt_md5_process_bytes) \ - NEOMUTT_TEST_ITEM(test_mutt_md5_process) \ - NEOMUTT_TEST_ITEM(test_mutt_md5_toascii) - -/****************************************************************************** - * You probably don't need to touch what follows. - *****************************************************************************/ -#define NEOMUTT_TEST_ITEM(x) void x(void); -NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - -TEST_LIST = { -#define NEOMUTT_TEST_ITEM(x) { #x, x }, - NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - { 0 } -}; diff --git a/test/md5/mutt_md5.c b/test/md5/mutt_md5.c index dd6eeec2c..b42e1b09d 100644 --- a/test/md5/mutt_md5.c +++ b/test/md5/mutt_md5.c @@ -40,16 +40,16 @@ void test_mutt_md5(void) } { - for (size_t i = 0; test_data[i].text; i++) + for (size_t i = 0; md5_test_data[i].text; i++) { unsigned char buf[16]; char digest[33]; - mutt_md5(test_data[i].text, buf); + mutt_md5(md5_test_data[i].text, buf); mutt_md5_toascii(buf, digest); - if (!TEST_CHECK(strcmp(test_data[i].hash, digest) == 0)) + if (!TEST_CHECK(strcmp(md5_test_data[i].hash, digest) == 0)) { TEST_MSG("Iteration: %zu", i); - TEST_MSG("Expected : %s", test_data[i].hash); + TEST_MSG("Expected : %s", md5_test_data[i].hash); TEST_MSG("Actual : %s", digest); } } diff --git a/test/md5/mutt_md5_bytes.c b/test/md5/mutt_md5_bytes.c index b06da05e0..2c1aa3202 100644 --- a/test/md5/mutt_md5_bytes.c +++ b/test/md5/mutt_md5_bytes.c @@ -43,19 +43,19 @@ void test_mutt_md5_bytes(void) } { - for (size_t i = 0; test_data[i].text; i++) + for (size_t i = 0; md5_test_data[i].text; i++) { struct Md5Ctx ctx = { 0 }; unsigned char buf[16]; char digest[33]; mutt_md5_init_ctx(&ctx); - mutt_md5_process_bytes(test_data[i].text, strlen(test_data[i].text), &ctx); + mutt_md5_process_bytes(md5_test_data[i].text, strlen(md5_test_data[i].text), &ctx); mutt_md5_finish_ctx(&ctx, buf); mutt_md5_toascii(buf, digest); - if (!TEST_CHECK(strcmp(test_data[i].hash, digest) == 0)) + if (!TEST_CHECK(strcmp(md5_test_data[i].hash, digest) == 0)) { TEST_MSG("Iteration: %zu", i); - TEST_MSG("Expected : %s", test_data[i].hash); + TEST_MSG("Expected : %s", md5_test_data[i].hash); TEST_MSG("Actual : %s", digest); } } diff --git a/test/md5/mutt_md5_init_ctx.c b/test/md5/mutt_md5_init_ctx.c index 53c836f87..8d5ada8e5 100644 --- a/test/md5/mutt_md5_init_ctx.c +++ b/test/md5/mutt_md5_init_ctx.c @@ -36,19 +36,19 @@ void test_mutt_md5_init_ctx(void) } { - for (size_t i = 0; test_data[i].text; i++) + for (size_t i = 0; md5_test_data[i].text; i++) { struct Md5Ctx ctx = { 0 }; unsigned char buf[16]; char digest[33]; mutt_md5_init_ctx(&ctx); - mutt_md5_process(test_data[i].text, &ctx); + mutt_md5_process(md5_test_data[i].text, &ctx); mutt_md5_finish_ctx(&ctx, buf); mutt_md5_toascii(buf, digest); - if (!TEST_CHECK(strcmp(test_data[i].hash, digest) == 0)) + if (!TEST_CHECK(strcmp(md5_test_data[i].hash, digest) == 0)) { TEST_MSG("Iteration: %zu", i); - TEST_MSG("Expected : %s", test_data[i].hash); + TEST_MSG("Expected : %s", md5_test_data[i].hash); TEST_MSG("Actual : %s", digest); } } diff --git a/test/memory/main.c b/test/memory/main.c deleted file mode 100644 index 6d9d81c19..000000000 --- a/test/memory/main.c +++ /dev/null @@ -1,46 +0,0 @@ -/** - * @file - * Test code for memory Operations - * - * @authors - * Copyright (C) 2019 Richard Russon - * - * @copyright - * This program is free software: you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation, either version 2 of the License, or (at your option) any later - * version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - * - * You should have received a copy of the GNU General Public License along with - * this program. If not, see . - */ - -#include "acutest.h" - -/****************************************************************************** - * Add your test cases to this list. - *****************************************************************************/ -#define NEOMUTT_TEST_LIST \ - NEOMUTT_TEST_ITEM(test_mutt_mem_calloc) \ - NEOMUTT_TEST_ITEM(test_mutt_mem_free) \ - NEOMUTT_TEST_ITEM(test_mutt_mem_malloc) \ - NEOMUTT_TEST_ITEM(test_mutt_mem_realloc) - -/****************************************************************************** - * You probably don't need to touch what follows. - *****************************************************************************/ -#define NEOMUTT_TEST_ITEM(x) void x(void); -NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - -TEST_LIST = { -#define NEOMUTT_TEST_ITEM(x) { #x, x }, - NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - { 0 } -}; diff --git a/test/parameter/main.c b/test/parameter/main.c deleted file mode 100644 index faf13e98f..000000000 --- a/test/parameter/main.c +++ /dev/null @@ -1,50 +0,0 @@ -/** - * @file - * Test code for parameter Operations - * - * @authors - * Copyright (C) 2019 Richard Russon - * - * @copyright - * This program is free software: you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation, either version 2 of the License, or (at your option) any later - * version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - * - * You should have received a copy of the GNU General Public License along with - * this program. If not, see . - */ - -#include "acutest.h" - -/****************************************************************************** - * Add your test cases to this list. - *****************************************************************************/ -#define NEOMUTT_TEST_LIST \ - NEOMUTT_TEST_ITEM(test_mutt_param_cmp_strict) \ - NEOMUTT_TEST_ITEM(test_mutt_param_delete) \ - NEOMUTT_TEST_ITEM(test_mutt_param_free) \ - NEOMUTT_TEST_ITEM(test_mutt_param_free_one) \ - NEOMUTT_TEST_ITEM(test_mutt_param_get) \ - NEOMUTT_TEST_ITEM(test_mutt_param_new) \ - NEOMUTT_TEST_ITEM(test_mutt_param_set) - -/****************************************************************************** - * You probably don't need to touch what follows. - *****************************************************************************/ -#define NEOMUTT_TEST_ITEM(x) void x(void); -NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - -TEST_LIST = { -#define NEOMUTT_TEST_ITEM(x) { #x, x }, - NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - { 0 } -}; - diff --git a/test/parse/main.c b/test/parse/main.c deleted file mode 100644 index b73e5ddf5..000000000 --- a/test/parse/main.c +++ /dev/null @@ -1,58 +0,0 @@ -/** - * @file - * Test code for parse Operations - * - * @authors - * Copyright (C) 2019 Richard Russon - * - * @copyright - * This program is free software: you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation, either version 2 of the License, or (at your option) any later - * version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - * - * You should have received a copy of the GNU General Public License along with - * this program. If not, see . - */ - -#include "acutest.h" - -/****************************************************************************** - * Add your test cases to this list. - *****************************************************************************/ -#define NEOMUTT_TEST_LIST \ - NEOMUTT_TEST_ITEM(test_mutt_auto_subscribe) \ - NEOMUTT_TEST_ITEM(test_mutt_check_encoding) \ - NEOMUTT_TEST_ITEM(test_mutt_check_mime_type) \ - NEOMUTT_TEST_ITEM(test_mutt_extract_message_id) \ - NEOMUTT_TEST_ITEM(test_mutt_is_message_type) \ - NEOMUTT_TEST_ITEM(test_mutt_matches_ignore) \ - NEOMUTT_TEST_ITEM(test_mutt_parse_content_type) \ - NEOMUTT_TEST_ITEM(test_mutt_parse_mailto) \ - NEOMUTT_TEST_ITEM(test_mutt_parse_multipart) \ - NEOMUTT_TEST_ITEM(test_mutt_parse_part) \ - NEOMUTT_TEST_ITEM(test_mutt_read_mime_header) \ - NEOMUTT_TEST_ITEM(test_mutt_rfc822_parse_line) \ - NEOMUTT_TEST_ITEM(test_mutt_rfc822_parse_message) \ - NEOMUTT_TEST_ITEM(test_mutt_rfc822_read_header) \ - NEOMUTT_TEST_ITEM(test_mutt_rfc822_read_line) - -/****************************************************************************** - * You probably don't need to touch what follows. - *****************************************************************************/ -#define NEOMUTT_TEST_ITEM(x) void x(void); -NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - -TEST_LIST = { -#define NEOMUTT_TEST_ITEM(x) { #x, x }, - NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - { 0 } -}; - diff --git a/test/path/main.c b/test/path/main.c deleted file mode 100644 index 13e6b778c..000000000 --- a/test/path/main.c +++ /dev/null @@ -1,57 +0,0 @@ -/** - * @file - * Test code for Path Operations - * - * @authors - * Copyright (C) 2019 Richard Russon - * - * @copyright - * This program is free software: you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation, either version 2 of the License, or (at your option) any later - * version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - * - * You should have received a copy of the GNU General Public License along with - * this program. If not, see . - */ - -#include "acutest.h" - -/****************************************************************************** - * Add your test cases to this list. - *****************************************************************************/ -#define NEOMUTT_TEST_LIST \ - NEOMUTT_TEST_ITEM(test_mutt_path_abbr_folder) \ - NEOMUTT_TEST_ITEM(test_mutt_path_basename) \ - NEOMUTT_TEST_ITEM(test_mutt_path_canon) \ - NEOMUTT_TEST_ITEM(test_mutt_path_concat) \ - NEOMUTT_TEST_ITEM(test_mutt_path_concatn) \ - NEOMUTT_TEST_ITEM(test_mutt_path_dirname) \ - NEOMUTT_TEST_ITEM(test_mutt_path_escape) \ - NEOMUTT_TEST_ITEM(test_mutt_path_getcwd) \ - NEOMUTT_TEST_ITEM(test_mutt_path_parent) \ - NEOMUTT_TEST_ITEM(test_mutt_path_pretty) \ - NEOMUTT_TEST_ITEM(test_mutt_path_realpath) \ - NEOMUTT_TEST_ITEM(test_mutt_path_tidy) \ - NEOMUTT_TEST_ITEM(test_mutt_path_tidy_dotdot) \ - NEOMUTT_TEST_ITEM(test_mutt_path_tidy_slash) \ - NEOMUTT_TEST_ITEM(test_mutt_path_to_absolute) - -/****************************************************************************** - * You probably don't need to touch what follows. - *****************************************************************************/ -#define NEOMUTT_TEST_ITEM(x) void x(void); -NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - -TEST_LIST = { -#define NEOMUTT_TEST_ITEM(x) { #x, x }, - NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - { 0 } -}; diff --git a/test/pattern/main.c b/test/pattern/main.c deleted file mode 100644 index 757c91e70..000000000 --- a/test/pattern/main.c +++ /dev/null @@ -1,43 +0,0 @@ -/** - * @file - * Pattern Testing - * - * @authors - * Copyright (C) 2018 Naveen Nathan - * - * @copyright - * This program is free software: you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation, either version 2 of the License, or (at your option) any later - * version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - * - * You should have received a copy of the GNU General Public License along with - * this program. If not, see . - */ - -#include "acutest.h" - -/****************************************************************************** - * Add your test cases to this list. - *****************************************************************************/ -#define NEOMUTT_TEST_LIST \ - NEOMUTT_TEST_ITEM(test_mutt_pattern_comp) - -/****************************************************************************** - * You probably don't need to touch what follows. - *****************************************************************************/ -#define NEOMUTT_TEST_ITEM(x) void x(void); -NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - -TEST_LIST = { -#define NEOMUTT_TEST_ITEM(x) { #x, x }, - NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - { 0 } -}; diff --git a/test/regex/main.c b/test/regex/main.c deleted file mode 100644 index 964a63a10..000000000 --- a/test/regex/main.c +++ /dev/null @@ -1,56 +0,0 @@ -/** - * @file - * Test code for regex Operations - * - * @authors - * Copyright (C) 2019 Richard Russon - * - * @copyright - * This program is free software: you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation, either version 2 of the License, or (at your option) any later - * version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - * - * You should have received a copy of the GNU General Public License along with - * this program. If not, see . - */ - -#include "acutest.h" - -/****************************************************************************** - * Add your test cases to this list. - *****************************************************************************/ -#define NEOMUTT_TEST_LIST \ - NEOMUTT_TEST_ITEM(test_mutt_regex_compile) \ - NEOMUTT_TEST_ITEM(test_mutt_regex_free) \ - NEOMUTT_TEST_ITEM(test_mutt_regexlist_add) \ - NEOMUTT_TEST_ITEM(test_mutt_regexlist_free) \ - NEOMUTT_TEST_ITEM(test_mutt_regexlist_match) \ - NEOMUTT_TEST_ITEM(test_mutt_regexlist_new) \ - NEOMUTT_TEST_ITEM(test_mutt_regexlist_remove) \ - NEOMUTT_TEST_ITEM(test_mutt_regex_new) \ - NEOMUTT_TEST_ITEM(test_mutt_replacelist_add) \ - NEOMUTT_TEST_ITEM(test_mutt_replacelist_apply) \ - NEOMUTT_TEST_ITEM(test_mutt_replacelist_free) \ - NEOMUTT_TEST_ITEM(test_mutt_replacelist_match) \ - NEOMUTT_TEST_ITEM(test_mutt_replacelist_new) \ - NEOMUTT_TEST_ITEM(test_mutt_replacelist_remove) - -/****************************************************************************** - * You probably don't need to touch what follows. - *****************************************************************************/ -#define NEOMUTT_TEST_ITEM(x) void x(void); -NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - -TEST_LIST = { -#define NEOMUTT_TEST_ITEM(x) { #x, x }, - NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - { 0 } -}; diff --git a/test/rfc2047/common.c b/test/rfc2047/common.c index 0bf793610..3c80bb63e 100644 --- a/test/rfc2047/common.c +++ b/test/rfc2047/common.c @@ -29,7 +29,7 @@ #include "common.h" // clang-format off -const struct Rfc2047TestData test_data[] = +const struct Rfc2047TestData rfc2047_test_data[] = { { /* The string is split in the middle of a multi-byte sequence */ diff --git a/test/rfc2047/common.h b/test/rfc2047/common.h index d7a4379af..d8a87460d 100644 --- a/test/rfc2047/common.h +++ b/test/rfc2047/common.h @@ -33,5 +33,5 @@ struct Rfc2047TestData const char *encoded; // the string as it's encoded by NeoMutt }; -extern const struct Rfc2047TestData test_data[]; +extern const struct Rfc2047TestData rfc2047_test_data[]; diff --git a/test/rfc2047/main.c b/test/rfc2047/main.c deleted file mode 100644 index 295717650..000000000 --- a/test/rfc2047/main.c +++ /dev/null @@ -1,49 +0,0 @@ -/** - * @file - * Test code for rfc2047 Operations - * - * @authors - * Copyright (C) 2019 Richard Russon - * - * @copyright - * This program is free software: you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation, either version 2 of the License, or (at your option) any later - * version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - * - * You should have received a copy of the GNU General Public License along with - * this program. If not, see . - */ - -#include "acutest.h" - -/****************************************************************************** - * Add your test cases to this list. - *****************************************************************************/ -#define NEOMUTT_TEST_LIST \ - NEOMUTT_TEST_ITEM(test_rfc2047_decode) \ - NEOMUTT_TEST_ITEM(test_rfc2047_decode_addrlist) \ - NEOMUTT_TEST_ITEM(test_rfc2047_decode_envelope) \ - NEOMUTT_TEST_ITEM(test_rfc2047_encode) \ - NEOMUTT_TEST_ITEM(test_rfc2047_encode_addrlist) \ - NEOMUTT_TEST_ITEM(test_rfc2047_encode_envelope) - -/****************************************************************************** - * You probably don't need to touch what follows. - *****************************************************************************/ -#define NEOMUTT_TEST_ITEM(x) void x(void); -NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - -TEST_LIST = { -#define NEOMUTT_TEST_ITEM(x) { #x, x }, - NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - { 0 } -}; - diff --git a/test/rfc2047/rfc2047_decode.c b/test/rfc2047/rfc2047_decode.c index 6ce9edc46..3e933d99e 100644 --- a/test/rfc2047/rfc2047_decode.c +++ b/test/rfc2047/rfc2047_decode.c @@ -53,26 +53,26 @@ void test_rfc2047_decode(void) } { - for (size_t i = 0; test_data[i].original; i++) + for (size_t i = 0; rfc2047_test_data[i].original; i++) { /* decode the original string */ - char *s = mutt_str_strdup(test_data[i].original); + char *s = mutt_str_strdup(rfc2047_test_data[i].original); rfc2047_decode(&s); - if (!TEST_CHECK(strcmp(s, test_data[i].decoded) == 0)) + if (!TEST_CHECK(strcmp(s, rfc2047_test_data[i].decoded) == 0)) { TEST_MSG("Iteration: %zu", i); - TEST_MSG("Expected : %s", test_data[i].decoded); + TEST_MSG("Expected : %s", rfc2047_test_data[i].decoded); TEST_MSG("Actual : %s", s); } FREE(&s); /* decode the encoded result */ - s = mutt_str_strdup(test_data[i].encoded); + s = mutt_str_strdup(rfc2047_test_data[i].encoded); rfc2047_decode(&s); - if (!TEST_CHECK(strcmp(s, test_data[i].decoded) == 0)) + if (!TEST_CHECK(strcmp(s, rfc2047_test_data[i].decoded) == 0)) { TEST_MSG("Iteration: %zu", i); - TEST_MSG("Expected : %s", test_data[i].decoded); + TEST_MSG("Expected : %s", rfc2047_test_data[i].decoded); TEST_MSG("Actual : %s", s); } FREE(&s); diff --git a/test/rfc2047/rfc2047_encode.c b/test/rfc2047/rfc2047_encode.c index fd632ef08..65b9785a4 100644 --- a/test/rfc2047/rfc2047_encode.c +++ b/test/rfc2047/rfc2047_encode.c @@ -59,15 +59,15 @@ void test_rfc2047_encode(void) } { - for (size_t i = 0; test_data[i].decoded; i++) + for (size_t i = 0; rfc2047_test_data[i].decoded; i++) { /* encode the expected result */ - char *s = mutt_str_strdup(test_data[i].decoded); + char *s = mutt_str_strdup(rfc2047_test_data[i].decoded); rfc2047_encode(&s, NULL, 0, "utf-8"); - if (!TEST_CHECK(strcmp(s, test_data[i].encoded) == 0)) + if (!TEST_CHECK(strcmp(s, rfc2047_test_data[i].encoded) == 0)) { TEST_MSG("Iteration: %zu", i); - TEST_MSG("Expected : %s", test_data[i].encoded); + TEST_MSG("Expected : %s", rfc2047_test_data[i].encoded); TEST_MSG("Actual : %s", s); } FREE(&s); diff --git a/test/rfc2231/main.c b/test/rfc2231/main.c deleted file mode 100644 index 05ef63e42..000000000 --- a/test/rfc2231/main.c +++ /dev/null @@ -1,45 +0,0 @@ -/** - * @file - * Test code for rfc2231 Operations - * - * @authors - * Copyright (C) 2019 Richard Russon - * - * @copyright - * This program is free software: you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation, either version 2 of the License, or (at your option) any later - * version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - * - * You should have received a copy of the GNU General Public License along with - * this program. If not, see . - */ - -#include "acutest.h" - -/****************************************************************************** - * Add your test cases to this list. - *****************************************************************************/ -#define NEOMUTT_TEST_LIST \ - NEOMUTT_TEST_ITEM(test_rfc2231_decode_parameters) \ - NEOMUTT_TEST_ITEM(test_rfc2231_encode_string) - -/****************************************************************************** - * You probably don't need to touch what follows. - *****************************************************************************/ -#define NEOMUTT_TEST_ITEM(x) void x(void); -NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - -TEST_LIST = { -#define NEOMUTT_TEST_ITEM(x) { #x, x }, - NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - { 0 } -}; - diff --git a/test/sha1/main.c b/test/sha1/main.c deleted file mode 100644 index 049f81169..000000000 --- a/test/sha1/main.c +++ /dev/null @@ -1,46 +0,0 @@ -/** - * @file - * Test code for sha1 Operations - * - * @authors - * Copyright (C) 2019 Richard Russon - * - * @copyright - * This program is free software: you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation, either version 2 of the License, or (at your option) any later - * version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - * - * You should have received a copy of the GNU General Public License along with - * this program. If not, see . - */ - -#include "acutest.h" - -/****************************************************************************** - * Add your test cases to this list. - *****************************************************************************/ -#define NEOMUTT_TEST_LIST \ - NEOMUTT_TEST_ITEM(test_mutt_sha1_final) \ - NEOMUTT_TEST_ITEM(test_mutt_sha1_init) \ - NEOMUTT_TEST_ITEM(test_mutt_sha1_transform) \ - NEOMUTT_TEST_ITEM(test_mutt_sha1_update) - -/****************************************************************************** - * You probably don't need to touch what follows. - *****************************************************************************/ -#define NEOMUTT_TEST_ITEM(x) void x(void); -NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - -TEST_LIST = { -#define NEOMUTT_TEST_ITEM(x) { #x, x }, - NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - { 0 } -}; diff --git a/test/signal/main.c b/test/signal/main.c deleted file mode 100644 index e4f0d8627..000000000 --- a/test/signal/main.c +++ /dev/null @@ -1,50 +0,0 @@ -/** - * @file - * Test code for signal Operations - * - * @authors - * Copyright (C) 2019 Richard Russon - * - * @copyright - * This program is free software: you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation, either version 2 of the License, or (at your option) any later - * version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - * - * You should have received a copy of the GNU General Public License along with - * this program. If not, see . - */ - -#include "acutest.h" - -/****************************************************************************** - * Add your test cases to this list. - *****************************************************************************/ -#define NEOMUTT_TEST_LIST \ - NEOMUTT_TEST_ITEM(test_mutt_sig_allow_interrupt) \ - NEOMUTT_TEST_ITEM(test_mutt_sig_block) \ - NEOMUTT_TEST_ITEM(test_mutt_sig_block_system) \ - NEOMUTT_TEST_ITEM(test_mutt_sig_empty_handler) \ - NEOMUTT_TEST_ITEM(test_mutt_sig_exit_handler) \ - NEOMUTT_TEST_ITEM(test_mutt_sig_init) \ - NEOMUTT_TEST_ITEM(test_mutt_sig_unblock) \ - NEOMUTT_TEST_ITEM(test_mutt_sig_unblock_system) - -/****************************************************************************** - * You probably don't need to touch what follows. - *****************************************************************************/ -#define NEOMUTT_TEST_ITEM(x) void x(void); -NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - -TEST_LIST = { -#define NEOMUTT_TEST_ITEM(x) { #x, x }, - NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - { 0 } -}; diff --git a/test/string/main.c b/test/string/main.c deleted file mode 100644 index 15fd0356f..000000000 --- a/test/string/main.c +++ /dev/null @@ -1,88 +0,0 @@ -/** - * @file - * Test code for String Operations - * - * @authors - * Copyright (C) 2019 Richard Russon - * - * @copyright - * This program is free software: you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation, either version 2 of the License, or (at your option) any later - * version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - * - * You should have received a copy of the GNU General Public License along with - * this program. If not, see . - */ - -#include "acutest.h" - -/****************************************************************************** - * Add your test cases to this list. - *****************************************************************************/ -#define NEOMUTT_TEST_LIST \ - NEOMUTT_TEST_ITEM(test_mutt_str_adjust) \ - NEOMUTT_TEST_ITEM(test_mutt_str_append_item) \ - NEOMUTT_TEST_ITEM(test_mutt_str_asprintf) \ - NEOMUTT_TEST_ITEM(test_mutt_str_atoi) \ - NEOMUTT_TEST_ITEM(test_mutt_str_atol) \ - NEOMUTT_TEST_ITEM(test_mutt_str_atos) \ - NEOMUTT_TEST_ITEM(test_mutt_str_atoui) \ - NEOMUTT_TEST_ITEM(test_mutt_str_atoul) \ - NEOMUTT_TEST_ITEM(test_mutt_str_atoull) \ - NEOMUTT_TEST_ITEM(test_mutt_str_dequote_comment) \ - NEOMUTT_TEST_ITEM(test_mutt_str_find_word) \ - NEOMUTT_TEST_ITEM(test_mutt_str_getenv) \ - NEOMUTT_TEST_ITEM(test_mutt_str_inline_replace) \ - NEOMUTT_TEST_ITEM(test_mutt_str_is_ascii) \ - NEOMUTT_TEST_ITEM(test_mutt_str_is_email_wsp) \ - NEOMUTT_TEST_ITEM(test_mutt_str_lws_len) \ - NEOMUTT_TEST_ITEM(test_mutt_str_lws_rlen) \ - NEOMUTT_TEST_ITEM(test_mutt_str_next_word) \ - NEOMUTT_TEST_ITEM(test_mutt_str_pretty_size) \ - NEOMUTT_TEST_ITEM(test_mutt_str_remall_strcasestr) \ - NEOMUTT_TEST_ITEM(test_mutt_str_remove_trailing_ws) \ - NEOMUTT_TEST_ITEM(test_mutt_str_replace) \ - NEOMUTT_TEST_ITEM(test_mutt_str_rstrnstr) \ - NEOMUTT_TEST_ITEM(test_mutt_str_skip_email_wsp) \ - NEOMUTT_TEST_ITEM(test_mutt_str_skip_whitespace) \ - NEOMUTT_TEST_ITEM(test_mutt_str_split) \ - NEOMUTT_TEST_ITEM(test_mutt_str_startswith) \ - NEOMUTT_TEST_ITEM(test_mutt_str_strcasecmp) \ - NEOMUTT_TEST_ITEM(test_mutt_str_strcasestr) \ - NEOMUTT_TEST_ITEM(test_mutt_str_strcat) \ - NEOMUTT_TEST_ITEM(test_mutt_str_strchrnul) \ - NEOMUTT_TEST_ITEM(test_mutt_str_strcmp) \ - NEOMUTT_TEST_ITEM(test_mutt_str_strcoll) \ - NEOMUTT_TEST_ITEM(test_mutt_str_strdup) \ - NEOMUTT_TEST_ITEM(test_mutt_str_strfcpy) \ - NEOMUTT_TEST_ITEM(test_mutt_str_stristr) \ - NEOMUTT_TEST_ITEM(test_mutt_str_strlen) \ - NEOMUTT_TEST_ITEM(test_mutt_str_strlower) \ - NEOMUTT_TEST_ITEM(test_mutt_str_strncasecmp) \ - NEOMUTT_TEST_ITEM(test_mutt_str_strncat) \ - NEOMUTT_TEST_ITEM(test_mutt_str_strncmp) \ - NEOMUTT_TEST_ITEM(test_mutt_str_strnfcpy) \ - NEOMUTT_TEST_ITEM(test_mutt_str_substr_cpy) \ - NEOMUTT_TEST_ITEM(test_mutt_str_substr_dup) \ - NEOMUTT_TEST_ITEM(test_mutt_str_sysexit) \ - NEOMUTT_TEST_ITEM(test_mutt_str_word_casecmp) - -/****************************************************************************** - * You probably don't need to touch what follows. - *****************************************************************************/ -#define NEOMUTT_TEST_ITEM(x) void x(void); -NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - -TEST_LIST = { -#define NEOMUTT_TEST_ITEM(x) { #x, x }, - NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - { 0 } -}; diff --git a/test/tags/main.c b/test/tags/main.c deleted file mode 100644 index d39b1f2c8..000000000 --- a/test/tags/main.c +++ /dev/null @@ -1,49 +0,0 @@ -/** - * @file - * Test code for tags Operations - * - * @authors - * Copyright (C) 2019 Richard Russon - * - * @copyright - * This program is free software: you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation, either version 2 of the License, or (at your option) any later - * version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - * - * You should have received a copy of the GNU General Public License along with - * this program. If not, see . - */ - -#include "acutest.h" - -/****************************************************************************** - * Add your test cases to this list. - *****************************************************************************/ -#define NEOMUTT_TEST_LIST \ - NEOMUTT_TEST_ITEM(test_driver_tags_free) \ - NEOMUTT_TEST_ITEM(test_driver_tags_get) \ - NEOMUTT_TEST_ITEM(test_driver_tags_get_transformed) \ - NEOMUTT_TEST_ITEM(test_driver_tags_get_transformed_for) \ - NEOMUTT_TEST_ITEM(test_driver_tags_get_with_hidden) \ - NEOMUTT_TEST_ITEM(test_driver_tags_replace) - -/****************************************************************************** - * You probably don't need to touch what follows. - *****************************************************************************/ -#define NEOMUTT_TEST_ITEM(x) void x(void); -NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - -TEST_LIST = { -#define NEOMUTT_TEST_ITEM(x) { #x, x }, - NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - { 0 } -}; - diff --git a/test/thread/main.c b/test/thread/main.c deleted file mode 100644 index e83efe73d..000000000 --- a/test/thread/main.c +++ /dev/null @@ -1,50 +0,0 @@ -/** - * @file - * Test code for thread Operations - * - * @authors - * Copyright (C) 2019 Richard Russon - * - * @copyright - * This program is free software: you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation, either version 2 of the License, or (at your option) any later - * version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - * - * You should have received a copy of the GNU General Public License along with - * this program. If not, see . - */ - -#include "acutest.h" - -/****************************************************************************** - * Add your test cases to this list. - *****************************************************************************/ -#define NEOMUTT_TEST_LIST \ - NEOMUTT_TEST_ITEM(test_clean_references) \ - NEOMUTT_TEST_ITEM(test_find_virtual) \ - NEOMUTT_TEST_ITEM(test_insert_message) \ - NEOMUTT_TEST_ITEM(test_is_descendant) \ - NEOMUTT_TEST_ITEM(test_mutt_break_thread) \ - NEOMUTT_TEST_ITEM(test_thread_hash_destructor) \ - NEOMUTT_TEST_ITEM(test_unlink_message) - -/****************************************************************************** - * You probably don't need to touch what follows. - *****************************************************************************/ -#define NEOMUTT_TEST_ITEM(x) void x(void); -NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - -TEST_LIST = { -#define NEOMUTT_TEST_ITEM(x) { #x, x }, - NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - { 0 } -}; - diff --git a/test/url/main.c b/test/url/main.c deleted file mode 100644 index f2f91d9d8..000000000 --- a/test/url/main.c +++ /dev/null @@ -1,50 +0,0 @@ -/** - * @file - * Test code for url Operations - * - * @authors - * Copyright (C) 2019 Richard Russon - * - * @copyright - * This program is free software: you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation, either version 2 of the License, or (at your option) any later - * version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - * - * You should have received a copy of the GNU General Public License along with - * this program. If not, see . - */ - -#include "acutest.h" - -/****************************************************************************** - * Add your test cases to this list. - *****************************************************************************/ -#define NEOMUTT_TEST_LIST \ - NEOMUTT_TEST_ITEM(test_url_check_scheme) \ - NEOMUTT_TEST_ITEM(test_url_free) \ - NEOMUTT_TEST_ITEM(test_url_parse) \ - NEOMUTT_TEST_ITEM(test_url_pct_decode) \ - NEOMUTT_TEST_ITEM(test_url_pct_encode) \ - NEOMUTT_TEST_ITEM(test_url_tobuffer) \ - NEOMUTT_TEST_ITEM(test_url_tostring) - -/****************************************************************************** - * You probably don't need to touch what follows. - *****************************************************************************/ -#define NEOMUTT_TEST_ITEM(x) void x(void); -NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - -TEST_LIST = { -#define NEOMUTT_TEST_ITEM(x) { #x, x }, - NEOMUTT_TEST_LIST -#undef NEOMUTT_TEST_ITEM - { 0 } -}; - -- 2.40.0