+# expanded option, giving true, should leave the localhost pair unchanged
+exim -odi -DRETRY='retry_include_ip_address=${if eq{with}{$local_part} {yes}{no}}' with@complex
+Test message
+****
+dump retry
+#
+# expanded option, giving false, should add another 'thisloop.test.ex' entry, without IP
+exim -odi -DRETRY='retry_include_ip_address=${if eq{with}{$local_part} {yes}{no}}' without@complex
+Test message
+****
+dump retry
+#
+# a lookup-failure (in manualroute)
+exim -odi userx@nonexist
+Test message
+****
+# a lookup-failure (good MX, missing A) in dnslookup, deferred
+exim -odi userx@mxt2.test.ex
+Test message
+****
+# a lookup-failure (missing MX) in dnslookup, deferred
+exim -odi userx@mxnonexist.test.ex
+Test message
+****
+dump retry
+#