]> granicus.if.org Git - neomutt/commitdiff
fix test cases
authorRichard Russon <rich@flatcap.org>
Tue, 6 Aug 2019 23:26:22 +0000 (00:26 +0100)
committerRichard Russon <rich@flatcap.org>
Mon, 19 Aug 2019 23:14:27 +0000 (00:14 +0100)
doc/manual.xml.tail
test/Makefile.autosetup
test/email/common.c [new file with mode: 0644]
test/email/common.h [new file with mode: 0644]

index 048f090872c989fe2288891c2369aca5151e34d9..d272fddd9ccdf2ced885f5780a424a5ffc1181d2 100644 (file)
@@ -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)
index 4f84dff2067d868be1112c8a1ff483fe550f4a0b..87776a957a86dd48468dbb82d80cd3b0e9de784c 100644 (file)
@@ -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 (file)
index 0000000..8a98735
--- /dev/null
@@ -0,0 +1,31 @@
+/**
+ * @file
+ * Shared Testing Code
+ *
+ * @authors
+ * Copyright (C) 2019 Richard Russon <rich@flatcap.org>
+ *
+ * @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 <http://www.gnu.org/licenses/>.
+ */
+
+#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 (file)
index 0000000..149ecfe
--- /dev/null
@@ -0,0 +1,31 @@
+/**
+ * @file
+ * Shared Testing Code
+ *
+ * @authors
+ * Copyright (C) 2019 Richard Russon <rich@flatcap.org>
+ *
+ * @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 <http://www.gnu.org/licenses/>.
+ */
+
+#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 */