From: Richard Russon Date: Tue, 6 Aug 2019 23:26:22 +0000 (+0100) Subject: fix test cases X-Git-Tag: 2019-10-25~97^2~20 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0595fc81853659d07cecfe5f55fb50ca080f4855;p=neomutt fix test cases --- diff --git a/doc/manual.xml.tail b/doc/manual.xml.tail index 048f09087..d272fddd9 100644 --- a/doc/manual.xml.tail +++ b/doc/manual.xml.tail @@ -21,7 +21,6 @@ __print_map(postpone) __print_map(browser) __print_map(pgp) __print_map(smime) -__print_map(summary) __print_map(mixmaster) __print_map(editor) __print_map(autocrypt account) diff --git a/test/Makefile.autosetup b/test/Makefile.autosetup index 4f84dff20..87776a957 100644 --- a/test/Makefile.autosetup +++ b/test/Makefile.autosetup @@ -114,7 +114,8 @@ DATE_OBJS = test/date/mutt_date_add_timeout.o \ test/date/mutt_date_parse_date.o \ test/date/mutt_date_parse_imap.o -EMAIL_OBJS = test/email/email_new.o \ +EMAIL_OBJS = test/email/common.o \ + test/email/email_new.o \ test/email/email_free.o \ test/email/email_size.o \ test/email/email_cmp_strict.o diff --git a/test/email/common.c b/test/email/common.c new file mode 100644 index 000000000..8a98735fd --- /dev/null +++ b/test/email/common.c @@ -0,0 +1,31 @@ +/** + * @file + * Shared Testing Code + * + * @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 . + */ + +#define TEST_NO_MAIN +#include "acutest.h" +#include "config.h" +#include "common.h" + +int mutt_autocrypt_process_autocrypt_header(struct Email *e, struct Envelope *env) +{ + return -1; +} diff --git a/test/email/common.h b/test/email/common.h new file mode 100644 index 000000000..149ecfedd --- /dev/null +++ b/test/email/common.h @@ -0,0 +1,31 @@ +/** + * @file + * Shared Testing Code + * + * @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 . + */ + +#ifndef TEST_EMAIL_COMMON_H +#define TEST_EMAIL_COMMON_H + +struct Email; +struct Envelope; + +int mutt_autocrypt_process_autocrypt_header(struct Email *e, struct Envelope *env); + +#endif /* TEST_EMAIL_COMMON_H */