]> diplodocus.org Git - nmh/commitdiff
Teach mhparam about oauth support.
authorEric Gillespie <epg@google.com>
Tue, 9 Dec 2014 07:26:27 +0000 (23:26 -0800)
committerEric Gillespie <epg@google.com>
Tue, 9 Dec 2014 07:26:27 +0000 (23:26 -0800)
test/oauth/test-mhparam [new file with mode: 0755]
uip/mhparam.c

diff --git a/test/oauth/test-mhparam b/test/oauth/test-mhparam
new file mode 100755 (executable)
index 0000000..5456734
--- /dev/null
@@ -0,0 +1,13 @@
+#!/bin/sh
+#
+# Test mhparam oauth
+#
+
+if test -z "${MH_OBJ_DIR}"; then
+    srcdir=`dirname "$0"`/../..
+    MH_OBJ_DIR=`cd "${srcdir}" && pwd`; export MH_OBJ_DIR
+fi
+
+. "${srcdir}/test/oauth/common.sh"
+
+run_test "mhparam oauth" 'oauth'
index acb416c71a4bf41a8f7bbcde0c84cc7a2cb3dedd..a3f4d78ca8da9eac32b80504c2076549c8e9783c 100644 (file)
@@ -75,6 +75,13 @@ static char *iconv =
     "";
 #endif
 
+static char *oauth =
+#ifdef OAUTH_SUPPORT
+    "oauth";
+#else
+    "";
+#endif
+
 struct proc {
     char *p_name;
     char **p_field;
@@ -112,6 +119,7 @@ static struct proc procs [] = {
      { "datalocking",      &datalocking },
      { "spoollocking",     &spoollocking },
      { "iconv",                   &iconv },
+     { "oauth",                   &oauth },
      { "sasl",             &sasl },
      { "tls",              &tls },
      { NULL,               NULL },